Commit Graph

3113 Commits

Author SHA1 Message Date
qctecmdr
3b7f4a16ae Merge "asoc: add null check for pcm pointer of snd_pcm_volume" 2020-07-03 00:42:07 -07:00
Vatsal Bucha
39b18cbd38 ASoC: bolero: Resolve glitch during amic record
Glitch is observed during amic record due to improper
sequence being followed. Reduce delay between toggle
of hpf gate to depending on sample rate to resolve glitch.

Change-Id: I8d9810dbc00264662f24532be9338198e6d7316d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-02 20:09:54 -07:00
Vignesh Kulothungan
7b1cfaca64 ASoC: lahaina: add be dai link for DSD
Add BE dai link LPASS_BE_RX_CDC_DMA_RX_5 for DSD
playback usecase.

Change-Id: Iacafab0131100ce6631c376b304f8a5006c326b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-02 12:58:07 -07:00
Prasad Kumpatla
8508b1a103 asoc: codecs: remove cancel_delayed_work_sync to avoid race condition
Remove cancel_delayed_work_sync in swr_down,to avoid race condition
between skr_pa_event POST_PMD and swr_down.we are taking care of
schedule_delayed_work and cancel_delayed_work_sync in PMU and PMD.

Change-Id: I4f43ffc354ec930dabd7c4a8b2382f6064a24653
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-07-01 23:25:21 -07:00
Vignesh Kulothungan
b629237a0e ASoC: bolero: add rx_macro_rx5 dai for dsd
Add rx_macro_rx5 dai for native dsd playback support.

Change-Id: I52a47e1d908fddda4c9d1a5546f9a00d6b8a7ba4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-01 12:59:17 -07:00
Laxminath Kasam
070b8d25a1 asoc: wsa881x: Disable WSA ADC register when teardown
To ensure mono/stereo speaker usecases with speaker
protection enabled switch properly and apply register
during powerup, update disable sequence of ADC register.

CRs-Fixed: 2705914
Change-Id: If9ceb4436ed6ce236a4e529d65b0acc8f9f6cd0e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-01 17:03:16 +05:30
Xiaoyu Ye
e1e34edd16 asoc: check param_size before use it in memcpy
If param_size is not the correct size when it's
passed to memcpy, it could result wrong parameter
to be sent to ADSP by audio driver.

Change-Id: Iaf66a87c405bd0508bb0771c5fe20626f2b75dda
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-07-01 01:11:57 -07:00
Vatsal Bucha
a20b914402 soc: swr-mstr: Add delay of 100us after last write during bulk write
There is no delay after last write during bulk write. Add 100us delay
so as to ensure that last write goes fine.

Change-Id: Ifc1585f30eec639ffd6b80dde2e0365f368349d7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-30 23:11:50 -07:00
qctecmdr
6f1643eac5 Merge "asoc: compress: move compress controls to compress_new" 2020-06-30 19:16:29 -07:00
qctecmdr
db0a7df795 Merge "dsp: Feedback path cfg to support 3rd party spkr protection algorithms." 2020-06-30 19:16:29 -07:00
qctecmdr
dd29f28450 Merge "soc: swr-mstr: Fix KW issue in swrm_remove" 2020-06-29 11:21:31 -07:00
qctecmdr
668ef31d07 Merge "lsm: fix potential Null pointer dereference" 2020-06-29 11:21:31 -07:00
qctecmdr
66099fcea7 Merge "dsp: redefine audio_notifier_init to silence PDR error" 2020-06-29 11:21:31 -07:00
qctecmdr
92b6ef250c Merge "soc: soundwire: Reduce soundwire runtime suspend delay" 2020-06-29 11:21:31 -07:00
qctecmdr
c6f14b5027 Merge "Revert "soc: mstr-ctrl: Retain Audio_HM voting until suspend"" 2020-06-29 11:21:31 -07:00
qctecmdr
59e150f829 Merge "dsp: don't reset rx ec ref channel after adm open" 2020-06-29 11:21:31 -07:00
qctecmdr
81afbb7af9 Merge "asoc: convert pr_info to pr_debug to reduce kernel logs" 2020-06-29 11:21:31 -07:00
qctecmdr
6aa4e7993c Merge "dsp: convert pr_info to pr_debug to reduce kernel logs" 2020-06-29 11:21:31 -07:00
qctecmdr
5a6876340c Merge "ASoC: codecs: handle device disconnect during SSR" 2020-06-29 11:21:31 -07:00
qctecmdr
79f733d947 Merge "ASoC: wcd937x: Add mixer ctl for TX CH power level" 2020-06-29 11:21:30 -07:00
qctecmdr
8383303b0b Merge "ASoC: Resolve error logs printed at bootup" 2020-06-29 11:21:30 -07:00
Vangala, Amarnath
366f76d21c dsp: Feedback path cfg to support 3rd party spkr protection algorithms.
Backward compatibility change to set 'feedback path cfg' to AFE_MODULE_FEEDBACK,
to support 3rd party spkr protection algorithms.

