Commit graph

3,459 commits

Author SHA1 Message Date
Vignesh Kulothungan
eefcf012a3 ASoC: wsa883x: disable speaker brown out protection
Disable brown out protection (bop) attenuation levels 1,2 and 3 
which causes fast and coarse transitions in gain during voltage drop.
This creates "pop" noise during the drop. Since battery current
limiting (bcl) feature is enabled with CPS, bop is redundant and
can be disabled.

Change-Id: I51617333203ba14784e2338d91a96082c55e1331
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-18 19:46:07 -08:00
qctecmdr
dec796e30a Merge "dsp: add change to enable preemption at cal_utils_dealloc_cal." 2020-11-10 23:20:57 -08:00
qctecmdr
e9b221b2ee Merge "asoc: pcm-noirq: set substream state to disconnect when ssr happens" 2020-11-10 23:20:57 -08:00
qctecmdr
4aa9a95519 Merge "soc: add support to read swr physical addr from dt" 2020-11-10 23:20:57 -08:00
qctecmdr
911e4533ee Merge "asoc: codec: Fix compilation for wcd934x codec driver" 2020-11-10 23:20:57 -08:00
Meng Wang
e0705ab0d4 asoc: pcm-noirq: set substream state to disconnect when ssr happens
When SSR happens, set substream state to SNDRV_PCM_STATE_DISCONNECTED
to avoid userspace keeping waiting for substream state and causing
deadlock.

Change-Id: Iaa4d76101204652742c55d13da5c770c418a16bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-11-06 09:14:44 +08:00
Vignesh Kulothungan
41db7ae304 soc: add support to read swr physical addr from dt
Remove static definitions of rx swr slave physical addresses.
Add support to read swr slave physical addresses from device
tree and store it within respective master data structure.
Revert addition of slave device address for wcd937x in soundwire
master.

Change-Id: I0eb2597b8e40a54d476cd2662bbe4f2008af899a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-05 16:10:45 +08:00
qctecmdr
78fff06931 Merge "asoc: codecs: fix race condition of core vote and reg access" 2020-11-04 19:57:25 -08:00
Saurav Kumar
e4463e36c8 dsp: add change to enable preemption at cal_utils_dealloc_cal.
Add change to enable preemption at cal_utils_dealloc_cal.

Change-Id: I3d9304851f4d61d7afb82c0512421159ec788db1
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-11-03 12:30:01 +05:30
Amitkumar H(Temp)
5d7c21de7f asoc: codec: Fix compilation for wcd934x codec driver
Fixed compilation issues.

Change-Id: Ia8ba3840f7630361c430ccbaab6cde5a24f8c367
Signed-off-by: Amit Kumar Hayyal <amih@codeaurora.org>
Signed-off-by: Vivek Malapaka <malapaka@codeaurora.org>
2020-11-01 20:44:17 -08:00
qctecmdr
59298aad12 Merge " ASoC: bolero: Update clock sequence to clear Fs counter" 2020-11-01 20:23:50 -08:00
qctecmdr
8ae1b12168 Merge "soc: add check condition before enabling irq" 2020-11-01 20:23:50 -08:00
Vangala, Amarnath
f2e5dd213c asoc: codecs: fix race condition of core vote and reg access
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.

Change-Id: Ib0f6b026fe0e7fd3fbe052691db492915e436a78
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-10-30 14:58:15 +05:30
qctecmdr
f03233c4f7 Merge "soc: swr-mstr: Enable device wakeup only for tx macro" 2020-10-28 11:22:16 -07:00
Vignesh Kulothungan
01906e6049 soc: add check condition before enabling irq
Enable interrupt request only when the interrupt is
in disabled state.

