Commit-Graf

203 Incheckningar

Upphovsman SHA1 Meddelande Datum
Karthikeyan Mani
f164580248 asoc: codecs: Fix tavil i2s max rate and cleanup
Change i2s max rate supported for tavil to 384000Hz.
Cleanup usage of intf_type to optimize differentiation
between slim and i2s.

Change-Id: If6451dae7c61e8f61be3d5a13549f98b382e5054
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-02-28 18:50:09 -08:00
Karthikeyan Mani
98d3d590bb asoc: codecs: enable i2s mode for tavil
Add support for tavil i2c access. Add audio
routings dapm widgets for data and control.

Change-Id: I96ebf7a5700b10f294f4fadfeeb21dab490a9313
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-02-28 18:49:19 -08:00
Linux Build Service Account
da56c67bc4 Merge "codecs: wcd9360: Add AQT based dais in WCD9360 codec driver" 2018-02-26 18:55:41 -08:00
Meng Wang
028ed8cc95 ASoC: msm: add support for quinary mi2s
Add support for quinary mi2s/auxpcm/tdm for msmnile target.

Change-Id: I0cbfa98129e6181662f7555735173eded12a0bf7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-22 13:29:09 -08:00
Linux Build Service Account
ac2dc56aaf Merge "ASoC: AQT1000: Fix return value and add config to include files" 2018-02-22 09:37:36 -08:00
Linux Build Service Account
f8f1924bad Merge "ASoC: msm-cdc-pinctrl: Add stub function for pinctrl get function" 2018-02-22 09:37:35 -08:00
Linux Build Service Account
505012f314 Merge "ASoC: msm: add dailinks for msmnile machine driver" 2018-02-22 09:37:34 -08:00
Sudheer Papothi
90d7b490c9 ASoC: AQT1000: Fix return value and add config to include files
Fix return value in aqt_codec_info_create_codec_entry function
to return proper value and add target config to include files

Change-Id: I063e199b1bf0e672b5afc20ed7de8447eed35dd4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-22 15:48:39 +05:30
Meng Wang
e161119e92 ASoC: msm: add dailinks for msmnile machine driver
Add ALSA dailinks for supporting various audio/voice
use cases for msmnile target.

Change-Id: If300b2c94e72414a657f30691cdfcb0d0a3b9a13
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-22 02:01:01 -08:00
Sudheer Papothi
14a1fecf2f ASoC: msm-cdc-pinctrl: Add stub function for pinctrl get function
Add stub function for msm pinctrl get function
when msm pinctrl configuration is not defined.

Change-Id: I5229dd804025e328471f0fd35cff33a69d47b2dd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-22 11:42:12 +05:30
Sudheer Papothi
085a654371 ASoC: AQT1000: DLKM support for AQT1000 driver
Add build configuration to compile AQT1000 driver for
msmnile target.

Change-Id: Ia5b43544a2247c53458fd5585d62152d0e9fd3a7
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-21 04:59:47 +05:30
Sudheer Papothi
e788b89d8b codecs: wcd9360: Add AQT based dais in WCD9360 codec driver
WCD9360 codec acts as an interface between AQT codec and
msmnile CPU DAI. Add AQT based playback and capture dais in
WCD9360 codec driver.

Change-Id: Ic780dd336a775dbb48a1d3ada90029763ac7a657
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-17 10:58:45 +05:30
Linux Build Service Account
e6cc518da8 Merge "ASoC: AQT1000: Add support for MBHC hardware in AQT1000 codec" 2018-02-16 16:05:52 -08:00
Linux Build Service Account
b7da83b2b8 Merge "ASoC: AQT1000: Add API for adjusting the micbias voltage on AQT1000" 2018-02-16 16:05:51 -08:00
Linux Build Service Account
c7e057204d Merge "ASoC: enable audio modules for msmnile" 2018-02-16 09:31:35 -08:00
Sudheer Papothi
40270c4787 ASoC: AQT1000: Add support for MBHC hardware in AQT1000 codec
AQT1000 codec supports MBHC(Multi Button Headset controller)
functionality. Add driver support for MBHC hardware in AQT1000 codec.

Change-Id: Ia21a5bda304d42b2aedcf54f6df92ed29dd23a41
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 06:21:46 -08:00
Sudheer Papothi
8c9bd0f7d0 ASoC: wcd9xxx: Add new callback for headset pull up current
AQT1000 supports different headset detect pull up current source
values in MBHC. Add a callback function to handle new current
source values in MBHC driver.

Change-Id: I060af1aff3fe7c4dfd4aa4c480542efa54c2777c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 06:20:33 -08:00
Sudheer Papothi
7c53cb5010 ASoC: AQT1000: Add API for adjusting the micbias voltage on AQT1000
AQT1000 codec supports multiple micbias voltage settings. Add an
API to client modules to adjust the micbias voltage based on their
desire voltage requirements.

