aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Oh <[email protected]>2020-06-25 14:24:58 -0500
committerMark Brown <[email protected]>2020-06-26 16:10:56 +0100
commitec0d0f6342d460e75e77c41840d1420e3ba1b69d (patch)
tree7246ed4b9c640fae10ce691fbec02cde797bbcab
parentb0a31a78a04839184d6cae93b193e6bd8640145b (diff)
ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec
dailink.codecs is pointer to a codec array. Explicitly access first codec's dai_name. Signed-off-by: Fred Oh <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/intel/boards/cml_rt1011_rt5682.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/cml_rt1011_rt5682.c b/sound/soc/intel/boards/cml_rt1011_rt5682.c
index 3f8b7d9820cd..6943020fa0bd 100644
--- a/sound/soc/intel/boards/cml_rt1011_rt5682.c
+++ b/sound/soc/intel/boards/cml_rt1011_rt5682.c
@@ -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);