]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: soc-pcm: add soc_pcm_components_open()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 13 May 2019 07:08:33 +0000 (16:08 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 13 May 2019 11:46:31 +0000 (12:46 +0100)
commite7ecfdb794fef1f6c91f62a40fd6aa3d4d8d2471
treebd70dba7c5d1ab86615bcbfc382bc1ca0b89f810
parent2371abdc08e491f6f540c3971bdfa8c90f3329fb
ASoC: soc-pcm: add soc_pcm_components_open()

soc-pcm.c has soc_pcm_components_close() but not have its open()
side function. This kind of unbalance function is very unreadable.

And, current error handling is not correct.
Because it is using for_each_rtdcom() loop, we need to call
soc_pcm_components_close() anyway even though
CPU DAI .startup() failed.

This patch adds soc_pcm_components_open(), and fixup error
handling issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c