Commit Graph

3857 Commits

Author SHA1 Message Date
Meng Wang
e92fbc265e soc: swr-mstr-ctrl: Move to CPU-1 FIFO for swr register read/write
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>
2021-11-03 01:07:29 -07:00
qctecmdr
b0a827bef9 Merge "dsp: Reslove audiodlkm code warning" 2021-11-01 07:26:51 -07:00
Jing Wang
25c2fa7eb0 dsp: Reslove audiodlkm code warning
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>
2021-10-26 00:12:22 -07:00
Jing Wang
65bd6329c3 asoc: Reslove audiodlkm error & warn & issues
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>
2021-10-26 12:19:46 +05:30
qctecmdr
997c13ca29 Merge "ASoC: mbhc-adc: Prevent lineout from being reported two times" 2021-10-21 07:36:07 -07:00
Vatsal Bucha
8f1926c5ea ASoC: mbhc-adc: Prevent lineout from being reported two times
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>
2021-10-18 17:34:33 +05:30
Vangala, Amarnath
d153bc1d48 ASoC: Lahaina: correction to CPS payload
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>
2021-10-11 12:47:54 +05:30
qctecmdr
fbd69cbe23 Merge "ASoC: wcd937x: Add change for LDOL VOUT accuracy calibration" 2021-10-09 05:46:45 -07:00
qctecmdr
2cc421d0c7 Merge "ASoC: wcd937x: Update register value for new fab id for tanggu" 2021-10-05 04:06:29 -07:00
qctecmdr
75dc7f8d9b Merge "asoc: Update the dai link IDs for MI2S dai links" 2021-10-05 04:06:29 -07:00
qctecmdr
8bd92fad2d Merge "ASoC: msm-dai-q6-v2: Add separate cpu dais for mi2s rx and tx" 2021-10-05 04:06:29 -07:00
qctecmdr
17e999dfec Merge "Revert "ASoC: wsa883x: Add check before enable/disable PDM WD irq"" 2021-10-05 04:06:29 -07:00
qctecmdr
2be4537a66 Merge "ASoC: Add proper routing for vi ch and cdc dma format widgets" 2021-09-30 01:23:15 -07:00
Vatsal Bucha
8989993edf ASoC: wcd937x: Add change for LDOL VOUT accuracy calibration
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>
2021-09-28 22:41:42 +05:30
Vatsal Bucha
7ebd720130 ASoC: wcd937x: Update register value for new fab id for tanggu
Improve HPH ULP mode SNDR stability for new tanggu fab id.

Change-Id: I13594dbd311bbeab115753e0bec1a748158f8100
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-28 17:48:29 +05:30
Vatsal Bucha
0902933010 ASoC: wcd937x: Add change to micbias reg for new tanggu fab id
Add change to micbias reg for new tanggu fab id.

