Commit gráf

3053 Commit-ok

Szerző SHA1 Üzenet Dátum
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
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
Vatsal Bucha
f0c7f88868 soc: swr-mstr: Fix headset detection during sva clk switch
Headset insertion/removal is not detected sometime due to
fifo read failure due to swr underflow. This is because if
headset sva is enabled, during clk switch swr force stop
happens and if mbhc has already taken pm vote for 3sec
further mbhc reads/writes will fail. If swr is in clk switch
mode then call swrm runtime_resume during reads/writes
to resolve issue.

Change-Id: I0d65869bd1c645bbf7ded9c0265f8d7de0dc624b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-15 07:06:13 -07:00
Zhou Song
d8005c664b dsp: don't reset rx ec ref channel after adm open
Remove reset of rx ec ref channel for adm after using,
if the channel value is not changed, user space won't
set it to driver again, then causing adm opening failed.
2020-06-15 20:46:17 +08:00
Sudheer Papothi
b3fa5a0dc5 asoc: codecs: retry for soundwire slave enumeration
Retry for soundwire slave enumeration during bootup before
EPROBE_DEFER to avoid soundcard enumeration failures.

Change-Id: I083ec76fc84a2b367f93a2dc166a1419a75ff8b4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-11 21:40:46 +05:30
Deru Wang
f1a7ecab50 asoc: flags is used but is uninitialized
initialize flags to resolve static code analysis issue

Change-Id: I23e74050e69db6894b02cbc00605861abdce0e56
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2020-06-11 08:08:49 -07:00
Aditya Bavanari
6bacce4b9c audio-kernel: Add void param in function definition
Add void param in function definition to
avoid compilation errors when strict prototypes
flag is defined.

Change-Id: I4515c730139fff18638805cd70db24ec1886f127
2020-06-11 07:03:04 -07:00
Avinash Chandra
5638ecaf5d dsp: q6adm: Update the proper param_hdr for offset
For Source Tracking adm_get_param, param_hdr (struct param_hdr_v3) size
being sent was different as param_hdr(struct param_hdr_v1)size used for
offset of virtual memory to copy the param data in out-band case get_param.

Change-Id: I01dd4f704cc5b6994f1203a0e28199a6936cba7f
Signed-off-by: Avinash Chandra <avicha@codeaurora.org>
2020-06-11 07:02:18 -07:00
qctecmdr
700bd78ede Merge "asoc: send codec dma data alignment when it's set" 2020-06-11 04:15:17 -07:00
qctecmdr
c250412b5d Merge "ASoC: wcd938x: Add dapm ignore suspend for DAIs" 2020-06-11 04:15:16 -07:00
qctecmdr
064de7b487 Merge "ASoC: swr-dmic: Add ignore suspend for dapm widgets" 2020-06-11 04:15:16 -07:00