All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 14/17] ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec
@ 2020-06-25 19:24 Pierre-Louis Bossart
  0 siblings, 0 replies; only message in thread
From: Pierre-Louis Bossart @ 2020-06-25 19:24 UTC (permalink / raw)
  To: alsa-devel
  Cc: Guennadi Liakhovetski, tiwai, Ranjani Sridharan,
	Pierre-Louis Bossart, Fred Oh, broonie, Bard Liao

From: Fred Oh <fred.oh@linux.intel.com>

dailink.codecs is pointer to a codec array. Explicitly access
first codec's dai_name.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/intel/boards/cml_rt1011_rt5682.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-25 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25 19:24 [PATCH 14/17] ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec Pierre-Louis Bossart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.