]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: arizona: Exit startup early if no runtime
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 29 Dec 2015 09:49:19 +0000 (09:49 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 30 Dec 2015 17:26:08 +0000 (17:26 +0000)
commit0ac5c616257e6a30d05e55dd3cfcd6330dad1d06
treea8599650d1b8f549bda5ab25e8217910a74a0d45
parentc9cdd2f75e67e012ceb4c0a815a2edbc94af2d6b
ASoC: arizona: Exit startup early if no runtime

commit afea2fba9fe5 ("ASoC: dapm: Add startup & shutdown for dai_links")

Added support for calling startup on CODEC to CODEC links, however this
is called with a NULL runtime pointer. There isn't really a sensible way
to pass a valid runtime pointer to a CODEC to CODEC link at the moment,
so we need to make the startup function safe for NULL runtimes.

This patch returns from the Arizona startup function early if there is no
runtime, this is perfectly safe as all the startup function does is set
the PCM constraints for user-space which arn't relevant to a CODEC to
CODEC link anyway.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c