projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1bee67
)
ASoC: sunxi: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 23 Mar 2020 05:21:00 +0000
(14:21 +0900)
committer
Mark Brown
<broonie@kernel.org>
Fri, 27 Mar 2020 14:44:50 +0000
(14:44 +0000)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/878sjrir43.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-spdif.c
patch
|
blob
|
history
diff --git
a/sound/soc/sunxi/sun4i-spdif.c
b/sound/soc/sunxi/sun4i-spdif.c
index 98a9fe64552138ee5c6809b66eceb1c0653150f0..86779a99df751db7c0a9d1ef36c5b42a070a01ac 100644
(file)
--- a/
sound/soc/sunxi/sun4i-spdif.c
+++ b/
sound/soc/sunxi/sun4i-spdif.c
@@
-244,7
+244,7
@@
static int sun4i_spdif_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
- struct sun4i_spdif_dev *host = snd_soc_dai_get_drvdata(
rtd->cpu_dai
);
+ struct sun4i_spdif_dev *host = snd_soc_dai_get_drvdata(
asoc_rtd_to_cpu(rtd, 0)
);
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
return -EINVAL;