All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] soundwire: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
@ 2020-04-20  7:01 Kuninori Morimoto
  2020-04-20  7:08   ` Vinod Koul
  2020-04-20 15:31   ` Mark Brown
  0 siblings, 2 replies; 13+ messages in thread
From: Kuninori Morimoto @ 2020-04-20  7:01 UTC (permalink / raw)
  To: Mark Brown, Vinod Koul, Sanyog Kale
  Cc: Linux-ALSA, Pierre-Louis Bossart, linux-kernel

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

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>
---
 drivers/soundwire/intel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 3c83e76c6bf9..ed8d576bf5dc 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -669,11 +669,11 @@ static int sdw_stream_setup(struct snd_pcm_substream *substream,
 
 	/* Set stream pointer on all CODEC DAIs */
 	for (i = 0; i < rtd->num_codecs; i++) {
-		ret = snd_soc_dai_set_sdw_stream(rtd->codec_dais[i], sdw_stream,
+		ret = snd_soc_dai_set_sdw_stream(asoc_rtd_to_codec(rtd, i), sdw_stream,
 						 substream->stream);
 		if (ret < 0) {
 			dev_err(dai->dev, "failed to set stream pointer on codec dai %s",
-				rtd->codec_dais[i]->name);
+				asoc_rtd_to_codec(rtd, i)->name);
 			goto release_stream;
 		}
 	}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-20 15:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  7:01 [PATCH] soundwire: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer Kuninori Morimoto
2020-04-20  7:08 ` Vinod Koul
2020-04-20  7:08   ` Vinod Koul
2020-04-20 12:03   ` Mark Brown
2020-04-20 12:03     ` Mark Brown
2020-04-20 12:17     ` Vinod Koul
2020-04-20 12:17       ` Vinod Koul
2020-04-20 14:01       ` Mark Brown
2020-04-20 14:01         ` Mark Brown
2020-04-20 15:06         ` Vinod Koul
2020-04-20 15:06           ` Vinod Koul
2020-04-20 15:31 ` Mark Brown
2020-04-20 15:31   ` Mark Brown

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.