soc-pcm: WARN_ON invalid playback route

Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
Iliyan Malchev 2012-10-02 09:22:36 -07:00
parent cfd35bb3ea
commit 800362a852

View file

@ -25,6 +25,7 @@
#include <linux/debugfs.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <linux/bug.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
@ -2026,6 +2027,7 @@ int soc_dpcm_runtime_update(struct snd_soc_dapm_widget *widget)
if (paths < 0) {
dev_warn(fe->dev, "%s no valid %s route from source to sink\n",
fe->dai_link->name, "playback");
WARN_ON(1);
ret = paths;
goto out;
}