Skip to contentSkip to conversation

ASoC: dpcm: Allow FE to be opened without valid BE routes.

PATCH Applied Liam Girdwood 2 participants 2 messages Jul 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/soc-pcm.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/soc-pcm.c +1 -3
index 7063b8f..ef22d0b 100644
@@ -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 */
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 3 lines · Liam Girdwood

Some userspace will open a PCM device and then configure mixers for routing before triggering. This patch allows userspace to do this sequence.

Applied, thanks.