Both APSS and ADSP are accessing CPU-0 FIFO when CPS is enabled
during speaker playback. This causes underflow issue when accessing
wsa register from APSS. Move APSS to CPU-1 FIFO to resolve underflow
issue.
Change-Id: I5ed9143bc78757468fbe4bcc686196149ca521f2
Signed-off-by: Meng Wang <mengw@codeaurora.org>
q6afe: sanitize variables, fill proper error codes/messages
q6voice: modify func return value type
Initialized mutex while probing was not destroyed
while removing the module
Change-Id: I951e957bd8f15fa300e867472fb38755a7a80dec
Signed-off-by: Jing Wang <jingwa@codeaurora.org>
Fix potential deadlock by creating another goto-label
Fix potential memory-leak
(free space for each error after space was allocated)
Change order of destroy for mutexes in init-fucnction
(last created mutex should be destroyed first)
Change-Id: I9ad8849a166af247eed6e7667da73d537ca7d2a2
Signed-off-by: Jing Wang <jingwa@codeaurora.org>
Sometimes lineout is reported twice, first during initial
detection and then during loop due to output mic voltage
not being measured correctly. Prevent cable from being
reported as headphone during second time if it was reported
as lineout in initial detection.
Change-Id: If828917cb2acbb0ed5b2de9bf1431d0fbb4a9d10
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
CPS Threshold values to be written to the slave device were not properly packed.
Code change to correct the payload as per the specification.
Change-Id: Ie5bbfca0875d16467160f96d20219c4946f81a72
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
ATE stores the calibration result in EFUSE register. This has to
be copied to sleep bandgap voltage for accurate calibration.
Change-Id: I118c5c3b42ba4cfd42185d8da6d468f44e31b88f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add change to micbias reg for new tanggu fab id.
Change-Id: I9bfa54c6ee3b87db56e72c1fefb4d4f0db461f14
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This reverts commit 8553f349c0. With check
to enable/disable PDM WD, watchdog irq was never enabled. Thus remove the
check.
Change-Id: I6845b9aef5fe6c06afe2a2928b4071dd6c71ca00
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add proper routing for vi ch and cdc dma format widgets
when speaker protection is enabled.
Change-Id: I7d6643dc8737bf6de3c14843ab6994ac8ccaf831
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
sound card open failed for capture with 128 16-bit samples at 24 kHz
because min period size of cupture is set to 320.
Change-Id: Ida818ef133e6ac6e282c798559a753618b1d1e28
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
Add extra goto label in order to free memory in case program
failed to acquire memory through callback_node. With the
original code, there might be a situation where the memory
acquired by client_info_node will not be freed, thus causing
possible memory leak.
Change-Id: If5c8a4bdfbed4ada57a7563e9e212dc9aa7caab0
Signed-off-by: Jinjuan Qiu <jinjqiu@codeaurora.org>
We need to make autogvm-gki-llvm-64 compile well for scan.
Change in gvmauto.conf is to fix compile issue by skipping some files.
Change in sa6155conf in to fix compile issue after move to techpack.
Change-Id: I9d30b0e3160dcf87d8d455e7e2a812f03537bcab
Signed-off-by: Hexuan Zhu <hexuzhu@codeaurora.org>
Pop noise is heard during speaker swap when screen
is rotated. This is because path is not muted before
swap. Mute path before applying swap and unmute afterwards
to resolve issue.
Change-Id: I235a75f92c451b95dae89671681628e500e3029a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Crash is happening in q6afe_get_avcs_modules in
APTX-Adaptive case. Check for format_id as
aptx_adaptive or lc3 to resolve crash.
Change-Id: I3e47bf38010a20df746455e35e316fa2103bc04a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
To resolve sparse warnings due to kernel downstream changes,
we need to fix audio-kernel sparse warning.
Change-Id: I5ecd30f6fa818c0e290c61f6157246770ca47b74
Signed-off-by: Hexuan Zhu <hexuzhu@codeaurora.org>
Allow Low-Latency POPP and Legacy POPP connect to the same COPP
Allow Low-Latency POPP use spcical topology
Change-Id: I67365d8dd98eaebccd78a7e237891e85a518003b
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
There is mute in recorded sound when hpf cut off freq is
150hz as hpf is never gated for the same.
Gate hpf register in order to avoid mute.
Change-Id: Ic6bb6da529d78140a734675dae8c8b9f220e0054
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Depending on efuse reg value, if fab id is enabled,
change resistor divider output to P12 for both hphl and hphr.
Change-Id: If5e0caac2648f6e0b8c089bb56883a442b5a8ecd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
DAI IDs are updated for MI2S dai links to use separate
cpu dai IDs for Rx and Tx dais. Make respective changes in
the machine driver and dai link header files.
Change-Id: I9bb114f1dabb954720316dd7b0522c282361e4d5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Initialize temp_val before use in wsa881x_ocp_ctl_work.
Change-Id: Id4fcca78068896be1e7a8fa0d382ea903bd6934f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Change comment for enabling tanggu second source in init.
Change-Id: I4aa2dbd2b584d0c5ad19b676acb5188e4fd78491
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Extend ec_ref port array to support PRI_TDM_RX_2/TERT_TDM_RX_0/SEC_TDM_TX_1 port.
Change-Id: Id4f5692a1dea64f2510bc650606ef0c155062858
Signed-off-by: Erin Yan <xinyey@codeaurora.org>
BCS is not enabled sometimes after inserting headset if
plug is already reported and we dont report it again.
Enable BCS if plug type already reported.
Change-Id: I8c9f15ced66a21bda169d3479da96168ebec26a7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
MI2S capture fails on gki build as there are no separate
cpu dais for rx and tx. This is due to afe port start opening
rx port on capture. Add separate dais for mi2s rx and tx
to resolve issue.
Change-Id: I37cc1132039ee1525c4f16f8b10b0a9344989d75
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>