Commit graph

3,898 commits

Author SHA1 Message Date
Hexuan Zhu
77b6d4fece audio-kernel: lvgvm 8295 related file modify
Add qtigvmi3 in makefile and add snd card prob for lvgvm

Change-Id: Ia7de956a4495f985623d15916bb2df665b77446b
Signed-off-by: Hexuan Zhu <quic_hexuzhu@quicinc.com>
2021-12-19 13:21:16 +08:00
qctecmdr
5d67c58cf7 Merge "asoc: msm_stub: increase the max ch to 32" 2021-12-17 09:58:14 -08:00
qctecmdr
5ce28d7821 Merge "asoc: bengal: fix dailink init error" 2021-12-17 09:58:14 -08:00
qctecmdr
37a5d26145 Merge "dsp: Make synchronous call to unmap afe cal data" 2021-12-15 21:27:08 -08:00
Zun Qiao
2bd9cc0f5e asoc: bengal: fix dailink init error
-Fix the problem that the API snd_soc_rtdcom_lookup that
 wcd937x component is empty during the call of VA_CDC_DMA_TX_0
 dai-link .init .
-Put the call of API snd_soc_rtdcom_lookup to find wcd937x
 component into RX_CDC_DMA_RX_0 .init .

Change-Id: Ic0565742e462a78cd4ac90fb9e1a788b2ed15ab7
Signed-off-by: Zun Qiao <quic_zqiao@quicinc.com>
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2021-12-15 08:09:08 +05:30
Hugh Guan
a414026224 asoc: msm_stub: increase the max ch to 32
Increase the max ch to 32 for TDM interface.

Signed-off-by: Hugh Guan <quic_hhguan@quicinc.com>
Change-Id: I85bfaa68525668b8ffc9d929bdcf38126cb06c9f
2021-12-14 12:07:24 -08:00
Hugh Guan
ffc848f7bf asoc: QUAT TDM support for dummy machine driver
Adding QUAT TDM DAI links for dummy machine driver.

Signed-off-by: Hugh Guan <quic_hhguan@quicinc.com>
Change-Id: I0388374cb2f4b84bdacf8e40828d1e48e42bc442
2021-12-14 09:56:57 -08:00
qctecmdr
b14cb98d1a Merge "dsp:q6afe: Fix avcs load module failure for aptx" 2021-12-10 05:57:20 -08:00
Sujin Panicker
3bc09aab6e dsp: Make synchronous call to unmap afe cal data
On multiple async unmap_cal calls there are
chances hlos releases the ion memory while
adsp is still under going the unmap process,
in such cases there could be smmu fault due
to dsp accessing memory region which is
already released by the hlos.
Fix this by making synchronous unmap calls to
adsp.

Change-Id: I88082e989884446546de846097ad7b031496830e
Signed-off-by: Sujin Panicker <quic_spanic@quicinc.com>
2021-12-09 22:08:30 -08:00
qctecmdr
dd131631a7 Merge "ASoC: wsa883x: Enable all WSA interrupts" 2021-12-08 08:38:18 -08:00
qctecmdr
c9bdd424a7 Merge "soc: add snd_event_init func for mark audio KPI" 2021-12-08 08:38:18 -08:00
qctecmdr
a57c600eb6 Merge "ASoC: msm: Fix ASRC port type mismatch" 2021-12-08 08:38:17 -08:00
qctecmdr
4292d98db3 Merge "asoc: wsa883x: update irq_drv_data per wsa device" 2021-12-08 08:38:17 -08:00
Subhadra Jagadeesan
f19f6fe7de dsp:q6afe: Fix avcs load module failure for aptx
Fix for the avcs load module failure for ASM_MEDIA_FMT_APTX_ADAPTIVE
codec format as it uses incorrect AVS_MODULE_ID_DEPACKETIZER_COP_V2.

Added seperate condition and just call goto load_unload, so that it
uses AVS_MODULE_ID_DEPACKETIZER_COP_V1 assigned before.

Change-Id: I07176da41491cabdd3ad4df23b409d11b95a2764
Signed-off-by: Subhadra Jagadeesan <quic_c_subhja@quicinc.com>
2021-12-06 15:21:33 +05:30
qctecmdr
22d9a6b6d8 Merge "ASoC: wcd937x: Update EAR PA CnP FSM sequence" 2021-11-28 21:56:14 -08:00
qctecmdr
16e2483728 Merge "asoc: add drift support for mi2s interface" 2021-11-28 21:56:14 -08:00
qctecmdr
54e49a47b0 Merge "asoc: codec: enable use_single_read for wsa and wcd regmap" 2021-11-28 21:56:14 -08:00
ftong
0a9ad4c3a9 ASoC: msm: Fix ASRC port type mismatch
Dir is empty when assign value to TX path port type
Fix port type assignment.

Change-Id: If6c3f7d2cb5785e02a5cde1538b1e394c0e8e8e5
Signed-off-by: ftong <ftong@codeaurora.org>
2021-11-25 16:34:59 +08:00
Hongtao Peng
8985f86c67 soc: add snd_event_init func for mark audio KPI
snd_event_dlkm is loaded as the first module.
Add init function and place mark in it to indicate the
start time of audio driver initialization.

Change-Id: Ie0c85b9166686d91f71ff773224eca59d85a36e5
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-11-25 14:29:22 +08:00
qctecmdr
4f7c9992de Merge "asoc: wsa883x: add slave_irq for wsa883x" 2021-11-24 04:22:34 -08:00
qctecmdr
49c9342668 Merge "soc: swr-mstr-ctrl: Move to CPU-1 FIFO for swr register read/write" 2021-11-24 04:22:33 -08:00
qctecmdr
2cc534fa02 Merge "config: sa8155/sa6155/gvmq: remove unused config vars" 2021-11-16 03:07:18 -08:00
qctecmdr
f7ade438f7 Merge "asoc: fix error for VA_CDC_DMA_TX_0 for bengal" 2021-11-16 03:07:18 -08:00
Soumya Managoli
55fdf543d2 ASoC: wcd937x: Update EAR PA CnP FSM sequence
EAR PA short switch is not released after
PA is turned on and off.
Address this hardware issue by updating the
EAR PA CnP FSM while EAR power down sequence.