Change-Id: If89b836ab60b66e9ec1000fe6d07f4b1a8484b01
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 19:41:09 +05:30
Linux Build Service Account
db20f92cb3 Merge "ASoC: AQT1000: Add Interrupt controller support for AQT codec" 2018-02-16 03:33:39 -08:00
Linux Build Service Account
b51bf58343 Merge "ASoC: AQT1000: add codec entry for AQT1000 codec" 2018-02-16 03:33:39 -08:00
Linux Build Service Account
b0ed99ddc6 Merge "ASoC: disable source tracking get functionality for sdm855" 2018-02-15 17:52:29 -08:00
Linux Build Service Account
9fafcd2913 Merge "asoc: codecs: re-factor audio-ext-clk driver" 2018-02-15 17:52:26 -08:00
Linux Build Service Account
b8dbde55e5 Merge "codecs: add wcd9360 driver support in wcd9xxx core" 2018-02-15 17:52:23 -08:00
Linux Build Service Account
bbb2154a37 Merge "ASoC: change OUT_DIR to PRODUCT_OUT for wcd9360" 2018-02-15 17:52:22 -08:00
Linux Build Service Account
95e93157f4 Merge "dsp: update MSM Audio ION wrappers to align with upstream" 2018-02-15 17:52:20 -08:00
Linux Build Service Account
632032dd78 Merge "SoC: msm: add machine driver for SDM855" 2018-02-15 17:52:16 -08:00
Meng Wang
5fddb8d532 ASoC: enable audio modules for msmnile
Add audio config files and Change Android.mk, Makefile
and Kbuild to enable audio modules for msmnile target.

Change-Id: If6acabe2cd2074d688b810de3f48e6c60dfe9d22
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-15 16:39:58 -08:00
Meng Wang
85b6208522 ASoC: disable source tracking get functionality for sdm855
Disable source tracking get functionality for sdm855 till
feature is completely enabled

Change-Id: Id644fa46d95bd1091502b1c5ae4cce3bb64d633e
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 17:15:03 -08:00
Meng Wang
ac5bb48a83 SoC: msm: add machine driver for SDM855
Add machine driver for SDM855 with stub codec.

Change-Id: I3203250f838147b626ad3edfb3edbdd9894022f7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-08 09:04:42 +08:00
Meng Wang
08d48d49eb ASoC: AQT1000: add codec entry for AQT1000 codec
Add codec entry for AQT1000 codec to support ADIE calibration.
Add new hwdep node AQT1000_CODEC_HWDEP_NODE to store ANC/MBHC
calibration data.

Change-Id: I8b5ff9a2cfe2a0a8ac593b63b20b28697dc975bf
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 16:05:30 +08:00
Sudheer Papothi
22e868b3b0 ASoC: AQT1000: Add Interrupt controller support for AQT codec
AQT codec has MBHC(Multi Button Headset Controller) and other
headset interrupts. Add interrupt controller driver to handle
AQT codec interrupts.

Change-Id: Ic8eb6b0ca24aa82c9adeb9f0fa0bf8768b424787
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-07 11:33:37 +05:30
Sudheer Papothi
3e42fefa2f ASoC: AQT1000: Add driver for AQT1000 codec
AQT1000 codec is a hifi headset that supports audio
playback and recording on headset. It also supports
playback of fractional sampling rates. Audio playback
and recording is transferred through I2S interface.
Add driver for AQT1000 codec

Change-Id: Iba163e9203d67216cdbf87727b06801356a001e3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-07 04:09:53 +05:30
Banajit Goswami
08bb73698a dsp: update MSM Audio ION wrappers to align with upstream
Between Linux-4.9 and Linux-4.14, upstream has updated the
ION APIs significantly to make ION ready to bring out of
staging folder. This has changed the way ION and dma_buf
APIs used to work together for allocating, mapping and
deallocating ION buffers.
Update MSM Audio ION wrapper functions used by audio drivers
to reflect these ION API changes as per upstream ION.

Change-Id: I63097e147a397aa3a538f69ac88b6fb10871c3dc
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-04 03:41:06 -08:00
Vidyakumar Athota
130934724f codecs: add wcd9360 driver support in wcd9xxx core
Add changes to support wcd9360 audio codec driver in
wcd9xxx common files.

Change-Id: I5b9f9d592b6843d7887eb3954d079776ddf15764
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 17:25:18 -08:00
Vidyakumar Athota
9cbeb97832 codecs: add wcd9360 audio codec driver
Initial commit to add wcd9360 audio codec driver.

