Commit Graph

270 Commits

Author SHA1 Message Date
Vidyakumar Athota
a3030c162c asoc: codecs: wcd9360: add delay after LDO_RXTX enable
Add delay after LDO_RXTX supply is enabled as per
hardware register sequence.

Change-Id: I588d36c6c13ae8f545aba2b2cf6d1c73fde08d0a
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-01 16:28:05 -08:00
Rohit kumar
42121f7e09 asoc: msm-cpe-lsm: use kmalloc for slim_port_xfer buffers
Use kmalloc instead of dma_alloc_coherent for slim buffers
to support dma_mapping api in interrupt context.

Change-Id: Idf06832b6a3bb30f6a16c168b4e5e5f13ad0a0ab
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-01 17:01:19 +08:00
Laxminath Kasam
30ad751aac ASoC: rmmod fixes for audio drivers
For remove module(rmmod), update drivers
to cleanup resources and allow insert module
again without any issue.

Change-Id: Iddc6e5e11d986359afd3100bf3c5eab70cb1c1eb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-01 16:02:06 +08:00
Rohit kumar
dd08b3db40 asoc: sdm660: fix tasha lite detection issue
Defer probe of soundcard registration until codec
driver registration is complete to fix detection of
codec version by machine driver.

Change-Id: Ia93404a85c98bd50e63015073284d5bf290a3f9f
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2018-02-28 23:05:27 -08:00
Laxminath Kasam
3a4607028c ASoC: wcd934x: Update OCP before HPH PA enable/disable
Observe mute issue when PDR triggered while music playback
on HPH. As per HW recommendation, ensure OCP is turned off
before PA enable/disable. During PA enablement, turn off OCP
to avoid false OCP interrupts.

CRs-Fixed: 2167007
Change-Id: I0dc2cc6ded3416b635d14dc3b7aafa7997fe9a4d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-02-28 21:52:12 -08:00
Ramprasad Katkam
76c5b45e7f asoc: codecs: add a null pointer check in mbhc driver
Add a missing function pointer null check condition in
mbhc driver to avoid null access during fast
insertion-removal.

Change-Id: I6aa64325cea6f7aa551115969d1e6ba184ec8d14
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-02-28 21:51:01 -08:00
Bhalchandra Gajare
b466d183fb ASoC: wcd-spi: ignore failure from clearing the CLK_REQUEST
It is possible that the spi transfer that clears the clock request
on the slave may fail. In such case, it is not safe to assume that
the clock request is still enabled as it can cause failures for
further spi transfers if the clock request is cleared. Fix such
issues by resetting the clock state in the driver even the clock
request clearing fails.

CRs-Fixed: 2169087
Change-Id: I699e72b59b4cb049dfacaa190823796a545f2dbb
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-02-28 21:49:38 -08:00
Vidyakumar Athota
9147e38e71 asoc: codecs: update IIR cofficient values before IIR band enable
Currently IIR coefficient values are written to HW everytime when
digital core comes out of power collapse. This increases playback
cold start latency. So update IIR coefficient values before IIR
band enable.

Change-Id: I57ad54b4674ed0a49fdfc55d77c519568f5a7893
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-28 21:48:57 -08:00
Vaishnavi Kommaraju
89d1a77802 asoc: codecs: Add mutex lock for CPE session
Add mutex lock to ensure atomic access to core handle
in CPE alloc and dealloc sessions.

CRs-Fixed: 2169403
Change-Id: I7e046f349cc56ee06706cf15651dac3fdfe9d9a6
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
2018-02-28 21:48:16 -08:00
Xiaoyu Ye
90fa02abb1 asoc: wcd-dsp-utils: add size check for WDSP ELF files
Add size check to make sure the data sizes from WDSP
ELF metadata and the split firmware ELF are the same.

Change-Id: I913087bc352850ceac2fcc07067ea8f480563ae2
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-02-28 19:00:28 -08:00
Xiaoyu Ye
ef9ded2e71 asoc: wcd_cpe_core: add size check for WDSP ELF files
Add size check to make sure the data sizes from WDSP
ELF metadata and the split firmware ELF are the same.

Change-Id: I7a1404cd15601d8d503e3355e6dc70e2949df72d
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-02-28 18:54:52 -08:00
Karthikeyan Mani
9f66f6f684 asoc: msm: Update routing and FE DAI drivers
Update routing driver with port mixer commands between
primary and secondary interfaces to enable AFE lopback
between them. Update FE DAI driver to add hostless FEs
for primary/secondary Auxpcm and secondary MI2S.

Change-Id: I792e1cf4e0600d3b4726624e29e73e67828a3935
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-02-28 18:53:00 -08:00
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
Karthikeyan Mani
57d3b66e17 asoc: codecs: Add i2c interface support for tavil
Add i2c driver node for tavil codec for
i2c communication with the codec.

