diff options
-rw-r--r-- | sound/soc/sh/fsi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 2b06402801ef..1d0a16e80919 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -252,9 +252,8 @@ static struct snd_soc_dai *fsi_get_dai(struct snd_pcm_substream *substream) | |||
252 | return rtd->cpu_dai; | 252 | return rtd->cpu_dai; |
253 | } | 253 | } |
254 | 254 | ||
255 | static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) | 255 | static struct fsi_priv *fsi_get_priv_frm_dai(struct snd_soc_dai *dai) |
256 | { | 256 | { |
257 | struct snd_soc_dai *dai = fsi_get_dai(substream); | ||
258 | struct fsi_master *master = snd_soc_dai_get_drvdata(dai); | 257 | struct fsi_master *master = snd_soc_dai_get_drvdata(dai); |
259 | 258 | ||
260 | if (dai->id == 0) | 259 | if (dai->id == 0) |
@@ -263,6 +262,11 @@ static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) | |||
263 | return &master->fsib; | 262 | return &master->fsib; |
264 | } | 263 | } |
265 | 264 | ||
265 | static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) | ||
266 | { | ||
267 | return fsi_get_priv_frm_dai(fsi_get_dai(substream)); | ||
268 | } | ||
269 | |||
266 | static u32 fsi_get_info_flags(struct fsi_priv *fsi) | 270 | static u32 fsi_get_info_flags(struct fsi_priv *fsi) |
267 | { | 271 | { |
268 | int is_porta = fsi_is_port_a(fsi); | 272 | int is_porta = fsi_is_port_a(fsi); |