ASoC: dpcm: Allow FE to be opened without valid BE routes.
authorLiam Girdwood <lrg@ti.com>
Fri, 6 Jul 2012 16:07:00 +0000 (17:07 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Jul 2012 18:06:58 +0000 (19:06 +0100)
Some userspace will open a PCM device and then configure mixers
for routing before triggering. This patch allows userspace to do
this sequence.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-pcm.c

index 7063b8f926c6334ba3aa63af0eb38cdb94b38c18..ef22d0bd9e9e62725f25f472aec279b75cf56e64 100644 (file)
@@ -1955,10 +1955,8 @@ static int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream)
        fe->dpcm[stream].runtime = fe_substream->runtime;
 
        if (dpcm_path_get(fe, stream, &list) <= 0) {
-               dev_warn(fe->dev, "asoc: %s no valid %s route\n",
+               dev_dbg(fe->dev, "asoc: %s no valid %s route\n",
                        fe->dai_link->name, stream ? "capture" : "playback");
-                       mutex_unlock(&fe->card->mutex);
-                       return -EINVAL;
        }
 
        /* calculate valid and active FE <-> BE dpcms */