Commit ec0d0f63 authored by Fred Oh's avatar Fred Oh Committed by Mark Brown

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: default avatarFred Oh <fred.oh@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200625192458.4148-1-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b0a31a78
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment