diff options
author | Mark Brown <broonie@kernel.org> | 2016-01-11 14:54:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-11 14:54:29 +0100 |
commit | 804c0a9569bd383358680199a22404aafedcc993 (patch) | |
tree | 44d276d2b85c8952293271828f9dd7cb59cdefc0 /sound/soc/codecs/arizona.c | |
parent | Merge tag 'asoc-v4.5' into asoc-next (diff) | |
parent | ASoC: arizona: Exit startup early if no runtime (diff) | |
download | linux-804c0a9569bd383358680199a22404aafedcc993.tar.xz linux-804c0a9569bd383358680199a22404aafedcc993.zip |
Merge remote-tracking branch 'asoc/topic/arizona' into asoc-next
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r-- | sound/soc/codecs/arizona.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index fb8f18880524..33143fe1de0b 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1494,6 +1494,9 @@ static int arizona_startup(struct snd_pcm_substream *substream, const struct snd_pcm_hw_constraint_list *constraint; unsigned int base_rate; + if (!substream->runtime) + return 0; + switch (dai_priv->clk) { case ARIZONA_CLK_SYSCLK: base_rate = priv->sysclk; |