Commit graph

3,459 commits

Author SHA1 Message Date
qctecmdr
f4444aec8c Merge "asoc: Add separate array for TDM BE dai links" 2020-04-29 22:27:54 -07:00
qctecmdr
184a32dbe4 Merge "ASoC: wcd937x: Fix headset record pop during SSR" 2020-04-29 22:27:54 -07:00
qctecmdr
476664c177 Merge "soc: swr: Mask bus clash interrupt" 2020-04-29 22:27:54 -07:00
qctecmdr
1cd62679d5 Merge "ASoC: wsa883x: Enable WSA883x codec driver compilation." 2020-04-29 22:27:54 -07:00
qctecmdr
42292dc0cd Merge "asoc: codecs: Update va_macro fix for SVA for bolero 2.1" 2020-04-29 22:27:54 -07:00
qctecmdr
8310f644b9 Merge "asoc: codecs: fix incorrect micbias value set at rouleur" 2020-04-29 22:27:54 -07:00
Aditya Bavanari
56ac5b3ace soc: swr-mstr-ctrl: Remove ssr_lock handling
During SSR and headset detection/removal interrupt
concurrencies, ssr_lock can lead to serv reg ack timeout
issues. Remove this synchronization to avoid this issue.

Change-Id: I242a013a7e9d833db21d737cbdfea2d84bbd29fa
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-04-29 03:34:28 -07:00
Aditya Bavanari
f1c3f00c05 soc: Vote or unvote core and audio hw based on count
In order to synchronize the core and audio hw votes
in SSR use cases, vote or unvote for these
based on clock count.

Change-Id: I0047e2cc689cc96b34992e5f6f59dae84d1d4e4b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-29 03:32:56 -07:00
Sudheer Papothi
80ef65d015 Revert "ASoC: wsa883x: Add support for VBAT monitor"
This reverts commit eecf60dcb5.

Change-Id: Id5cd06a70aab59e0bbd83985526078572d126457
2020-04-29 11:53:16 +05:30
Vatsal Bucha
f118f0b5b3 bolero: tx-macro: Fix audio distortion during amic record
Distortion is heard during CTS audio record. Do not
add delay while toggle hpf frequency and zero gate
to resolve distortion.

Change-Id: I234cfcce43a6fb5d9c372f2655abdb2f8b5c4853
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-28 22:54:33 -07:00
Meng Wang
b8348e7cb7 asoc: lsm: hold wakelock when keyword is detected
hold wakelock when keyword is detected

Change-Id: Id25d4e3094a0cb430696aaeaf06dd176276d4e46
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-04-28 22:47:43 -07:00
Aditya Bavanari
05ae12f1e0 asoc: codecs: Add BCS channel select mixer control
Add mixer control to support BCS SWR channel selection
in bolero.

Change-Id: Id26b20d674026d1798239c0e4e7e4c2d18ba89db
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-27 21:37:58 -07:00
Kunlei Zhang
3acbdc5f2c asoc: update tx frame config for soundwire port
Set correct tx frame config for soundwire port
using  wcd9375.

Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 21:18:23 -07:00
Fenglin Wu
47fa139a5a ASoC: swr-haptics: Cleanup on the error printings
Some prints in the driver have NULL pointer reference, correct them and
clean up on the other possible NULL pointer reference cases.

Change-Id: Iba8682014e21dd716caaaebc1231cb4fe39bdfe1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-28 11:07:57 +08:00
Kunlei Zhang
a55da1c58f asoc: add wcd937x codec support in machine driver
Add wcd937x codec support in machine driver for
lagoon.

Change-Id: I4128b6026e5cc8a597fb7acd152fe9025060b442
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 19:24:07 -07:00
Laxminath Kasam
cb88df80a7 asoc: wsa-macro: Update VI sense setting based on pcm rate
Retrieve sample rate for VI sense and update codec settings
based on it.

