Commit graph

2,297 commits

Author SHA1 Message Date
Vatsal Bucha
7b663b23b2 ASoC: wcd-mbhc: Fix headset insert not detected after moisture config
Headset insertion is not detected after moisture is configured and then
removed. This is because during moisture_detect GND_DET_EN is configured
irrespective of whether it is enabled or not. Add a check before enabling
gnd_det_en. Also as moisture_en is disabled and duty cycle is enabled
change check during removal to disable threshold and polling.

Change-Id: Iee9d79b38b228e78d1509d59e92d37f1328f079e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-25 00:47:21 -07:00
qctecmdr
f277ee3154 Merge "soc: swr-mstr: remove soundwire state check in interrupt handler" 2019-10-23 05:21:31 -07:00
qctecmdr
8393ea841a Merge "asoc: msm-pcm: move null ptr check after lock" 2019-10-23 05:03:17 -07:00
qctecmdr
111c029686 Merge "dsp: lsm: move lsm_common deregister out of mutex_lock" 2019-10-23 05:00:17 -07:00
qctecmdr
61793bf902 Merge "dsp: q6voice: Reset dma_buf pointer to NULL in case of failure" 2019-10-23 04:57:35 -07:00
qctecmdr
88faaba9d0 Merge "asoc: wsa881x-analog: Defer wsa probe until mclk node available" 2019-10-23 04:52:53 -07:00
qctecmdr
cb0223f0d4 Merge "soc: soundwire: Add delay to over come race condition" 2019-10-23 04:47:27 -07:00
qctecmdr
1543085859 Merge "asoc: codecs: Vote for codec core and NPL clocks before regcache_sync" 2019-10-18 08:29:51 -07:00
qctecmdr
b41cd7716e Merge "ASoc: Fix for dtmf tone play issue" 2019-10-18 08:25:54 -07:00
qctecmdr
fd0384557a Merge "soc: pinctrl-lpi: Add support for audio HM voting for bengal" 2019-10-18 08:23:05 -07:00
qctecmdr
fd60ba91e4 Merge "bengal: enable compile of required modules" 2019-10-18 08:20:09 -07:00
Ajit Pandey
9d6160b373 dsp: q6voice: Reset dma_buf pointer to NULL in case of failure
In case of voice_alloc_rtac_mem_map_table() failure no memory get
allocated for rtac but dma_buf pointer might get corrupted and may
point to some unmapped memory region. Since we are only doing NULL
pointer check for dma_buf in method is_rtac_memory_allocated() we
need to reset such pointer to NULL in failure case.

Change-Id: I5e81adad4e302620757375f87fa15344e07dccf8
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-10-18 04:48:37 -07:00
qctecmdr
360a45bad1 Merge "ASoC: wsa883x: Add support for wsa883x speaker amplifer" 2019-10-16 23:52:29 -07:00
qctecmdr
15e89245c3 Merge "dsp: afe: call get params with afe cmd lock held" 2019-10-16 23:46:59 -07:00
qctecmdr
bda988eed1 Merge "asoc: msm-pcm: Add mutex lock to protect prvt data" 2019-10-16 23:42:54 -07:00
qctecmdr
da0caa48e2 Merge "asoc: dsp: move ctl "SLIM_7_RX APTX_AD Enc Cfg" to the bottom" 2019-10-16 23:35:30 -07:00
qctecmdr
26247b9b1c Merge "asoc: wcd937x: Fix compile error in wcd937x codec driver" 2019-10-16 23:32:44 -07:00
Vikram Panduranga
2b0c995899 asoc: msm-pcm: move null ptr check after lock
Null pointer for runtime is checked before acquiring the lock.
By the time, it acquires lock and tries to access private
data runtime may be removed which can lead to null ptr
dereference.

