summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryixuanjiang <yixuanjiang@google.com>2021-03-02 16:05:47 +0800
committerYixuan Jiang <yixuanjiang@google.com>2021-04-16 06:38:31 +0000
commitf16041d25d9aee3a91a3f6b27595e60ec01a45d1 (patch)
tree51ff4318dc58b944490ba92b935a308e63822529
parenta752ee8f89b828aba3cd561d44e440c673909df6 (diff)
downloadmsm-extra-f16041d25d9aee3a91a3f6b27595e60ec01a45d1.tar.gz
audio: sound trigger new PCM for zero-latency recordingandroid-s-beta-2_r0.5android-msm-redbull-4.19-s-beta-2
Create new PCM to capture hotword buffer for zeroy latency Bug: 184006297 Signed-off-by: yixuanjiang <yixuanjiang@google.com> Change-Id: I3101302d980ebeab69f7040c7dcd17126b582041
-rw-r--r--asoc/kona.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/asoc/kona.c b/asoc/kona.c
index e96e7493..dc36cd58 100644
--- a/asoc/kona.c
+++ b/asoc/kona.c
@@ -7198,6 +7198,19 @@ static struct snd_soc_dai_link msm_spi_dai_links[] = {
SND_SOC_DPCM_TRIGGER_POST},
},
{
+ .name = "ZLatency Capture",
+ .stream_name = "ZLatency Capture",
+ .cpu_dai_name = "rt5514-dsp-fe-dai4",
+ .platform_name = "spi0.0",
+ .codec_name = "msm-stub-codec.1",
+ .codec_dai_name = "msm-stub-tx",
+ .ignore_suspend = 1,
+ .dynamic = 1,
+ .dpcm_capture = 1,
+ .trigger = {SND_SOC_DPCM_TRIGGER_POST,
+ SND_SOC_DPCM_TRIGGER_POST},
+ },
+ {
.name = "SPI PCM 1",
.stream_name = "SPI Capture",
.cpu_dai_name = "rt5514-dsp-be-dai1",
@@ -7230,6 +7243,17 @@ static struct snd_soc_dai_link msm_spi_dai_links[] = {
.dpcm_capture = 1,
.no_pcm = 1,
},
+ {
+ .name = "SPI PCM 4",
+ .stream_name = "SPI Capture 4",
+ .cpu_dai_name = "rt5514-dsp-be-dai4",
+ .platform_name = "spi0.0",
+ .codec_name = "msm-stub-codec.1",
+ .codec_dai_name = "msm-stub-tx",
+ .ignore_suspend = 1,
+ .dpcm_capture = 1,
+ .no_pcm = 1,
+ },
};
static struct snd_soc_dai_link msm_tdm_fe_dai_link[] = {