Commit Graph
3162 Commits
Author SHA1 Message Date
Aditya Bavanari a555c1153b asoc: codecs: sdm660_cdc: Fix LPASS register access during PDR
When AFE returns failure in setting the digital codec
core clock during PDR, it leads to LPASS register access
which results in NOC error and AHB timeout. Put the regmap
in cache only mode during clock set failure to fix this.

Change-Id: I221bf02f32b1dae19a02435220dec8a85f5dd998
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-11-23 21:55:49 -08:00
qctecmdr d62420bed8 Merge "dsp: add afe function to send cps configuration" 2020-11-20 02:18:50 -08:00
qctecmdr b17876f509 Merge "ASoC: tx-macro: Allow regcache sync during clock enablement" 2020-11-20 02:18:50 -08:00
qctecmdr b49d3e6337 Merge "ASoC: wsa883x: add function to get swr device number" 2020-11-20 02:18:50 -08:00
qctecmdr 63e67b32cc Merge "ASoC: wsa883x: enable vbat adc filter" 2020-11-20 02:18:50 -08:00
Faiz Nabi Kuchay 98cbc2ad61 ASoC: lagoon: add support for CPS speaker protection
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.

Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-11-19 12:34:37 +05:30
Saurav Kumar d775e3b2ef 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-17 17:02:35 +05:30
Sudheer Papothi 194d1fa42d ASoC: tx-macro: Allow regcache sync during clock enablement
Allow regcache sync during clock enable to make sure the registers
are in proper state before the usecase.

Change-Id: I8a9214e460c7f77759d1956e0e7e2d6b2f5b3d3a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-11-16 22:27:06 -08:00
Vignesh Kulothungan fe78229b83 ASoC: wsa883x: add function to get swr device number
Add a function in wsa883x which returns the sound wire
device number for a given wsa883x codec slave instance.

Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-16 05:19:07 -08:00
qctecmdr d06e8ae24c Merge "asoc: bolero: control wakeup of swr_tx during clock setup" 2020-11-10 23:20:43 -08:00
qctecmdr 8befe5a144 Merge "soc: swr-mstr: Resolve swr overflow, underflow errors for wsa" 2020-11-10 23:20:43 -08:00
qctecmdr 8204ea7c83 Merge "soc: swr-mstr: Check if fifo available before bulk write" 2020-11-10 23:20:43 -08:00
qctecmdr 582cd7438b Merge "soc: Synchronize RESET event and lpi ops in legacy driver" 2020-11-10 23:20:43 -08:00
Saurav Kumar 10825a5129 dsp: add change to handle use-after-free in cal_utils_is_cal_stale
Add change to address the race condition between
pointer dereference and memory deallocation.

Change-Id: Ia1ed47986ec81d3dc2feb3bc874847fadddac292
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-11-04 12:45:59 +05:30
Vatsal Bucha ffed8c864d soc: swr-mstr: Check if fifo available 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-11-02 16:44:26 +05:30
Laxminath Kasam 39b6414cd3 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-11-02 10:56:07 +05:30
Vatsal Bucha 4bf858c38d 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-11-01 21:15:23 -08:00
qctecmdr 64daa7421d Merge "soc: swr-mstr: Update soundwire state to SSR during UP" 2020-11-01 20:25:46 -08:00
qctecmdr aa3648d096 Merge "dsp: add change to fix use-after-free issue" 2020-11-01 20:25:46 -08:00
Laxminath Kasam 32134e17dd soc: swr-mstr: Update soundwire state to SSR during UP
During SSR up event handler, if soundwire state is
already up or auto suspend jiffies is not completed,
ensure put in suspend/SSR state.

Change-Id: I853f42d125eb5a60e3f1f065a60516877e3a463c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-28 16:58:07 +05:30
Saurav Kumar 0c09e91ab6 dsp: add change to fix use-after-free issue
Add change to properly handle the pointers by setting them to
NULL after free and adding some null checks before dereferencing.

Change-Id: I3e52b9a6885a8d8a91c09f75fe92ba69e3eb555f
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-10-27 13:57:53 +05:30
Laxminath Kasam c960f3d811 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-27 00:47:29 -07:00
qctecmdr 1a1d9e33b6 Merge "asoc: va-macro: Allow swr switch at powerup/shutdown" 2020-10-25 07:35:08 -07:00
Linux Build Service Account b09b7036b4 Merge 63a7be894a on remote branch
Change-Id: I56cea525f7ca492d74179a672e78ffd1561ba153
2020-10-23 20:34:54 -07:00
qctecmdr 5924536a4a Merge "ASoC: SDM660: Avoid static route between cpu and codec dai" 2020-10-22 11:22:04 -07:00
qctecmdr 08f61ac197 Merge "asoc: add null check for pcm pointer of snd_pcm_volume" 2020-10-22 11:22:04 -07:00
qctecmdr c876cd8c7d Merge "asoc: wcd-spi: Set the dma_mask for spi_device" 2020-10-22 11:22:04 -07:00
qctecmdr 09f3c6d7fd Merge "ASoC: audio-ext-clk: Add pmi clk support for tasha" 2020-10-22 11:22:04 -07:00
Laxminath Kasam 467177306b asoc: va-macro: Allow swr switch at powerup/shutdown
Ensure soundwire clock re-setup always for SWR AMIC usecase
startup and at end of usecase.

