Skip to content

Commit 874f768

Browse files
committed
ASoC: cs47l96: Add voice control DAI on the main cs47l96 DSP
Change-Id: I383a38ae00b3711e5e06c7caafb917894c538ece Signed-off-by: Charles Keepax <[email protected]>
1 parent dc60610 commit 874f768

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sound/soc/codecs/cs47l96.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,7 @@ static const struct snd_soc_dapm_route cs47l96_dapm_routes[] = {
20092009

20102010
{ "DSP1", NULL, "DSP1FREQ" },
20112011
{ "Audio Trace DSP", NULL, "DSP1" },
2012+
{ "Voice Ctrl DSP", NULL, "DSP1" },
20122013

20132014
{ "IN4_PDMCLK", NULL, "VDD_IO2" },
20142015
{ "IN4_PDMDATA", NULL, "VDD_IO2" },
@@ -2551,6 +2552,27 @@ static struct snd_soc_dai_driver cs47l96_dai[] = {
25512552
.formats = TACNA_FORMATS,
25522553
},
25532554
},
2555+
{
2556+
.name = "cs47l96-cpu-voicectrl",
2557+
.capture = {
2558+
.stream_name = "Voice Ctrl CPU",
2559+
.channels_min = 1,
2560+
.channels_max = 8,
2561+
.rates = TACNA_RATES,
2562+
.formats = TACNA_FORMATS,
2563+
},
2564+
.compress_new = &snd_soc_new_compress,
2565+
},
2566+
{
2567+
.name = "cs47l96-dsp-voicectrl",
2568+
.capture = {
2569+
.stream_name = "Voice Ctrl DSP",
2570+
.channels_min = 1,
2571+
.channels_max = 8,
2572+
.rates = TACNA_RATES,
2573+
.formats = TACNA_FORMATS,
2574+
},
2575+
},
25542576
};
25552577

25562578
static int cs47l96_init_outh(struct cs47l96 *cs47l96)
@@ -2589,6 +2611,8 @@ static int cs47l96_compr_open(struct snd_compr_stream *stream)
25892611

25902612
if (strcmp(rtd->codec_dai->name, "cs47l96-dsp-trace") == 0) {
25912613
n_dsp = 0;
2614+
} else if (strcmp(rtd->codec_dai->name, "cs47l96-dsp-voicectrl") == 0) {
2615+
n_dsp = 0;
25922616
} else {
25932617
dev_err(priv->dev,
25942618
"No suitable compressed stream for DAI '%s'\n",

0 commit comments

Comments
 (0)