summaryrefslogtreecommitdiff
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-07-22 10:33:04 +0900
committerMark Brown <broonie@kernel.org>2019-07-23 18:14:15 +0100
commitaa6166c2ac28392d64f2d8b3acfb56c8fe657147 (patch)
treed885a28585d6b9a3fdbd452338799f741eca5647 /sound/soc/soc-dapm.c
parent06f6e1d41427f394ad3f67ecf06efcd28a46932c (diff)
ASoC: soc-dai: mv soc_dai_hw_params() to soc-dai
Sometimes ALSA SoC naming is very random. Current soc_dai_hw_params() should use snd_soc_dai_xxx() style. And then, 1st parameter should be dai. Otherwise it is confusable. - soc_dai_hw_params(..., dai); + snd_soc_dai_hw_params(dai, ...); Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87zhl6hn5b.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index f013b24c050a..8fc6a01f5d8b 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3839,7 +3839,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
}
}
source->active++;
- ret = soc_dai_hw_params(&substream, params, source);
+ ret = snd_soc_dai_hw_params(source, &substream, params);
if (ret < 0)
goto out;
@@ -3861,7 +3861,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
}
}
sink->active++;
- ret = soc_dai_hw_params(&substream, params, sink);
+ ret = snd_soc_dai_hw_params(sink, &substream, params);
if (ret < 0)
goto out;