Change-Id: Ie0e94a456c8e5e529a2a7435ded094483e369f01
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-16 03:29:58 -07:00
Shashi Kant Maurya a43aea2851 ASoC: SDM660: Avoid static route between cpu and codec dai
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up first
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different. Set the dynamic bit of
backend dai dailink to update the backend parameters
before codec path setup.

Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Change-Id: I71c3eb662091f78b419850bce962cfc2c041804a
2020-10-16 13:37:36 +05:30
Soumya Managoli 052f12a0dc soc: Synchronize RESET event and lpi ops in legacy driver
Race condition is observed during ADSP SSR
when LPI pinctrl receives the SERVICE DOWN
event and lpi gpio read or write is executed.
Synchronize these functions using lock.

Change-Id: Ie80c41e260b4b572c1c3ede8a2a58a3a0332fe7d
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-10-15 03:23:49 -07:00
Shashi Kant Maurya 80a0e4c595 ASoC: codec: Enable wcd-spi driver compilation
Enable the wcd-spi driver on SDM660.
Added config to set DMA_MASK on SDM660.

Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2020-10-15 01:39:46 -07:00
Shashi Kant Maurya 3ae025193e asoc: wcd-spi: Set the dma_mask for spi_device
Wcd-spi multi read fails in umapping the dma memory(swiotlb_bounce).
Memory is not allocating from CMA reserve which leading the failure.
So forcing the driver to allocate memory from CMA by initializing the
device’s coherent_dma_mask & dma_mask.

Change-Id: I7c0dba83789ed3c18c336e564a9f06397af9f0e8
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2020-10-15 13:52:02 +05:30
Soumya Managoli 3124d60cf7 ASoC: audio-ext-clk: Add pmi clk support for tasha
Add new audio_clk entry div_clk1 to register
pmic clock for wcd9335 on sdm660.

Change-Id: I113c02e14e33aa7ea506e641ff540db72dc96214
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-10-13 11:18:57 +05:30
qctecmdr 63a7be894a Merge "asoc: Add 32bit support in meta i2s" 2020-10-12 08:55:34 -07:00
xsang 9a0b2d24ca asoc: add null check for pcm pointer of snd_pcm_volume
In platform driver volume controls, add null check for
pcm pointer of struct snd_pcm_volume.

Change-Id: I511a79422eaeced6240849cbb665a289afdc5984
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-10-12 19:36:29 +08:00
Faiz Nabi Kuchay b721459e0c dsp: add afe function to send cps configuration
Define cps hw interface configuration structures.
Add AFE_PARAM_ID_CPS_LPASS_HW_INTF_CFG parameter id.
Add a function to send afe cps speaker protection
configuration.

Change-Id: I865e9981b6dd1da4b9ef1a3e18be82cea2996309
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-10-08 18:25:49 +05:30
qctecmdr 8cc24b2282 Merge "dsp: Add param header size based on the instance id support" 2020-10-07 01:59:24 -07:00
Deeraj Soman db21fd0c78 asoc: Add 32bit support in meta i2s
Add 32bit PCM support in META I2S

Change-Id: I9dc09f853858f09a8bcd0a6529416abf1e159e71
Signed-off-by: Deeraj Soman <sdeeraj@codeaurora.org>
2020-10-06 23:33:09 -07:00
Laxminath Kasam 1e7a9df19f asoc: va-macro: Update widget order for VA_MCLK and VA_SWR_PWR
Update widget order for widgets VA_MCLK and VA_SWR_PWR.
As both are having widget supply priority -1, sometimes
dapm is triggering both widget callbacks simultaneously
causing race condition in handling the SWR clock release
with proper request for VA_CLK instead of TX_CLK and
next usecase powerup is impacted.

Change-Id: I3d3a3fadcdb897287ad070dc9e81e354c6f970b0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-09-28 01:05:54 -07:00
Sujin Panicker 48d4085242 dsp: Add param header size based on the instance id support
Add param header size to the actual parameter size
based on the instance id support.

Change-Id: I8937e71254265dbc9faf00b9cfc7c40c88f4388a
Signed-off-by: Sujin Panicker <spanic@codeaurora.org>
2020-09-28 00:02:00 -07:00
qctecmdr d5bff1117f Merge "ASoC: dsp: Synchronise adm and rtac commands" 2020-09-27 03:08:59 -07:00
Laxminath Kasam d123e76ff3 dsp: q6core: Check q6core avs state to be modules ready
During PDR, in dynamic load module if attempted
before all module state ready on AVS it may fail.
Add AVS state check before send load module cmd.

Change-Id: I70a5a5b11f5661042d704222759608179ba9d47c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-09-23 23:13:27 -07:00
qctecmdr f07887c755 Merge "asoc: sdm660: Correct the dev_id for hdmi backend." 2020-09-23 22:10:49 -07:00
Linux Build Service Account b2156c6e60 Merge e220496f82 on remote branch
Change-Id: I63631f588e3e5f662a5e8597a0dc28df46146bc6
2020-09-22 05:58:05 -07:00
Soumya Managoli 0c317f309c ASoC: dsp: Synchronise adm and rtac commands
Race condition observed while processing the
set_pp_params command responses sent back to back
by adsp for commands sent from adm and rtac.
Handle this by synchronising the get/set pp_params
command in both the drivers.

Change-Id: Id89d98217dc5cad3703e5d545ddee21cb145c874
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-09-22 09:49:10 +05:30
qctecmdr 835aa6950d Merge "ASoC: wsa883x: Update register sequence to reduce CnP" 2020-09-18 10:46:30 -07:00
qctecmdr 75d8c62828 Merge "asoc: sdm660: add proxy ports for call screening in machine driver" 2020-09-18 10:46:30 -07:00
qctecmdr c67eb5769a Merge "dsp: Feedback path cfg to support 3rd party spkr protection algorithms." 2020-09-18 10:46:30 -07:00
qctecmdr 345732fc96 Merge "asoc: codecs: Add support to dump rouleur swr slave regs" 2020-09-18 10:46:30 -07:00