summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-07-01 22:13:48 +0200
committerMark Brown <broonie@linaro.org>2014-07-02 22:24:13 +0200
commit5f3484ac8775a183f855fd213907c4221d2fb11f (patch)
treefe4e7dd1b0d203b4843ff49684730c7d0539b830 /sound/soc/soc-pcm.c
parentASoC: core: Bind aux devs early (diff)
downloadlinux-5f3484ac8775a183f855fd213907c4221d2fb11f.tar.xz
linux-5f3484ac8775a183f855fd213907c4221d2fb11f.zip
ASoC: core: Move non-shared code paths out of snd_soc_post_component_init()
There are two call sites for snd_soc_post_component_init(), one passes 0 and the other 1 for the 'dailess' parameter of snd_soc_post_component_init(). Depending on whether 'dailess' is 0 or 1 snd_soc_post_component_init() runs different code at the beginning and the end of the function. The patch moves this conditional code out of snd_soc_post_component_init() and into the call sites. This removes the need for snd_soc_post_component_init() to know whether it is called for a DAI link or a aux dev. Also do the initialization of rtd->card when the rtd struct is allocated. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
0 files changed, 0 insertions, 0 deletions