Change-Id: I67795bf0ee344661e02b0fec3181cd7980d56652
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-10-28 10:15:12 -07:00
qctecmdr
7c1dc5a70e Merge "asoc: msm-pcm-q6-v2: Update memset for period size" 2020-10-25 07:34:22 -07:00
qctecmdr
d757a256e4 Merge "asoc: avoid adding global control in loopback probing twice" 2020-10-25 07:34:22 -07:00
qctecmdr
6b3783e3b8 Merge "ASoC: error check for backend index and MCLK src" 2020-10-25 07:34:22 -07:00
qctecmdr
c5337ea009 Merge "asoc: va-macro: Update clk_div switch based on decimation rate" 2020-10-25 07:34:22 -07:00
qctecmdr
3fc43769b0 Merge "asoc: routing: add PRI_TDM path as echo reference data" 2020-10-25 07:34:22 -07:00
qctecmdr
5872bd0838 Merge "asoc: wcd937x: Update slave port config table for BCS" 2020-10-25 07:34:22 -07:00
qctecmdr
93e8156fb8 Merge "asoc: bolero: Add core_vote before gfmux access" 2020-10-25 07:34:22 -07:00
qctecmdr
88318ed5e8 Merge "soc: swr-mstr: Resolve swr overflow, underflow errors for wsa" 2020-10-25 07:34:21 -07:00
qctecmdr
6de6dc28a5 Merge "soc: update port config table to handle sva/voip" 2020-10-25 07:34:21 -07:00
qctecmdr
170e5c6038 Merge "soc: update mechanism to set master port offset1" 2020-10-25 07:34:21 -07:00
qctecmdr
883a10354b Merge "soc: swr-mstr: Check for fifo avail before bulk write" 2020-10-25 07:34:21 -07:00
Amit Kumar H
bc905e33d5 asoc: codec: Fix compilation for wcd9335 driver
Change macros for 5.4 kernel compatible.

Change-Id: Iaf15183653d8c2f2072437cfb92d048a954e96f9
Signed-off-by: Vivek Malapaka <malapaka@codeaurora.org>
Signed-off-by: Amit Kumar H <amih@codeaurora.org>
2020-10-23 10:31:53 +05:30
Mangesh Kunchamwar
b45e776c9c ASoC: error check for backend index and MCLK src
Update proper error checks for backend index and MCLK src
ID.

Change-Id: I36680f7bae66f95f099d59740c68861c5ee28d86
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2020-10-22 14:08:51 +05:30
Vatsal Bucha
5fe4a509cc soc: swr-mstr: Enable device wakeup only for tx macro
At bootup device wakeup enable is called for all masters
causing issue for wsa on lahaina. This is because wsa
supports interrupts on lahaina. Thus enable device wakeup
only for tx master.

Change-Id: Ia53df31427e54d5fd981cd650e1b0f06cb2d47b5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-10-22 13:32:08 +05:30
Vignesh Kulothungan
9d8d55d947 soc: update mechanism to set master port offset1
When multiple slave ports are configured to a single master port,
the offset1 of master is the minimum of all slave port's offset1.

Change-Id: I102269806048ecf9982489164a7651a2cdd0661c
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-10-20 11:32:42 -07:00
Laxminath Kasam
b522d6a8f2 asoc: msm-pcm-q6-v2: Update memset for period size
tinycap test can attempt with different size to
read from driver and need to avoid access more
than period size.

Change-Id: Ifa4ddfb086bd83aa981da62e88da3a9395f5aabc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-20 13:18:55 +05:30
Vignesh Kulothungan
d7c3e4fbe1 ASoC: codecs: add null check before use
Add null check for swr dmic component and swr_dmic_priv
before use.
Add array bounds check for slave port index before
accessing the array.

Change-Id: I57cc860e69d75385434822b1975d869d12717de4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-10-19 23:22:43 -07:00
qctecmdr
19df8856be Merge "asoc: Fix LSM2 mixer control array" 2020-10-19 21:44:04 -07:00
qctecmdr
6e98db9bf4 Merge "asoc: routing: remove unnecessary routing for TDM_TX" 2020-10-19 21:44:04 -07:00
qctecmdr
09d2850b3a Merge "asoc: holi: use new pm_qos API" 2020-10-19 21:44:04 -07:00
qctecmdr
e2c4330a48 Merge "q6afe: add support for lc3 codec playback" 2020-10-19 21:44:03 -07:00
Laxminath Kasam
212d01f856 asoc: wcd937x: Update slave port config table for BCS
Update slave port config table to avoid overlap
of BCS channel with headset ADC2 channel.