Change-Id: Ib4e5e41ce7e540e4426c9ca26db8e834edc3d4da
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 17:24:19 -08:00
Meng Wang
ac147b705e ASoC: update snd_pcm_ops copy interface in platform drivers
snd_pcm_ops copy interface used by msm platform drivers is replaced
with copy_user in msm-4.14. Unit of two input variables is changed
from frame count to byte.
Update all the related msm platform drivers to adapt to this change.

Change-Id: Icecd0454c7a80e5ee90407c64aaf1ca76d2d9815
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-03 08:36:32 +08:00
Vidyakumar Athota
cd2fa5348e codecs: add on-demand supply support
Add new APIs to enable/disable on-demand codec supplies
to msm-cdc-supply driver.

Change-Id: Iaf33ac40165832595c875e26179dc036b62b36f8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 11:26:40 -08:00
Vidyakumar Athota
ecc4edaf83 asoc: codecs: re-factor audio-ext-clk driver
Re-factor audio clock driver to register one clock at a time
and remove duplicate lpass clocks.

Change-Id: I63ddf4b65ec7e9cda0dcad4e0167cd8636e89e1a
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-01 21:39:29 -08:00
Aditya Bavanari
5106b5627c dsp: fix low volume in audio recording
ADM calibration is not sent in audio recording
use case which leads to low volume issue.
Since the LSM port ID is same as audio recording
port ID in case of internal codec, driver tries to
send LSM calibration for non LSM use case in which case
no calibration will be sent.
Instead of using port ID, use the pass_thr mode to
differentiate between LSM and non LSM use cases.

CRs-Fixed: 2167317
Change-Id: I1b6ea51d83330f6439791cf1bb6170306f6895b0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-01-29 21:36:26 -08:00
Linux Build Service Account
87cef69000 Merge "asoc: codecs: Fix device switch pop issue" 2018-01-15 02:50:56 -08:00
Aditya Bavanari
b68d102764 ASoC: sdm670: fix clock refcount for MI2S shutdown
For MI2S shutdown, if clock disable is failed,
do not bother to re-increment clock reference. Otherwise,
next time when startup is called, clock enable will not
be called again, so use case will not work.

CRs-Fixed: 2166356
Change-Id: Ic7a93a5f20eaabed93d0cd94d76d09f0f1c869fd
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-01-10 23:09:33 -08:00
Aditya Bavanari
140a80a114 asoc: sdm670: add/remove flag ignore_pmdown_time for RX/TX DAIs
- During PCM close, the AIF power down will be delayed if
ignore_pmdown_time flag is not set. Set this flag for ultrasound RX DAI
to avoid delay in PCM close which causes slimbus overflow.
- Flag ignore_pmdown_time is only required to be set for RX DAIs.
Add this flag for RX DAIs that don't have it and remove this
flag for TX DAIs that have it in sdm670 machine driver.

CRs-Fixed: 2166356
Change-Id: I794ee96fb96fe04091ce73f0b48f84ebf119256c
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-01-10 23:08:58 -08:00
Aditya Bavanari
d61b84dec1 asoc: sdm670: check sound card status before sending AFE config
WCD codec must be enumerated before AFE configuration for
some of the features can be sent to DSP. This is because
as part of setting up this configuration, DSP tries to
access some codec register. These register accesses will
fail if codec is not enumerated already.
Add a check for sound card online state to confirm that WCD
codec has already enumerated before sending AFE configs.

CRs-Fixed: 2166356
Change-Id: Ie5883f3543872d7a049a00a4c70445232360f2f9
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-01-10 22:52:32 -08:00
Linux Build Service Account
c5ac151c8e Merge "sdm670: Add mixer control and update affine qos value" 2018-01-09 08:41:46 -08:00
Linux Build Service Account
153e58c732 Merge "ASoC: wcd934x: WDSP debug enhancement" 2018-01-09 08:41:45 -08:00
Linux Build Service Account
1f5ff4b6f0 Merge "audio: Enable audio compile for 8953" 2018-01-09 03:08:39 -08:00
Linux Build Service Account
bf300152d6 Merge "ASoC: sdm660_cdc: Fix ear_pa_gain control" 2018-01-04 06:39:53 -08:00
Linux Build Service Account
2ba9dc5714 Merge "audio-lnx: Correct mutex usage during error handling" 2018-01-03 13:08:45 -08:00
Linux Build Service Account
e241554a95 Merge "ASoC: wcd: Avoid multiple insertion/removals for aux cable" 2018-01-03 13:08:44 -08:00
Revathi Uddaraju
30feb0d4a0 sdm670: Add mixer control and update affine qos value
Add mixer control for MultiMedia5_RX QOS Vote and
update affine qos value.

Change-Id: Id027ea4c708d0827a24ca655d0f1810331100cee
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2018-01-02 03:21:49 -08:00