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>
update sound wire port frame config routing to ensure use
correct port config for device with no WCD.
Change-Id: I1746323230064f51020850cf8e1dbf2c29977bed
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>
With wsa883x supported in lagoon, need to
set wsa8815 default config also.
Change-Id: I7e247cb564c893f7fbbc715de68821c6b91d559a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Set correct tx frame config for soundwire port
using wcd9375.
Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Add wcd937x codec support in machine driver for
lagoon.
Change-Id: I4128b6026e5cc8a597fb7acd152fe9025060b442
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Create a separate array for TDM BE dai links
and add only when the interface support is required.
Also, add sound controls of MI2S, TDM and AUXPCM
interfaces only when supported.
Change-Id: I0ff092426d4ff81df44a15ad8c5d6cc438cba2ae
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
cpu_dai_name, platform_name, codec_name, codec_dai_name are
removed in kernel-5.4 version of ASoC. Update dai-link definition
to reflect the same.
Change-Id: Ife0072a65e6e554bad20cea9844f30245108fd95
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update snd info API and userspace and get codec info.
Change-Id: Ic9cfc89365cf6263a9b1c02403d68e7740bebbeb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Lito has three data lanes for tx swr. As gpio support
for swr tx data3 is present for lito v2, enable data
lane for lito v2.
Change-Id: I56faee1974f59e0a506fc74f2dadb95a52071907
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add support to configure TDM slots.
Add support to set tdm slot mask.
CRs-Fixed: 2493194
Change-Id: I39cc7f2aee5acb28ea500076ff5026a033350b60
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Add support to limit sample rate and format support based on
codec variant. Register mixer controls based on the codec
limitation.
Change-Id: I8055d2862798e183669e99b472ffc03b6cedd8ca
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
DMIC45 clock gpio generates dmic clock on the gpio line when the audio
capture starts on DMIC4 or DMIC5. But the same gpio is also an
wakeup capable interrupt source. So, during audio capture usecase,
GIC receives interrupts continuously as clock gpio toggles. Disable
wakeup capability for DMIC45 clock gpio to avoid interrupt generation
to GIC during the audio capture usecase.
Change-Id: I7793455fd1034a5d391c6a163ca776c6ed0c9b89
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Add support to share a common display afe port between
two pcm streams.
Add mixer controls to set/get format, channels, sample rate
and configure controller/stream for display port 1.
Change-Id: Ie8fb95d57fba129e623c7513ec92dd800b5ea80b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Add a dai link to get capture data from codec which can
be used for headphones equalizer purpose.
Change-Id: I65181e2991a14cf7bccbe8c738b0d782f6b185b2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Add PMQoS request during MMAP session pcm_prepare to affine to
cores 1 and 2 and also set PMQoS latency to 300 us to avoid LPM
to go to deep sleep state on these 2 cores
Signed-off-by: Arun Mirpuri <amirpuri@codeaurora.org>
Change-Id: Ie92ef6e4038b2ac0ba2edaf5acabaf28090b2c67
Add support for moisture detection with duty cycle on WCD938x codec.
Change-Id: I1e5ceb39f031ea7f7efdd38706845b71b093a479
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Check for aux codec count and avoid aux codec registration
if the count is zero.
Change-Id: I540dcc8f14f138b8bd673d88ab7e033779a90843
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Update wsa aux codec matching logic in machine driver
to apply proper gain settings for wsa8810 variant.
Add null check for aux component name to avoid dereference.
Change-Id: Ie332f8e37a2d6b7a250fe299df91fa9cf9d7636b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up first
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different. Set the dynamic bit of
backend dai dailink to update the backend parameters
before codec path setup.
Change-Id: Ic80755a5672849f527d5d696d31174a62997aca2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
For TDM/MI2S/AUXPCM, add lpi gpio support for kona.
Change-Id: Ie23caaaa0243c84dfc8a6ee0e3e0e002bf0c18d8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Currently audio driver doesn't send island mode config to ADSP
to set the LPI mode, which causes ADSP to remain in Non-LPI mode.
Fix it by adding support in Kona machine driver to send island
mode config for VA usecase.
Change-Id: I2294950055cb74a1a9d3ee630e74f63eb6435e7b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.
Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add ignore suspend for digital mic4 and digital mic5 to avoid suspend
during system suspend.
Change-Id: I13d70510e56835867ee7a56a6af9bf223a64b751
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
As lito uses cherokee for btfm support which uses slimbus.
Add respective dailink for wcn btfm support for lito.
Also rename sm8250-port-config to kona-port-config.
Change-Id: I86d771b5df76a4541b8bf17174c1181d9d94bb52
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add mixer control to set channel number for speaker protection.
Change-Id: I67527119a65758c77dbf9b1d26cc51f956702b5e
Signed-off-by: Meng Wang <mengw@codeaurora.org>