ASoC: dapm: Factor out duplicated code in soc_dapm_stream_event()
commitc471fdd1b6f41a8e4efc8ca684e47005e7ebbb61
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 29 Apr 2014 12:51:22 +0000 (29 14:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 29 Apr 2014 16:40:51 +0000 (29 09:40 -0700)
treeed1349fb8d47fa0236a01fe7776dd3a182f2edab
parent3477501274b79a904a4195b675bb74caa57d2e14
ASoC: dapm: Factor out duplicated code in soc_dapm_stream_event()

In soc_dapm_stream_event() we have the same code twice, once for the codec_dai
and once for the cpu_dai.  This patch factors the duplicated code out into a
separate function. This will make it easier to modify the implementation (since
there is only one place that needs to be updated) and also easier to add support
for more than two DAIs per DAI link.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c