Change-Id: I9af731902fbc5bc69f130a4f30d8fc5f18ceaace
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-06-23 10:14:57 -07:00
Meng Wang
86907313a3 asoc: compress: move compress controls to compress_new
Move compress controls to compress_new API to initialize
compress related mixer controls.

Change-Id: I7038d3c4644d0071477016b186ea0550e92f6214
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-22 17:35:26 -07:00
Vatsal Bucha
4bb46e759d ASoC: Resolve error logs printed at bootup
Error logs are printed by default during bootup
due to get function called for all controls.
Remove error logs and not used controls.

Change-Id: I7d73432bcdd0c527ea78b0ec1c9650056eadcfe5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-22 11:19:10 +05:30
Laxminath Kasam
034cd15ba8 Revert "soc: mstr-ctrl: Retain Audio_HM voting until suspend"
This reverts commit d02c7efb35.
and commit 61f235e5bd to avoid AOP
related issues.

Change-Id: I0b8b44bc5cca6bef6bc18c228f08a9c585c79c1c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-06-22 09:40:14 +05:30
qctecmdr
cbbff6809b Merge "soc: swr-mstr: Fix headset detection during sva clk switch" 2020-06-19 23:23:56 -07:00
qctecmdr
dc40c1136d Merge "asoc: wcd938x: Add WCD ADC Mode mask to control modes" 2020-06-19 23:23:56 -07:00
qctecmdr
a0a44eb453 Merge "asoc: update block size for dsd input" 2020-06-19 23:23:55 -07:00
qctecmdr
4d59a93144 Merge "soc: pinctrl-lpi: Add 100msec before resetting hw votes" 2020-06-19 23:23:55 -07:00
xsang
b588d829ad 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-06-19 20:22:50 +08:00
Vatsal Bucha
a1f8374cf5 ASoC: wcd938x: Reduce glitch during headset record
Enable ADC Mode and tx channel cfg as part of enable_adc.
This should be enabled before enabling bolero dec so as
to reduce glitch or saturation for headset.

Change-Id: I94045d0c3b7b96744afb9e6a9a3eecf0abc5a55f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-19 08:56:07 +05:30
Sudheer Papothi
c7cc20abc0 soc: soundwire: Reduce soundwire runtime suspend delay
Reduce soundwire runtime suspend delay for soundwire
to enter into sleep early once the usecase ends.

Change-Id: Idbace0fbe9363f487165865eacf5b85d3be86477
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-18 18:41:37 -07:00
Guodong Hu
4d71a88b69 dsp: redefine audio_notifier_init to silence PDR error
CONFIG_MSM_QDSP6_PDR is not enabled on Auto targets.

Change-Id: If7ac374bbe88635eeb328593b4d3a9f01a716c5c
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-06-18 02:12:16 -07:00
Xiaoyu Ye
ba1abdc202 lsm: fix potential Null pointer dereference
Pointer "ptr_info_v2" in function msm_lsm_ioctl may be
dereferenced when it's Null. Add a local structure
"info_v2" to avoid this potential Null pointer dereference.

