ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec
Subsystems (3)
PATCH 14/17 ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec
From: Fred Oh <[email protected]>
dailink.codecs is pointer to a codec array. Explicitly access first codec's dai_name.
Reviewed-by Ranjani Sridharan <[email protected]>
Reviewed-by Bard Liao <[email protected]>
Reviewed-by Guennadi Liakhovetski <[email protected]>
Signed-off-by Fred Oh <[email protected]>
Signed-off-by Pierre-Louis Bossart <[email protected]>
--- sound/soc/intel/boards/cml_rt1011_rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/boards/cml_rt1011_rt5682.c +1 -1
@@ -556,7 +556,7 @@ static int snd_cml_rt1011_probe(struct platform_device *pdev)if (sof_rt1011_quirk & (SOF_RT1011_SPEAKER_TL |SOF_RT1011_SPEAKER_TR )) {for_each_card_prelinks (&snd_soc_card_cml, i, dai_link) { -if (!strcmp (dai_link->codecs->dai_name, +if (!strcmp (dai_link->codecs[0 ].dai_name,CML_RT1011_CODEC_DAI )) { dai_link->codecs = ssp1_codec_4spk; dai_link->num_codecs =ARRAY_SIZE (ssp1_codec_4spk);
Signature · 1 line
2.20.1