Change-Id: Ie28dfeca102251265a5f50153c3ba98dae84dde2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-02-28 18:41:59 -08:00
Vidyakumar Athota
aa0da7448d asoc: codecs: add wcd9360_regmap to the core
Add wcd9360_regmap file compilation in the wcd_core dlkm
to fix symbols mismatch.

Change-Id: I666efc51e9e0eccccc7c3e6c57a456045b37824c
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-28 15:19:50 -08:00
Sudheer Papothi
c50fe78896 ASoC: AQT1000: Disable AQT1000 codec driver on msmnile target
Disable AQT1000 codec driver compilation on msmnile target.

Change-Id: I55d47e7f29f26883eb045e0946e870fc67a0960a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-03-01 04:38:30 +05:30
Phani Kumar Uppalapati
585fa1240f ASoC: msmnile: enable MBHC support for msmnile target
Add MBHC calibration parameters and enable MBHC support
for msmnile platform.

Change-Id: I09be59f806833464dd2381f248fa715ddd5663c1
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2018-02-28 11:06:49 -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
Karthikeyan Mani
95668549c8 asoc: codecs: change mic bias enum names
Change mic bias enum names to be specific to codec
to avoid conflict with mbhc mic bias enum.

Change-Id: I7bae83aafd72753eaedebd533364ec404a54977a
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-02-26 15:38:25 -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
Laxminath Kasam
942d1c6ed1 audio: Enable audio compile for 8953
Add support for audio compile for 8953.

Change-Id: I37ef20b44aecba8ffc9a7d1d346bf83a9115ad1b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-12-29 16:44:10 +05:30
Laxminath Kasam
817af9a7f1 ASoC: sdm660_cdc: Fix ear_pa_gain control
In analog codec, EAR PA gain control get
function is updated with input value again
resulting in override. Remove the override
of control value again.

CRs-Fixed: 2161617
Change-Id: I7ddd252adf53666a6c9adc1bc92e840067fa932c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-12-28 11:43:06 +05:30
Karthikeyan Mani
82597ffeec asoc: codecs: Fix device switch pop issue
With AANC enabled, and when the device switches
from speaker path to handset path there is a audible
pop. Add more delay to the aanc enable work function
to resolve the pop issue.

CRs-Fixed: 2137607
Change-Id: Icaf381179b0a81440b21ab4280cb6fc95e6fe6ba
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-26 21:31:29 -08:00
Walter Yang
83b0584703 ASoC: wcd934x: WDSP debug enhancement
Add interface to trigger WDSP dumps for debug use.
Important register dump and WDSP ramdump are both collected when
DEBUG_DUMP string is sent from userspace via WDSP misc node or
when WDSP boot timeout happens.

CRs-Fixed: 2117755
Change-Id: I8b91a8939201a54512a5e3557ce771b4ff2ff075
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-12-25 11:21:20 +08:00
Linux Build Service Account
05cae9910f Merge "asoc: add multiple sampling rates support for a2dp" 2017-12-21 21:53:36 -08:00
Ramprasad Katkam
f6d89a5094 audio-lnx: Correct mutex usage during error handling
Release the acquired mutex when there is failure
in enabling the soundwire clock.

Change-Id: I2e10ed7f0bd86524998a67d62e85754f7989eca2
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2017-12-21 20:31:43 -08:00
Vatsal Bucha
d6d62b8d3c ASoC: wcd: Avoid multiple insertion/removals for aux cable
High impedance aux cable when inserted causes jack to change to
lineout. This causes removal event to be called which results
in pause during music playback because jack value is not updated.
Do not change current plug while plug is marked as lineout.

CRs-Fixed: 2151012
Change-Id: I99797b58c48be00185a352094e32e8623faee491
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-12-21 20:30:38 -08:00
Linux Build Service Account
18d2731639 Merge "msm: Array bounds check for buffer index" 2017-12-20 00:31:40 -08:00
Linux Build Service Account
344329b79c Merge "ASoC: remove error prints and warning at bootup log" 2017-12-20 00:31:39 -08:00
Linux Build Service Account
6b6dae7320 Merge "asoc: vote for Glink Rx thread priority upgrade" 2017-12-20 00:31:38 -08:00
Linux Build Service Account
a35c30a54f Merge "ASoC: sdm845: update MI2S supported sampling rates" 2017-12-16 03:09:29 -08:00
Linux Build Service Account
6f3eeba8d2 Merge "asoc: set freed pointers to NULL" 2017-12-16 03:09:29 -08:00
Linux Build Service Account
9c81253780 Merge "dsp: add support for new ADM LSM cal types" 2017-12-16 03:09:26 -08:00
Linux Build Service Account
3a6d24603e Merge "asoc: sdm845: check sound card status before sending AFE config" 2017-12-16 03:09:25 -08:00
Linux Build Service Account
0055984340 Merge "asoc: codecs: modify gnd mic swap threshold for usb-c analog" 2017-12-16 03:09:24 -08:00
Linux Build Service Account
7bae55be7c Merge "dsp: add LDAC encoder support" 2017-12-16 03:09:23 -08:00
Linux Build Service Account
68b1ed3dc2 Merge "dsp: add scrambler support in DSP over split a2dp" 2017-12-16 03:09:22 -08:00
Linux Build Service Account
24a9908ba2 Merge "asoc: add multiple sampling rates support for a2dp" 2017-12-16 03:09:20 -08:00
Linux Build Service Account
5492c58b13 Merge "ASoC: qdsp6v2: Add Audio EC Ref routing to LSM FEs" 2017-12-16 03:09:20 -08:00
Linux Build Service Account
463b274f59 Merge "dsp: assign channel mapping to three channel voice Tx devices" 2017-12-16 03:09:17 -08:00
Vignesh Kulothungan
3817b1847e msm: Array bounds check for buffer index
Check the ASM buffer index boundary before using it
to access the buffer to avoid out of array bounds error.

