]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-xxx: add asoc_substream_to_rtd()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 20 Jul 2020 01:17:39 +0000 (10:17 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2020 18:07:19 +0000 (19:07 +0100)
commitf048dee73e83cc15b1bd5b9f5f8fd2d4d818f791
tree97c8af1bd0a9a2df249a69fa17cb0ac5eea42ff3
parent0dbe323f8028f13dd50d791d8fb25ca5fbaeb250
ASoC: soc-xxx: add asoc_substream_to_rtd()

Current soc-xxx are getting rtd from substream by

rtd = substream->private_data;

But, getting data from "private_data" is very unclear.
This patch adds asoc_substream_to_rtd() macro which is
easy to understand that rtd from substream.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87wo2z0yve.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-component.c
sound/soc/soc-dai.c
sound/soc/soc-dapm.c
sound/soc/soc-generic-dmaengine-pcm.c
sound/soc/soc-link.c
sound/soc/soc-pcm.c
sound/soc/soc-utils.c