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>
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>
Move compress controls to compress_new API to initialize
compress related mixer controls.
Change-Id: I7038d3c4644d0071477016b186ea0550e92f6214
Signed-off-by: Meng Wang <mengw@codeaurora.org>
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>
This reverts commit d02c7efb35.
and commit 61f235e5bd to avoid AOP
related issues.
Change-Id: I0b8b44bc5cca6bef6bc18c228f08a9c585c79c1c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
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>
CONFIG_MSM_QDSP6_PDR is not enabled on Auto targets.
Change-Id: If7ac374bbe88635eeb328593b4d3a9f01a716c5c
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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.
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>
Add void param in function definition to
avoid compilation errors when strict prototypes
flag is defined.
Change-Id: I4515c730139fff18638805cd70db24ec1886f127
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>