Change-Id: Iabf5c3b1017b4a44b924c80e4d8e6f2c3d2d5f57
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-17 23:57:19 -07:00
Vignesh Kulothungan
75f229237a ASoC: codecs: handle device disconnect during SSR
During SSR, when usbc analog device is disconnected, the
respective disconnect interrupt is not handled and hence userspace
is not notified. When ADSP recovers, fsa driver sends a disconnect
notification. So handle device disconnect and notify jack/userspace
through this notification.

Change-Id: Ic695c2267c9289f9528d50202938ec09f634de8a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-06-17 23:07:21 -07:00
Vatsal Bucha
269c76b335 soc: swr-mstr: Fix KW issue in swrm_remove
Irq pointer is first freed and then used in
irq_set_trigger_type and set wakeup capable.
This may lead to Null pointer dereference if
irq is NULL. Free irq after using it.

Change-Id: I86339e9995922cc8111f12593eb781226bb07a2a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-18 09:00:27 +05:30
Xiaoyu Ye
db5ae827eb dsp: convert pr_info to pr_debug to reduce kernel logs
To reduce kernel logs, change unnecessary pr_info to
pr_debug in audio drivers.

Change-Id: I6df096b50c81b2fe7e315e7f278708bc9d46a050
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-17 06:34:16 -07:00
qctecmdr
06ed8063cd Merge "dsp: adsp-loader: Support ADSP restart recovery when stuck" 2020-06-17 06:08:08 -07:00
qctecmdr
d9213f6bf7 Merge "asoc: flags is used but is uninitialized" 2020-06-17 06:08:08 -07:00
Aditya Bavanari
204e309fad soc: pinctrl-lpi: Add 100msec before resetting hw votes
Add 100msec delay before resetting hw vote counts in
SSR up sequence in order to ensure AVS is up when
votes are requested.

Change-Id: I0f46c60555f6bf833b1cac76f86a54afdcb78ba0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-16 21:25:03 -07:00
Sanjana B
42e9d9cebd asoc: update block size for dsd input
Update dsd channel block size from codec options.

Change-Id: I54011f1092eb8a687d1d4899928daad6746c7aed
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-16 20:46:02 -07:00
qctecmdr
8c500e2d43 Merge "dsp: Fix out of bound memory access." 2020-06-16 20:17:02 -07:00
qctecmdr
5e475581e8 Merge "ASoC: wsa883x: Avoid temperature read during playback" 2020-06-16 20:17:02 -07:00
qctecmdr
6b6cf2666c Merge "asoc: codecs: retry for soundwire slave enumeration" 2020-06-16 20:17:02 -07:00
qctecmdr
7284897e35 Merge "asoc:support for DSD on MI2S interface" 2020-06-16 20:17:02 -07:00
qctecmdr
122fd6707a Merge "audio-kernel: Add void param in function definition" 2020-06-16 20:17:02 -07:00
qctecmdr
ab89ce9e65 Merge "dsp: q6adm: Update the proper param_hdr for offset" 2020-06-16 20:17:02 -07:00
qctecmdr
28a89ca1bd Merge "wcd938x: add dummy widgets to codec inputs/output" 2020-06-16 20:17:02 -07:00
Vatsal Bucha
298c198b37 ASoC: wcd937x: Add mixer ctl for TX CH power level
Add mixer ctl for tx channel power level.

CRs-Fixed: 2703598
Change-Id: Iecb0dfe491afaface4c4dd1995aa13c7efd9df82
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-16 09:24:02 +05:30
Xiaoyu Ye
32482607bc asoc: convert pr_info to pr_debug to reduce kernel logs
To reduce kernel logs, change unnecessary pr_info to
pr_debug in audio drivers.

Change-Id: I32e2e31b87bf0486352c99c04d455f3fdd2677da
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-15 19:18:25 -07:00