]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: add snd_soc_dai_get_pcm_stream()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 19 Feb 2020 06:56:30 +0000 (15:56 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2020 21:18:28 +0000 (21:18 +0000)
commit668e590531d28fd10f44d414592014b4546be6ec
treeb0d75a85c5895aed77fbc30de9d48c5ce352f4e7
parent6be20a0e236fe44f2c5976aa7eca8fb354479acc
ASoC: soc-pcm: add snd_soc_dai_get_pcm_stream()

DAI driver has playback/capture stream.
OTOH, we have SNDRV_PCM_STREAM_PLAYBACK/CAPTURE.
Because of this kind of implementation,
ALSA SoC needs to have many verbose code.

To solve this issue, this patch adds snd_soc_dai_get_pcm_stream() macro
to get playback/capture stream pointer from stream.

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