Change-Id: Ib414ac1bcbdf66fd4addc6ca22edb78a61ea7a90
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-19 13:40:31 +05:30
Guodong Hu
88dba174c9 asoc: avoid adding global control in loopback probing twice
Add condition control to avoid mixer being added twice,
to avoid kernel error printing.

Change-Id: I832e4c08ac06fe885c1497bce4bd4ada96ef83fb
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-10-19 15:12:21 +08:00
Vatsal Bucha
5936ba71aa soc: swr-mstr: Resolve swr overflow, underflow errors for wsa
SWR overflow, underflow interrupts are seen sometimes on bootup.
Check whether devnum is 0 during fifo read and write. Also assign
read and write fifo depth before master init to resolve errors.

Change-Id: Id7b687985e320396d2f9dab69db56cc7f5426b04
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-10-19 12:04:28 +05:30
Meng Wang
7fc3defb1f ASoC: bolero: Update clock sequence to clear Fs counter
Update codec clock sequence to clear Fs counter to avoid
unexpected behavior during bootup.

Change-Id: I78da6dadd26989cf1f39f71b941a209c2af4cef2
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-10-19 13:50:01 +08:00
Vatsal Bucha
760bd4ab46 soc: swr-mstr: Check for fifo avail before bulk write
Check for fifo availability before writing slave registers
during swrm master bulk write so as to prevent swr
overflow, underflow errors.

Change-Id: I97a914cac289b3f1215ccf5c1abec88b959a9f21
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-10-18 12:45:38 +05:30
Meng Wang
c921bbaee3 asoc: routing: add PRI_TDM path as echo reference data
Add PRI_TDM_TX_0 and PRI_TDM_RX_0 as echo reference data.

Change-Id: Iea5e870e081866f882a3ae5c962d92d7c908ef67
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-10-15 14:26:43 +08:00
Laxminath Kasam
180f3f66ae asoc: va-macro: Update clk_div switch based on decimation rate
Update clk_div setting for low power decimations based on
decimation rate instead of lpi flag.

Change-Id: I6e445618af4bf159f3d88a7bc5d07a403a06c1ab
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-15 11:25:08 +05:30
Laxminath Kasam
820d1fbf9d asoc: bolero: Add core_vote before gfmux access
GFMUX access happen during RX macro usecase.
Update rx macro to do core_vote before clock
request.

Change-Id: I1afd38ae13066dcfbda307308afce7c4291142d9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-14 20:52:09 +05:30
Laxminath Kasam
e0ea9653c3 asoc: bolero: control wakeup of swr_tx during clock setup
Move the enable and disable of wakeup capability of
swr_tx gpios to clock setup to disable or enable it
in all required usecases.

Change-Id: I9fb76926d8520c382e7f19777190357c50f98994
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-14 12:55:12 +05:30
Aditya Bavanari
5712083a09 asoc: Fix LSM2 mixer control array
LSM2 mixer control mapping for VA_CDC_DMA_TX_0
was added in MI2S controls. Move it out to
fix the concurrency issues seen in SVA.

Change-Id: I1e375b2ea86755b935f3d706d2955ad4aa6ef42f
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-10-13 11:59:49 +05:30
Vignesh Kulothungan
941b438117 soc: update port config table to handle sva/voip
Update sample interval in 4.8MHZ port config table of soundwire
digital mic slave and TX1 soundwire master port.
Update the block offset of soundwire digital mics 0 and 3 to handle
voip/sva dmic concurrency in both handset and speaker mode.

Change-Id: I85480c3609a72d4be3c4643b0123f09d71b97fef
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-10-12 15:32:37 -07:00
qctecmdr
1f152bcd76 Merge "asoc: codecs: add sem initialize for blocking notifier." 2020-10-12 10:10:29 -07:00
qctecmdr
ef3408efeb Merge "soc: Add ratelimit to supress the pr_err/dev_err." 2020-10-12 10:10:29 -07:00
qctecmdr
7990d81f20 Merge "ASoC: msm: update quin tdm slot for single lane" 2020-10-12 10:10:29 -07:00