aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 960718b3beb..4f42fef26c9 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -640,7 +640,8 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
640 codec_dai->name, cpu_dai->name); 640 codec_dai->name, cpu_dai->name);
641 goto config_err; 641 goto config_err;
642 } 642 }
643 if (!runtime->hw.channels_min || !runtime->hw.channels_max) { 643 if (!runtime->hw.channels_min || !runtime->hw.channels_max ||
644 runtime->hw.channels_min > runtime->hw.channels_max) {
644 printk(KERN_ERR "asoc: %s <-> %s No matching channels\n", 645 printk(KERN_ERR "asoc: %s <-> %s No matching channels\n",
645 codec_dai->name, cpu_dai->name); 646 codec_dai->name, cpu_dai->name);
646 goto config_err; 647 goto config_err;