-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>
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>
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>
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>
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>
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>
- 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>
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>
- Removes CONFIG variables for DTS Eagle and
Dolby that are no longer used.
Change-Id: I401d10d16040413bf0d170aafb15f547de1ba3ad
Signed-off-by: Susan Wang <yingshuw@codeaurora.org>
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>
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>
- 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>
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>
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>
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>
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>
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>