summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-07-06 17:07:00 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-06 19:06:58 +0100
commit3ac3f5ca91afc03587b1d2d642f126efc5be37ca (patch)
treef7ed39b299d885b095b1e28e44eecb3676bbd22c /sound
parent3e4536546beb5295e6e0459e745327ebffeade9d (diff)
downloadlinux-3ac3f5ca91afc03587b1d2d642f126efc5be37ca.tar.gz
linux-3ac3f5ca91afc03587b1d2d642f126efc5be37ca.tar.bz2
linux-3ac3f5ca91afc03587b1d2d642f126efc5be37ca.zip
ASoC: dpcm: Allow FE to be opened without valid BE routes.
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-pcm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 7063b8f926c6..ef22d0bd9e9e 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -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 */