]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-component: add snd_soc_component_get/put()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 26 Jul 2019 04:49:54 +0000 (13:49 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 5 Aug 2019 15:17:15 +0000 (16:17 +0100)
commita0ec44b97e008bffdb4341f17cdf7d35032fd059
treee0afbd3c1d38e30c26ac87743711b4e5f5d7235d
parentf76453249849576525576b15a64db97558bef1e5
ASoC: soc-component: add snd_soc_component_get/put()

ALSA SoC is calling try_module_get()/module_put() based on
component->driver->module_get_upon_open.
To keep simple and readable code, we should create its function.
This patch adds new snd_soc_component_get/put().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87h8795ro4.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-core.c
sound/soc/soc-pcm.c