Change-Id: If4341bac77ecae290c44c4412a39b9e5cbf46ac0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-27 13:21:11 -07:00
Sudheer Papothi
9c714acec6 ASoC: Lahaina: Add support for audio haptics
Add support for audio haptics in the machine driver.

Change-Id: Ie0509e44b5a2247fb3ad2f24adb5c9b2865a5874
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-28 00:13:20 +05:30
Kunlei Zhang
d0e5b03a72 asoc: wcd937x: enable wcd937x codec driver compilation.
Enable wcd937x codec driver compilation support.

Change-Id: I001f7ca278549a4a77c5b02e1c6a86d1dbf51ff7
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 08:47:44 -07:00
qctecmdr
e000435f75 Merge "dsp: lsm: Change wake up latency for LAB module" 2020-04-26 23:42:50 -07:00
qctecmdr
5bdbc17139 Merge "soc: swr-mstr: Add delay between fifo writes to avoid overflow/underflow" 2020-04-26 23:42:50 -07:00
qctecmdr
e63542d6b7 Merge "asoc: codecs: Set EAR compander if mixer ctl set" 2020-04-26 23:42:50 -07:00
qctecmdr
b221915dc1 Merge "ASoC: wcd938x: Enable digital clk for tx0 if micbias enabled" 2020-04-26 23:42:49 -07:00
qctecmdr
7078690c22 Merge "asoc: codecs: Update sequence for HPH path in rouleur" 2020-04-26 23:42:49 -07:00
qctecmdr
8206d768b1 Merge "asoc: wcd937x: Update retry logic for SWR logical addr" 2020-04-26 23:42:49 -07:00
qctecmdr
57705d7be4 Merge "asoc: wsa881x-analog: remove warnings result in CPU log" 2020-04-26 23:42:49 -07:00
qctecmdr
dbc98f568b Merge "ASOC: wcd938x: Handle button press before release interrupt" 2020-04-26 23:42:49 -07:00
qctecmdr
ec24d856d7 Merge "ASoC: wcd-mbhc: Disable moisture detect threshold if duty cycle disabled" 2020-04-26 23:42:49 -07:00
qctecmdr
7378260dd1 Merge "ASoC: codecs: wsa883x: fix swr probe error handling" 2020-04-26 23:42:49 -07:00
qctecmdr
ace3a85d2f Merge "soc: soundwire: Update sample interval configuration" 2020-04-26 23:42:49 -07:00
qctecmdr
bf289c71f0 Merge "ASoC: lahaina: check if codec is enabled" 2020-04-26 23:42:49 -07:00
qctecmdr
427dd0d8ed Merge "soc: swr: enable PCM IN/OUT when using pcm interface" 2020-04-26 23:42:49 -07:00
qctecmdr
0fa13e4ada Merge "asoc: haptics: update port config to match devicetree" 2020-04-26 23:42:49 -07:00
qctecmdr
f1e766c6b0 Merge "asoc: add new frontend Multimedia31 and Multimedia32 for haptics" 2020-04-26 23:42:49 -07:00
qctecmdr
2811ce0144 Merge "asoc: bolero: add channel map for AIF6_PB" 2020-04-26 23:42:49 -07:00
qctecmdr
8c85d4983f Merge "config: Add audio haptics driver configuration" 2020-04-26 23:42:49 -07:00
qctecmdr
286b657ee7 Merge "codecs: Enable clock voting logs to debug AHB/NOC issues" 2020-04-26 23:42:48 -07:00
qctecmdr
f1547c88f7 Merge "soc: swr-mstr: Add node to disable clk switch for rx master" 2020-04-26 23:42:48 -07:00
Xiaojun Sang
27b6c75029 asoc: codecs: fix incorrect micbias value set at rouleur
Micbias value set does not take effect on rouleur.
Shift micbias value to correct bits.

