diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-09-16 16:40:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-16 16:40:38 +0200 |
commit | 779608521976e3b8d264f89c67e64c918949cc9b (patch) | |
tree | 12d604aa1a08b5bf556be11ee9c08b5b6b000179 /sound/soc/soc-pcm.c | |
parent | ALSA: hda - Fix invalid pin powermap without jack detection (diff) | |
parent | Merge remote-tracking branches 'asoc/fix/cs4265', 'asoc/fix/davinci', 'asoc/f... (diff) | |
download | linux-779608521976e3b8d264f89c67e64c918949cc9b.tar.xz linux-779608521976e3b8d264f89c67e64c918949cc9b.zip |
Merge tag 'asoc-v3.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.17
This is mostly driver fixes, the biggest one being the tlv320aic31xx
which is relatively large but simple and device specific. There's a
small fix in the error handling in DPCM too which is relatively minor
error handling fix.
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 731fdb5b5f9b..642c86240752 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2352,7 +2352,11 @@ static int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream) mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); fe->dpcm[stream].runtime = fe_substream->runtime; - if (dpcm_path_get(fe, stream, &list) <= 0) { + ret = dpcm_path_get(fe, stream, &list); + if (ret < 0) { + mutex_unlock(&fe->card->mutex); + return ret; + } else if (ret == 0) { dev_dbg(fe->dev, "ASoC: %s no valid %s route\n", fe->dai_link->name, stream ? "capture" : "playback"); } |