CRs-Fixed: 2145996
Change-Id: I5492941dfd9e7c3fa90af6caec14f9ff7e75d248
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2017-12-15 10:03:25 -08:00
Banajit Goswami
616e68cd4a asoc: vote for Glink Rx thread priority upgrade
For Low-latency audio playback usecase, vote for a priority
upgrade for Glink Rx thread, to avoid any performance issue.

Change-Id: I8332c80eedd7325700e695f341fc4b92f65fd77c
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-12-14 12:10:58 -08:00
Linux Build Service Account
3f2ab3aa80 Merge "asoc: remove deprecated dummy functions in DAP modules" 2017-12-14 06:27:57 -08:00
Aditya Bavanari
9deef91554 asoc: set freed pointers to NULL
Set freed pointers to NULL to avoid double free
in msm_compr_playback_open and msm_compr_playback_free
functions of the compress driver.

CRs-Fixed: 2142216
Change-Id: Ifd011dd85dd9f610c7b69dd460f73d26e006cd66
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-13 04:59:45 -08:00
Linux Build Service Account
5643be1804 Merge "ASoC: allow drivers to compile both static and dynamic" 2017-12-12 09:56:54 -08:00
Linux Build Service Account
4460de0faa Merge "asoc: codecs: stop mbhc before mbhc init and after ssr" 2017-12-12 09:56:52 -08:00
Aditya Bavanari
2a627ae4bb dsp: add support for new ADM LSM cal types
Add support for new ADM LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I155d29ff0b77b069aa5970408332064c5c2aebd7
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-12 12:22:09 +05:30
Banajit Goswami
9e31a8a6e3 asoc: sdm845: 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.

Change-Id: I0b7e5eb49e4f6c6aee9cb142054e57eae592602b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-12-11 21:05:19 -08:00
Karthikeyan Mani
5392d8052e asoc: codecs: modify gnd mic swap threshold for usb-c analog
To reduce time of usb-c analog headset detection, reduce
gnd mic swap threshold if usb-c is enabled. Use
existing threshold value otherwise.

CRs-Fixed: 2137077
Change-Id: Ic1d1f3a00c9034caaac45f2c80f018546a69ce59
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-11 21:03:01 -08:00
Preetam Singh Ranawat
0a087aff7b dsp: add LDAC encoder support
Add support for LDAC encoding in dsp to
enable LDAC encoder over split a2dp path.

CRs-Fixed: 2143086
Change-Id: Ia5ed981f5cd9cc61621d667362585ec7a7e64fa1
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 21:01:26 -08:00
Preetam Singh Ranawat
f746a87965 dsp: add scrambler support in DSP over split a2dp
Add support to enable scrambler in COP Packetizer module
over split A2DP path to fix 44.1Khz playback.

CRs-Fixed: 2143142
Change-Id: I52fec39e10a1c0939fd49d1e1303b03312544abf
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 21:00:31 -08:00
Preetam Singh Ranawat
ae532a03f1 asoc: add multiple sampling rates support for a2dp
Add support of 44.1Khz, 88.2Khz and 96Khz over split-a2dp path.

CRs-Fixed: 2143086
Change-Id: I05e7e947bec250c509f647718323bd208c46b2b2
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 20:57:18 -08:00
Yunfei Zhang
3efc4a220f ASoC: qdsp6v2: Add Audio EC Ref routing to LSM FEs
Add routings between LSM FEs and Audio EC Ref, or AFE port for
external Audio EC Ref will not be enabled during DSP SVA.

Change-Id: Ic70ee9479cd384d0226ac0e92a1824f92ec2d946
Signed-off-by: Yunfei Zhang <yunfeiz@codeaurora.og>
2017-12-10 18:29:47 -08:00