diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4f42fef26c989f259b499bc8686609dc0e4e9bff..d8562ce4de7ab9ea5796e0521261fe520d8a3330 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -629,6 +629,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream) runtime->hw.rates |= codec_dai_drv->capture.rates; } + ret = -EINVAL; snd_pcm_limit_hw_rates(runtime); if (!runtime->hw.rates) { printk(KERN_ERR "asoc: %s <-> %s No matching rates\n",