mirror of https://gitee.com/openkylin/linux.git
ASoC: uniphier: 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/87sgdnyoea.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3359128d7f
commit
382683c4a1
|
@ -108,7 +108,7 @@ static int uniphier_aiodma_prepare(struct snd_soc_component *component,
|
||||||
struct snd_pcm_substream *substream)
|
struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||||
struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
|
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
|
||||||
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
||||||
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
||||||
int bytes = runtime->period_size *
|
int bytes = runtime->period_size *
|
||||||
|
@ -135,7 +135,7 @@ static int uniphier_aiodma_trigger(struct snd_soc_component *component,
|
||||||
struct snd_pcm_substream *substream, int cmd)
|
struct snd_pcm_substream *substream, int cmd)
|
||||||
{
|
{
|
||||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||||
struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
|
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
|
||||||
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
||||||
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
||||||
struct device *dev = &aio->chip->pdev->dev;
|
struct device *dev = &aio->chip->pdev->dev;
|
||||||
|
@ -171,7 +171,7 @@ static snd_pcm_uframes_t uniphier_aiodma_pointer(
|
||||||
struct snd_pcm_substream *substream)
|
struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||||
struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
|
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
|
||||||
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
|
||||||
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
|
||||||
int bytes = runtime->period_size *
|
int bytes = runtime->period_size *
|
||||||
|
|
Loading…
Reference in New Issue