Change-Id: I9bfa54c6ee3b87db56e72c1fefb4d4f0db461f14
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-27 23:24:51 -07:00
Vatsal Bucha
c948873360 Revert "ASoC: wsa883x: Add check before enable/disable PDM WD irq"
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>
2021-09-27 20:53:20 -07:00
qctecmdr
5b6268cf04 Merge "config: fix compile issue" 2021-09-27 10:56:42 -07:00
qctecmdr
96a7ebea1e Merge "dsp: bugfix for memory leak in error handling path" 2021-09-27 10:56:42 -07:00
Vatsal Bucha
5d529a2751 ASoC: Add proper routing for vi ch and cdc dma format widgets
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>
2021-09-23 19:08:09 +05:30
Deru Wang
117a5dd6ad asoc: set min period size of capture/playback to 120
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>
2021-09-22 11:44:58 +08:00
Jinjuan Qiu
ff8d8d4270 dsp: bugfix for memory leak in error handling path
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>
2021-09-17 15:58:29 +08:00
Hexuan Zhu
5a27b32cb6 config: fix compile issue
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>
2021-09-17 09:37:11 +08:00
qctecmdr
deec79da50 Merge "dsp: q6adm: Resolve pop noise heard during playback when screen rotated" 2021-09-15 00:32:06 -07:00
qctecmdr
169b8b1e6b Merge "dsp : Support different mode POPPs connect to same COPP" 2021-09-07 05:24:58 -07:00
qctecmdr
8ef759651e Merge "dsp:q6afe: Resolve crash in q6afe_get_avcs_modules" 2021-09-07 05:24:58 -07:00
qctecmdr
54c572ba92 Merge "asoc: codecs: Fix mute if hpf cut off freq set to 150hz" 2021-09-07 05:24:58 -07:00
qctecmdr
5b2e1084f7 Merge "ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled" 2021-09-07 05:24:58 -07:00
Vatsal Bucha
e66ba13773 dsp: q6adm: Resolve pop noise heard during playback when screen rotated
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>
2021-09-02 18:12:37 +05:30
Vatsal Bucha
732b5ca86a dsp:q6afe: Resolve crash in q6afe_get_avcs_modules
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>
2021-09-02 14:42:50 +05:30
Hexuan Zhu
5239366167 dsp: Fix audiodlkm sparse warning issue
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>
2021-09-02 15:15:12 +08:00
qctecmdr
9c87b94c10 Merge "ASoC: wcd937x: Change comment for enabling tanggu second source" 2021-08-27 11:41:31 -07:00
qctecmdr
f737033275 Merge "ASoC: mbhc-adc: Enable BCS if plug type already reported" 2021-08-27 11:41:31 -07:00
qctecmdr
8fea5f6500 Merge "asoc: add supported ec_ref port" 2021-08-27 11:41:31 -07:00
qctecmdr
604133a0a7 Merge "asoc: clean klocwork warnings" 2021-08-27 11:41:31 -07:00
Hongtao Peng
549e4babae dsp : Support different mode POPPs connect to same COPP
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>
2021-08-26 01:56:11 -07:00
Vatsal Bucha
3a50469cbe asoc: codecs: Fix mute if hpf cut off freq set to 150hz
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>
2021-08-25 16:57:19 +05:30
Vatsal Bucha
2cf4691ce7 ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled
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>
2021-08-25 14:46:06 +05:30
Aditya Bavanari
4da866e6de asoc: Update the dai link IDs for MI2S dai links
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>
2021-08-24 10:28:22 +05:30
Vatsal Bucha
3b35be1eba ASoC: codecs: Initialize temp_val before use for wsa881x-analog
Initialize temp_val before use in wsa881x_ocp_ctl_work.

Change-Id: Id4fcca78068896be1e7a8fa0d382ea903bd6934f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-23 11:43:15 +05:30
Vatsal Bucha
8cbd96d836 ASoC: wcd937x: Change comment for enabling tanggu second source
Change comment for enabling tanggu second source in init.

Change-Id: I4aa2dbd2b584d0c5ad19b676acb5188e4fd78491
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-20 10:01:47 +05:30
Erin Yan
a4b9951fee asoc: add supported ec_ref port
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>
2021-08-17 19:19:06 -07:00
qctecmdr
02744ac315 Merge "audio-driver: Modify audio headers path" 2021-08-12 21:40:22 -07:00
qctecmdr
44bba8a442 Merge "asoc:differentiate sa8155 and sa6155 snd card" 2021-08-12 21:40:22 -07:00
Vatsal Bucha
9f495f6dd4 ASoC: mbhc-adc: Enable BCS if plug type already reported
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>
2021-08-11 13:10:13 +05:30
Vatsal Bucha
382ff806bb ASoC: msm-dai-q6-v2: Add separate cpu dais for mi2s rx and tx
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>
2021-08-09 05:12:06 -07:00
Zun Qiao
83a26db097 audio-driver: Modify audio headers path
Modify audio headers path to fix build error.

Change-Id: Ic6a63cbd252df59b705f1db30fde2d060dbedb6c
Signed-off-by: Zun Qiao <zqiao@codeaurora.org>
2021-08-09 02:09:56 -07:00
qctecmdr
e3766898f3 Merge "ASoC: msm: fix ec reference channel issue" 2021-08-08 23:18:35 -07:00
qctecmdr
a9926e433d Merge "dsp: q6asm: fix consecutive cal_memory unmap failure" 2021-08-08 23:18:35 -07:00
qctecmdr
f0bec96171 Merge "asoc: bengal: update soundwire master port config for bengal" 2021-08-08 23:18:35 -07:00