Skip to content

Commit 2bcd6ae

Browse files
afordcirrusLucas Tanure
authored andcommitted
ASoC: clsic-alg: Update voicectrl codec DAI name
In order to support host buffer control type v1 the stream name needs to match the buffer name. The compr stream name is set to the codec_dai name when the stream is opened. The adsp driver creates the buffer name with dsp hard coded therefore the codec_dai name has to be dsp rather than vpu. Change-Id: I27ebbe680ecd6695e88175f130f67de0211a97ff Signed-off-by: aford <[email protected]>
1 parent f2d2b16 commit 2bcd6ae

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sound/soc/codecs/clsic-alg.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,16 @@
3838
#define CLSIC_DSP2_N_RX_CHANNELS 8
3939
#define CLSIC_DSP2_N_TX_CHANNELS 8
4040

41-
#define CLSIC_DAI_CPU_VOICECTRL "clsic-cpu-voicectrl"
42-
#define CLSIC_DAI_VPU_VOICECTRL "clsic-vpu-voicectrl"
41+
#define CLSIC_DAI_CPU_VOICECTRL "cs48lv41-cpu-voicectrl"
42+
43+
/*
44+
* The compr stream name is set to the codec_dai name when the stream is opened.
45+
* When attaching the compressed stream to a host buffer the adsp driver
46+
* expects a match between the stream name and the buffer name.
47+
* The adsp driver creates the buffer name with dsp hard coded therefore
48+
* the codec_dai name has to be dsp rather than vpu.
49+
*/
50+
#define CLSIC_DAI_VPU_VOICECTRL "cs48lv41-dsp-voicectrl"
4351

4452
static const struct wm_adsp_region clsic_alg_vpu_regions[] = {
4553
{ .type = WMFW_VPU_DM, .base = 0x20000000 },

0 commit comments

Comments
 (0)