Skip to content

Commit 4eb542c

Browse files
morimotobroonie
authored andcommitted
soundwire: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
Now ALSA SoC needs to use asoc_rtd_to_codec(), otherwise, it will be compile error. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-By: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/87y2qqvdxu.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ace105d commit 4eb542c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soundwire/intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,11 +669,11 @@ static int sdw_stream_setup(struct snd_pcm_substream *substream,
669669

670670
/* Set stream pointer on all CODEC DAIs */
671671
for (i = 0; i < rtd->num_codecs; i++) {
672-
ret = snd_soc_dai_set_sdw_stream(rtd->codec_dais[i], sdw_stream,
672+
ret = snd_soc_dai_set_sdw_stream(asoc_rtd_to_codec(rtd, i), sdw_stream,
673673
substream->stream);
674674
if (ret < 0) {
675675
dev_err(dai->dev, "failed to set stream pointer on codec dai %s",
676-
rtd->codec_dais[i]->name);
676+
asoc_rtd_to_codec(rtd, i)->name);
677677
goto release_stream;
678678
}
679679
}

0 commit comments

Comments
 (0)