aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/fsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r--sound/soc/sh/fsi.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index b311a9eaf021..d078151e1de6 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -210,11 +210,17 @@ static int fsi_is_port_a(struct fsi_priv *fsi)
210 return fsi->master->base == fsi->base; 210 return fsi->master->base == fsi->base;
211} 211}
212 212
213static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) 213static struct snd_soc_dai *fsi_get_dai(struct snd_pcm_substream *substream)
214{ 214{
215 struct snd_soc_pcm_runtime *rtd = substream->private_data; 215 struct snd_soc_pcm_runtime *rtd = substream->private_data;
216 struct snd_soc_dai_link *machine = rtd->dai; 216 struct snd_soc_dai_link *machine = rtd->dai;
217 struct snd_soc_dai *dai = machine->cpu_dai; 217
218 return machine->cpu_dai;
219}
220
221static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
222{
223 struct snd_soc_dai *dai = fsi_get_dai(substream);
218 224
219 return dai->private_data; 225 return dai->private_data;
220} 226}