Observed pop noise on TDM SPK AMP in the disable sequence. To resolve
the pop noise, TDM clock should be turned OFF after digital mute ,which is done
in machine driver for the disable sequence.
Change-Id: I9c8b5ef820cd8ec1e9a7d022e1938d53e2f401a1
Signed-off-by: Prasad Kumpatla <pkumpatl@codeaurora.org>
Add audio core vote state variable for mi2s interfaces.
Enable it during interface startup and disable it during
mi2s_disable_audio_vote, auxpcm init/deinit.
Change-Id: I798e15f489b1cb1816e424e1b543016d757016e4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Checkpatch tool generates some errors and warnings due to added PM QoS feature
This change fixes these issues.
Change-Id: I0843ecd33144d7ac65649ee90ed156e97a1a2f8a
Signed-off-by: George Gao <georgao@codeaurora.org>
Change shima master port params same as slave
to resolve noise during amic record.
Change-Id: I3c26c51413d104720ffd063cb5b9fc50f287c06a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When initializing RX_DMA_1, it would fail to find wsa-codec.1 and
fe_clients is not initialzed. When soc-pcm.c tries to access fe_clients,
kernel panic happens. Update sequence to initialize bolero dai-links.
Change-Id: I4791b08a913fafc5723cc676ff59b119a4cf2c80
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Set params for a module should be done after sending
the topology information in which the module resides in.
Send cps configuration after sending afe topology.
Send cps configuration only for speaker protected usecases.
Change-Id: I89c7df9f0d70862813aa7a2bd1ea1afc2ddcc882
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.
Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This change ensure all concurrent low latency/ultra low latency use cases run on core 1 and 2.
Change-Id: I83456a992d1de748854308f3efc7555b3ca9aaad
Signed-off-by: George Gao <georgao@codeaurora.org>
Current design assumes mono device uses left speaker.
Modify the logic to remove the limitation.
Change-Id: I6a7cd2b14ed5a4c10106593fe707a449d05efe48
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add wcd_disabled check in late_probe to avoid checking
wcd component when WCD is disabled.
Change-Id: I9fe4fa993b94b09d7ffef0f59505b102165b87ac
Signed-off-by: Meng Wang <mengw@codeaurora.org>
The sound core driver used old pm_qos APIs which does not have CPU afinity mask.
As a result, ULL playback runs on all cpu cores.
This change uses new API call with affinity to core-1/2.
Change-Id: If59b6f32a421038c0f89611d160e4031e03a10ce
Signed-off-by: George Gao <georgao@codeaurora.org>
Update log type to reduce error log during bootup.
Change-Id: I9e95ea8d121f7dbf15d5c02268d7f8dc67d840e0
Signed-off-by: Meng Wang <mengw@codeaurora.org>
On some lahaina devices, wcd codec is disabled and it would cause
issue when trying to use wcd widgets. Add flag to indicate if wcd
is disabled
Change-Id: Id19d0bd83728b10b457767f7d43cba8dac916772
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add port params for shima and include them
based on sndcard.
Change-Id: I1f71d6db3df5b7d3cf91b0052fdaac51b8bf21d9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Ignore suspend for wsa widgets has been taken care in wsa driver.
Remove unnecessary ignore suspend in machine driver.
Change-Id: I2e6edc19befd3d3e4fd500b2e6b84e07cd3bd729
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add support to use dynamic tdm slots.
The max number of tdm slots is defined in device tree
and tdm configuration is dynamically assigned based on
tdm max slots.
CRs-Fixed: 2553156
Change-Id: If444da44e02e6cbcbb4ea1e2396627745bd1e982
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When soundcard registeration fails after headset IRQ is triggered, kernel
panic may happen. Start headset detection after soundcard is registered
in late_probe.
Change-Id: Ibc5cebbf0e3331db1ec89fdcb9082029c510aaf7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add BE dai link LPASS_BE_RX_CDC_DMA_RX_5 for DSD
playback usecase.
Change-Id: Iacafab0131100ce6631c376b304f8a5006c326b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
RX_0 dai_link from RXTX macro was missing msm_common_dai_link_init
this lead to failure in setting up the hardware endpoint.
Add msm_common_dai_link_init to happen as a part of msm_aux_codec_init.
Change-Id: I73287dc80e5eba95e12b11cd446912b3e5207265
Audio driver expects BT to be probed first before
machine driver probe. Changes ensures BT dependency
for audio.
Change-Id: I82004f464ed9e7bb90d24bf2762c99b9817f95a3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
(cherry picked from commit 2c4bc0683f)
When WSA is disabled, WSA related widgets is not registered and it
causes soundcard registeration fail. Add stub fe for wsa capture to
avoid soundcard registeration failure.
Change-Id: I282d843d02544aaf2f2b646aba4fca731fc6f47e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add changes for VI sense WSA_CDC_DMA_TX_0 as backend
dailink to support recording of VI sense data.
Change-Id: Iea90290f2189d669ca5660373849a7e987483fc4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Add support in lahaina machine driver to send power mode along
with island for voice usecase.
Change-Id: I4223bc7e36644e3843995832798683017de22ece
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
add dai link for playback compress3
CRs-fixed: 2695615
Change-Id: I8076dc0c6383adf1404a22a577c55d8dcd11a089
Signed-off-by: Mingshu Pang <mpang@codeaurora.org>