Change-Id: If4269c30c13572db1b252f223368d444b9250901
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-11-15 20:53:42 -08:00
Zun Qiao
26309ed172 asoc: fix error for VA_CDC_DMA_TX_0 for bengal
- Fix msm_int_audrx_init API called repeatedly
  during the sound card registration stage.

Change-Id: I71828fe6b026432a77b46b383d8c9e97371fb814
Signed-off-by: Zun Qiao <quic_zqiao@quicinc.com>
2021-11-15 14:03:13 +05:30
Meng Wang
4506302e7d asoc: codec: enable use_single_read for wsa and wcd regmap
When interrupts are triggered on the second or third interrupt
status register, current logic cannot clear that interrupt status
after handling it. Enable use_single_read for wsa and wcd regmap
to resolve the issue.

Change-Id: I31b301e70fc51c86302f80baeec82c865e9a25cd
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2021-11-12 10:07:27 +08:00
Susan Wang
219d957223 config: sa8155/sa6155/gvmq: remove unused config vars
- Removes CONFIG variables for DTS Eagle and
  Dolby that are no longer used.

Change-Id: I401d10d16040413bf0d170aafb15f547de1ba3ad
Signed-off-by: Susan Wang <yingshuw@codeaurora.org>
2021-11-10 15:37:56 -05:00
qctecmdr
16913453bd Merge "asoc: fix compile warning of format-extra-args" 2021-11-10 02:19:14 -08:00
qctecmdr
bccb3b182e Merge "asoc: get and put for TERT_TDM_TX_0 ADM channels" 2021-11-10 02:19:14 -08:00
qctecmdr
fb6fe00f97 Merge "asoc: enable mclk1 for audio bring up" 2021-11-05 05:26:33 -07:00
qctecmdr
e5dd0ef293 Merge "ASoC: add LXC audio config for auto sa8295 platform" 2021-11-05 05:26:33 -07:00
qctecmdr
4030e580b8 Merge "ipc: apr_vm: change the priority of apr_vm_cb_threa" 2021-11-05 05:26:33 -07:00
Hongtao Peng
367bb7f3d5 asoc: fix compile warning of format-extra-args
Delete the wrong, redundant log info

Change-Id: Ifc20514d6e7342be7e67239a2f2f74b895de6c5c
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-11-03 19:59:35 +08:00
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
Hongtao Peng
862d75d7fa ipc: apr_vm: change the priority of apr_vm_cb_threa
When the CPU is very busy, the APR message may timeout
due to other high-priority threads blocking. Increase
the priority of apr_vm_cb_thread from 1 to 3 to unblock.

Change-Id: I11be527b270e55dccafa67ed4c7b8b25799b8542
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-10-28 14:20:01 +08:00
E V Ravi
cf8bb8429e asoc: get and put for TERT_TDM_TX_0 ADM channels
- Enables get/put for TERT_TDM_TX_0 ADM channels
- Allows for 3 and 4 ADM channels for TERT_TDM
- Motivated by concurrency of GAS and HFP

Change-Id: Iea44929014e0f97ca238ccffa11f228a19d5a6eb
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2021-10-26 06:52:42 -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
ftong
dfa4b18061 asoc: add drift support for mi2s interface
add support for mi2s interface for drift value

Change-Id: I02579f2dbb43593dec5e44000728470d5fe2a1c4
Signed-off-by: ftong <ftong@codeaurora.org>
2021-10-26 14:44:52 +08:00
jinwen
f58fd50034 ASoC: add LXC audio config for auto sa8295 platform
Bring up LXC audio module for automotive sa8295 platform.

Change-Id: If7bd4707c9c7624062f3922e557c5c97e39cb5c1
Signed-off-by: jinwen <jinwen@codeaurora.org>
2021-10-25 22:39:45 -07:00
jinwen
3387b369d6 asoc: enable mclk1 for audio bring up
enable mclk1 for audio bring up on sa8295 platform

Change-Id: Iafd2d42e65f8f51c4ad80cb1980faea6f3c0535c
Signed-off-by: jinwen <jinwen@codeaurora.org>
2021-10-25 22:38:32 -07:00
Meng Wang
61e7e8b108 ASoC: wsa883x: Enable all WSA interrupts
Only UVLO_irq, PA_ON_ERR_IRQ and PDM_WD_IRQ are enabled
on wsa883x. Enable all other IRQs to monitor if WSA is
in bad state.

Change-Id: I768c7f2c0fe64cc008ed63459b583e665e1ee013
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2021-10-25 09:31:18 +08:00
Meng Wang
c59cdc295b asoc: wsa883x: add slave_irq for wsa883x
Interrupts from wsa883x are not handled because slave_irq is not set.
Add slave_irq for wsa883x to address this issue.

Change-Id: I1d9cb39bfe99b2b27a98cfe4876a233567c636cd
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-10-25 09:20:53 +08:00
Meng Wang
fc80e4f28a asoc: wsa883x: update irq_drv_data per wsa device
regmap_irq_chip->irq_drv_data is shared by all attached wsa
devices and pointed to last probbed wsa device. This will cause
interrupt handle issue. Update irq_drv_data per wsa deviece to
resolve this issue.

Change-Id: Ib22629340d895c3c56d4987949c253589165b579
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2021-10-25 09:17:19 +08:00
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