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>
Addition of dai links so that the RT PROXY
port can be configured. All dai's are set
to snd-soc-dummy since there is no
configuration needed to be done on this
dais rather they are just used to satisfy
the stream to device connection.
Change-Id: Ie6002478d68f9ba272081be652042d6b95e03fe6
Signed-off-by: Aditya Mohan <aditmoha@codeaurora.org>
Add new mixer control to get channel map associated with
codec for Slimbus and Codec DMA interface.
Change-Id: Ie38c5b05a2a371a7f3801b1ab194546b39b5a3d6
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Add support in kona machine driver to expose a sysfs node.
Userspace uses this sysfs node to notify machine driver
on which dai-link ( pcm id) is opened/closed. This information
regarding device open/close is then compared against shutdown/
startup dai_link ops. If there is a mismatch we conclude
that there has been a userspace service crash and we
issue a close all session command to dsp and also clear
all the dma buffers which were allocated by the service.
Change-Id: I4fc13adf8cc527c87b822a3b189d4ff081539a3c
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
Add msm-audio-defs.h and update kona machine driver.
Change-Id: Ia483095bbc634cfd006b1071ec5ec0bdc6edd04f
Signed-off-by: Taha Azzaoui <tazzaoui@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>