Change-Id: I86ca89bd7dbd765c040bab2a292f62c2d3164140
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2019-10-16 22:51:11 -07:00
Meng Wang
117ebd0932 soc: swr-mstr: remove soundwire state check in interrupt handler
when triggering SSR during speaker playback and insert headset,
headset insertion/removal IRQ don't reach soundwire master side.
Remove soundwire state check in interrupt handler to resolve headset
detection issue.

Change-Id: If6ff9aaaab9513f713d6106913dfccbc0e75e385
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-10-16 00:01:47 -07:00
Laxminath Kasam
2b85d8e050 asoc: wsa881x-analog: Defer wsa probe until mclk node available
Update wsa analog driver to defer probe until mclk node
is available.

Change-Id: I8c1e9dc8fe014ebd9845cf8e9fc759106bd3ffff
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-16 11:18:49 +05:30
qctecmdr
731807e0a2 Merge "asoc: codecs: restore wsa analog driver files" 2019-10-15 01:13:13 -07:00
qctecmdr
73d4531d52 Merge "asoc: codecs: wcd938x: Add support for setting ear gain ctl" 2019-10-15 01:12:28 -07:00
qctecmdr
bf7e1c0567 Merge "asoc: bengal: Add new machine driver for bengal target" 2019-10-15 00:51:27 -07:00
qctecmdr
f4ad6ff187 Merge "asoc: codecs: bolero: audio HM voting only supported on bengal" 2019-10-15 00:47:21 -07:00
qctecmdr
18fe524741 Merge "soc: soundwire: Update hctl gate setting for SWR version 1.6" 2019-10-15 00:42:55 -07:00
qctecmdr
565f0218db Merge "asoc: codecs: Make compander write coefficients as volatile" 2019-10-15 00:36:09 -07:00
qctecmdr
e5a9a64b36 Merge "asoc: add routing for RX_CDC_DMA_RX_1 to connect for hostless FE" 2019-10-15 00:26:14 -07:00
qctecmdr
0f6392dc14 Merge "asoc: codecs: Check for core votes count before accessing registers" 2019-10-15 00:22:20 -07:00
qctecmdr
e59a8a66f5 Merge "dsp: lsm: don't print physical address of invalid lsm client pointer" 2019-10-15 00:18:43 -07:00
qctecmdr
6a164b940d Merge "asoc: codecs: bolero: ignore children for pm suspend" 2019-10-15 00:15:16 -07:00
Meng Wang
a801ad8fd7 dsp: lsm: move lsm_common deregister out of mutex_lock
When dispatch_event in apr and q6lsm_client_free in q6lsm
are running concurrently, there may be deadlock between
session_lock in lsm and svc->m_lock in apr for lsm_common.
Move lsm_common mmap apr deregister out of mutex_lock to
avoid deadlock.

Change-Id: I7c96ba12834bd4a7c8e5ca1b78d798578678b251
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-10-14 20:22:41 -07:00
Prasad Kumpatla
2ef0c88aec asoc: msm-pcm: Add mutex lock to protect prvt data
Add mutex lock to protect private data in _put() and
_get() calls

Change-Id: I92f5a6515b6d1c4ad650a7dcf22a0a231a84dd30
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2019-10-14 12:38:58 -07:00
Prasad Kumpatla
386df4e611 soc: soundwire: Add delay to over come race condition
Switch b/w 44.1Khz to 48Khz and vice versa,mux switch on
HPH path is unable to take place.Add sufficient delay to
happen clock release.

Change-Id: I80c40772c03bbbd3a57a4e6de270de4779f882a7
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2019-10-14 17:40:53 +05:30
Laxminath Kasam
00f60bae1e bengal: enable compile of required modules
Update compile of required modules for bengal target.

Change-Id: If4d512b7270cc811a05524caac5292234a0ac437
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:40:48 +05:30
Laxminath Kasam
57e66c0251 asoc: wcd937x: Fix compile error in wcd937x codec driver
Update codec to component param for 4.19 kernel compatible.

