summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/arizona.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-01-11 13:54:29 +0000
committerMark Brown <broonie@kernel.org>2016-01-11 13:54:29 +0000
commit804c0a9569bd383358680199a22404aafedcc993 (patch)
tree44d276d2b85c8952293271828f9dd7cb59cdefc0 /sound/soc/codecs/arizona.c
parentfffe9b89d808782a7370b0f70c7271a9f65a261c (diff)
parent26eb5a9a6a8545ebb9d45de9e6d43e511b250839 (diff)
downloadlinux-804c0a9569bd383358680199a22404aafedcc993.tar.bz2
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.c3
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;