Commit Graph

2802 Commits

Author SHA1 Message Date
Prasad Kumpatla
a804ab121b asoc: Fix port collision interrupt in WSA
During multiple PDR usecases, due to sync issues
port collision interrupt is observed.
set wsa state to device down  before cancelling the ocp
workqueue and bail out from the workqueue when wsa state
is set to device down.

Change-Id: Ibefb338c1d6d2901b8773928fa2c0c48b51ac6f7
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-04-29 23:25:56 -07:00
qctecmdr
93afa626ed Merge "asoc: fix prepare error in pulseaudio loopback cases" 2020-04-29 22:27:55 -07:00
qctecmdr
5cf3663e4e Merge "dsp: Add spinlock to protect audio client" 2020-04-29 22:27:55 -07:00
qctecmdr
a7157ee9fa Merge "ASoC: msm-compress: Add NULL check in msm_compr_set_volume" 2020-04-29 22:27:55 -07:00
qctecmdr
723a62beeb Merge "ASoC: codecs: check component pointer before use" 2020-04-29 22:27:54 -07:00
qctecmdr
8ff0eb72f9 Merge "ASoC: wcd938x: Do not enable hold_off while enabling watchdog" 2020-04-29 22:27:54 -07:00
qctecmdr
6fb66eda12 Merge "uapi: add ADM_AUDPROC_PERSISTENT cal type" 2020-04-29 22:27:54 -07:00
qctecmdr
5c661788c7 Merge "ASoC: swr-haptics: Update the configuration and gain settings" 2020-04-29 22:27:54 -07:00
qctecmdr
f577bd0be4 Merge "ASoC: wsa883x: Check for dereference before access" 2020-04-29 22:27:54 -07:00
qctecmdr
e0d8ac9017 Merge "asoc: lahaina: add frontend MM31 and MM32 for haptics" 2020-04-29 22:27:54 -07:00
qctecmdr
255f95ddd3 Merge "asoc: rouleur: Enable rouleur codec driver compilation" 2020-04-29 22:27:54 -07:00
qctecmdr
8707284023 Merge "ASoC: wcd-mbhc: Fix playback pause during lineout insertion" 2020-04-29 22:27:54 -07:00
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
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
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
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
Sudheer Papothi
b51f959486 soc: soundwire: Update sample interval configuration
Update MSB of sample interval in the frame shape
to avoid misconfiguration.

Change-Id: I05e99bc563f6cdc71c7caf424441c4caa44ec4c6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-21 04:58:29 +05:30
Aditya Bavanari
b4364f47ec asoc: codecs: Update sequence for HPH path in rouleur
Update HPHL and HPHR sequence to avoid clicks and pops
by setting the LDIV and RDIV values in HD2
coefficients and increasing ramp time.

Change-Id: Ib47d14255a098511393b4b75392854c8b34dc0d3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-20 11:32:47 -07:00