Change-Id: Ice083e3bc30f6e8e3fe7132c633a4043329ccfa5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-04-25 20:01:22 -07:00
Guodong Hu
b36d8ca714 asoc: fix prepare error in pulseaudio loopback cases
In pulseaudio, prepare comes just after open for every
substream in loopback cases, but the 'audio_client'
is not allocated for the first substream in every pcm.
And the returned error causes the failure of pulseaudio
initialization for all loopback cases.

Change-Id: I7fb6c1f23b9cf2660e4dd519a731c7e13a809a4a
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-04-23 20:36:30 -07:00
Ramlal Karra
77b3964d0a uapi: add ADM_AUDPROC_PERSISTENT cal type
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type ADM_AUDPROC_PERSISTENT for this purpose.

Change-Id: If85c0b6675ea7481c7d71d5c0d770bc129332026
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-04-23 13:39:32 +05:30
Aditya Bavanari
6389dd3809 asoc: rouleur: Enable rouleur codec driver compilation
Add changes to enable compilation for rouleur
codec driver.

Change-Id: I87eefe0c3d9bbe6445391902110fb210c4b0cd5b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-22 23:12:57 -07:00
Sudheer Papothi
424a92ebb9 ASoC: msm-compress: Add NULL check in msm_compr_set_volume
Add NULL check for pdata structure in msm_compr_set_volume to
avoid dereference.

Change-Id: I364bf95ce7df0f5b4cea0e7bd4c5926c1966aac1
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-23 11:17:27 +05:30
Prasad Kumpatla
ed1116f0a6 dsp: Add spinlock to protect audio client
Add spinlock in callback func to avoid race condition
between session_free and q6lsm_callback.

Change-Id: Ic008bf17693a2c2217c8933c2e52a7965c249bda
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-04-22 22:46:11 -07:00
Ramlal Karra
34a11c755a dsp: q6adm: add ADM_AUDPROC_PERSISTENT cal type
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type for this purpose.

Change-Id: I2d1fb219a3748d0ead5ca2199da2b55669f2550e
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-04-22 19:19:37 -07:00
Vignesh Kulothungan
fca013355e ASoC: codecs: check component pointer before use
Add NULL check for swr dmic component pointer before
using it.

CRs-Fixed: 2666974
Change-Id: I25c14c17f820ce3be7e1c7d892a2c0e29ac2b9fc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-21 11:38:34 -07:00
Vatsal Bucha
0dff22d63f soc: swr-mstr: Add node to disable clk switch for rx master
RX Master does not support div2 clk switching as div2_en bit
for rx master is floating. Do not do clk switch for rx master.

Change-Id: Iee1716fe892e792ffd17d0861a807e3711cee5d5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-21 09:00:58 -07:00
Zhou Song
83c6033064 asoc: add new fe for hearing aid
Add a new fe dedicated for hearing aid and the support
of reading data from a new proxy port.

Change-Id: Id2e8ade6bfe5412ca6520d3cff70d6eebad7d7cc
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-04-21 16:58:00 +08:00
Vatsal Bucha
b00df5a5c7 ASoC: wcd938x: Do not enable hold_off while enabling watchdog
Hold_off bit for enabling watchdog will enable mute until
there is a block reset and watchdog bits aren't toggled.
Disable hold_off bit so that wcd is recovered from mute
instantly once watchdog occurred.

Change-Id: Ia87593ead05dde4e31a0afefd6ffaca89bb95448
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-21 00:17:11 -07:00
Sudheer Papothi
5e450b198c ASoC: swr-haptics: Update the configuration and gain settings
Update the configuration and gain settings as per hardware
sequence recommendation for soundwire haptics usecase.

Change-Id: I09b86026f664fec3105af4a8180168fda457d4fd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-21 11:18:54 +05:30
Sudheer Papothi
8e815fed8b ASoC: wsa883x: Check for dereference before access
Check for valid pointer before access in wsa883x driver
to avoid dereference.

Change-Id: I1c7c158063d178b489ea1e71be745ed3ca32fb16
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-21 09:45:52 +05:30