]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc14ac6ed2a738339e6613a78d77becc1e2316826
treecb09ced9044fcfbfb5cb3afc24d639053f1624a6
parent4b0aba6fc3be37159e532c33ba451b3af2ed8db9
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