Browse Source

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>
Jeeja KP 10 years ago
parent
commit
9b06dc9394
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/hda/ext/hdac_ext_stream.c

+ 1 - 1
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;