Change-Id: Ia08283de4b01b45a6cd96c7f488f55bb0d4a5a53
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:31:17 +05:30
qctecmdr
f138524159 Merge "asoc: codecs: bolero: Add support to disable aux hpf" 2019-10-12 09:01:00 -07:00
qctecmdr
75b962681c Merge "asoc: codecs: bolero: Do not return error for unused gpio" 2019-10-12 08:58:56 -07:00
qctecmdr
d9328bec09 Merge "asoc: codecs: wcd938x: Fix HPHL mute when ear path teardown" 2019-10-12 08:57:06 -07:00
qctecmdr
d20a882baf Merge "dsp: Reset core hw vote client handle in SSR" 2019-10-12 08:55:27 -07:00
qctecmdr
21b6b95462 Merge "asoc: kona: vote audio dcodec for mi2s fractional sample rate" 2019-10-12 08:53:33 -07:00
qctecmdr
18b8880076 Merge "asoc: codecs: wcd937x: restore clear_ack setting for wcd937x" 2019-10-12 08:51:14 -07:00
qctecmdr
55603d0cb0 Merge "asoc: codecs: Add HPH and EAR concurrency state in class-h driver" 2019-10-12 08:49:13 -07:00
Aditya Bavanari
cfc65e8257 asoc: codecs: Vote for codec core and NPL clocks before regcache_sync
Vote for codec core and NPL clocks before regcache_sync
to avoid unclocked access of bolero registers.
Unvote once the regcache sync is done.

Change-Id: Iae45f487113c55318f33cd1950e2d6b64bcd945a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-11 20:11:10 +05:30
Aditya Bavanari
f8be8bdcf1 asoc: codecs: Make compander write coefficients as volatile
Make HPHL and HPHR compander write coefficients as volatile
registers in order to avoid cache operations on these registers
to fix audio glitch issues in headset playback.

Change-Id: If5a2019debdda3c50cc5cf1135dff2ad0e5a49a2
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-11 11:24:52 +05:30
Sudheer Papothi
af0a66b78a ASoC: wsa883x: Add support for wsa883x speaker amplifer
WSA883x is a speaker amplifier with soundwire interface and
enumerates as soundwire slave. WSA883x supports audio playback
on speakers and has temperature sensors for better speaker
protection and enhanced boost control support. Add software
driver support to enable WSA883x speaker amplifier.

Change-Id: Ib9cf2eebdda5ce331154bc786f059c5757f34fa2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-10-11 02:00:27 +05:30
Aditya Bavanari
d577af909c asoc: codecs: Check for core votes count before accessing registers
Check for core votes count before accessing swrm registers
to avoid NOC errors.

Change-Id: I5689d6a6db0886ed4cc791738a28290f3d953412
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-10 20:29:49 +05:30
Xiaoyu Ye
56c0d0927d dsp: lsm: don't print physical address of invalid lsm client pointer
Function q6lsm_get_session_id_from_lsm_client will print out the
physical address of a lsm client pointer in error message when it
fails to find the matching lsm client. This is not needed because
the address information is redundant and might cause potential
issue when a lsm client is already invalid.

Change-Id: If8c38b566c839c4b45d98e79802d0fd6efb5bdb9
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-10-09 21:57:42 -07:00
Laxminath Kasam
c7bfab9706 soc: soundwire: Update hctl gate setting for SWR version 1.6
In soundwire version 1.6, hw_ctl gating is required to address
HW limitation as SW workaround to get SWR functionality working.

Change-Id: Ia0939b1271f5400319217433de658a55a05ca404
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 22:38:45 +05:30
Laxminath Kasam
9e78ef8743 asoc: codecs: restore wsa analog driver files
Add support back for wsa analog codec driver files.

Change-Id: I7ef6ad050b068ec8c0f0275089d670c92234686d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:57:18 +05:30
Laxminath Kasam
ae52c99252 asoc: bengal: Add new machine driver for bengal target
Add support for new machine driver for bengal target.

Change-Id: Iffb189136e0ec0ae42d375d112227d4237e4b502
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:27:00 +05:30