summaryrefslogtreecommitdiff
path: root/asoc
diff options
context:
space:
mode:
authoryixuanjiang <yixuanjiang@google.com>2021-03-02 16:05:47 +0800
committerYixuan Jiang <yixuanjiang@google.com>2021-04-15 11:55:44 +0000
commit0e23bf78a71d5b42aa1469d1b91b77b53b5ecf9e (patch)
tree2bfa7f06446c2f506d86a81e42d2e459e4c3d844 /asoc
parenta2007942416f25cf64540a7362a7e9bd42856c7d (diff)
downloadmsm-extra-0e23bf78a71d5b42aa1469d1b91b77b53b5ecf9e.tar.gz
audio: sound trigger new PCM for zero-latency recording
Create new PCM to capture hotword buffer for zeroy latency Bug: 184006297 Signed-off-by: yixuanjiang <yixuanjiang@google.com> Change-Id: I3101302d980ebeab69f7040c7dcd17126b582041
Diffstat (limited to 'asoc')
-rw-r--r--asoc/kona.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/asoc/kona.c b/asoc/kona.c
index 6971033c..ca5b8aaa 100644
--- a/asoc/kona.c
+++ b/asoc/kona.c
@@ -7131,6 +7131,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",
@@ -7163,6 +7176,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[] = {