OSDN Git Service

ASoC: soc-component: add snd_soc_component_open()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 26 Jul 2019 04:50:01 +0000 (13:50 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 5 Aug 2019 15:17:40 +0000 (16:17 +0100)
commitae2f4849286eed48a3aa79a7b73bb5bcd0c9213b
treecb09ced9044fcfbfb5cb3afc24d639053f1624a6
parent4a81e8f30d0b422b7f10562952124d719f73b071
ASoC: soc-component: add snd_soc_component_open()

Current ALSA SoC is directly using component->driver->ops->xxx,
thus, it is deep nested, and makes code difficult to read,
and is not good for encapsulation.
This patch adds new snd_soc_component_open() and use it.

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