summaryrefslogtreecommitdiffstats
path: root/sound/hda/ext
diff options
context:
space:
mode:
authorJeeja KP2015-08-04 05:58:38 +0200
committerTakashi Iwai2015-08-04 07:04:35 +0200
commit9b06dc939489152b583131f49929ed1c6ae83740 (patch)
tree42bab4530988c58a72c7fba62d125f5430c931a8 /sound/hda/ext
parentALSA: oxygen: Fix logical-not-parentheses warning (diff)
downloadkernel-qcow2-linux-9b06dc939489152b583131f49929ed1c6ae83740.tar.gz
kernel-qcow2-linux-9b06dc939489152b583131f49929ed1c6ae83740.tar.xz
kernel-qcow2-linux-9b06dc939489152b583131f49929ed1c6ae83740.zip
ALSA: HDA: Fix stream assignment for host in decoupled mode
This fixes issue in assigning host stream in case of decoupled mode. The check to verify if the stream is already in use was wrong so fix that Signed-off-by: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/ext')
-rw-r--r--sound/hda/ext/hdac_ext_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/ext/hdac_ext_stream.c b/sound/hda/ext/hdac_ext_stream.c
index f8ffbdbb450d..3de47dd1a76d 100644
--- a/sound/hda/ext/hdac_ext_stream.c
+++ b/sound/hda/ext/hdac_ext_stream.c
@@ -299,7 +299,7 @@ hdac_ext_host_stream_assign(struct hdac_ext_bus *ebus,
if (stream->direction != substream->stream)
continue;
- if (stream->opened) {
+ if (!stream->opened) {
if (!hstream->decoupled)
snd_hdac_ext_stream_decouple(ebus, hstream, true);
res = hstream;