summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/mx27vis-aic32x4.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-20 04:18:38 +0300
committerMark Brown <broonie@kernel.org>2020-07-23 21:07:31 +0300
commit9f5f078aed9d4dc024c397507a97bbf07e3ac4f3 (patch)
tree6ad3f434a94052a63533c8ab1ac79e2b28f17848 /sound/soc/fsl/mx27vis-aic32x4.c
parentded0054359ddc1bbd9893ce39af22e1ce7a03357 (diff)
downloadlinux-9f5f078aed9d4dc024c397507a97bbf07e3ac4f3.tar.xz
ASoC: fsl: use asoc_substream_to_rtd()
Now we can use asoc_substream_to_rtd() macro, let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87eep70ytr.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/mx27vis-aic32x4.c')
-rw-r--r--sound/soc/fsl/mx27vis-aic32x4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/mx27vis-aic32x4.c b/sound/soc/fsl/mx27vis-aic32x4.c
index a36d4e8cd55c..4ead537e090a 100644
--- a/sound/soc/fsl/mx27vis-aic32x4.c
+++ b/sound/soc/fsl/mx27vis-aic32x4.c
@@ -36,7 +36,7 @@ static int mx27vis_amp_muter_gpio;
static int mx27vis_aic32x4_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
int ret;