]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: compress: Add helper functions for component open/free
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 24 Apr 2018 15:39:03 +0000 (16:39 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Apr 2018 11:24:48 +0000 (12:24 +0100)
commit1e57b82891ade3fd71c030077901808a6e5376ab
tree711ccdbb8852545731fe390f8b68bef1fef72009
parentef050bece1b5564b2c7135ceadc0d5ffdcf152f7
ASoC: compress: Add helper functions for component open/free

There are 2 loops calling open and 4 loops calling free for all the
components on a DAI link. Factor out these loops into helper functions
to make the code a little clearer.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c