ALSA: hdac: Fix incorrect update of stream id mapping
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Mon, 5 Oct 2015 14:09:48 +0000 (15:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Oct 2015 15:18:44 +0000 (17:18 +0200)
Bits in LOSIDV need to be set to map the stream id for specific link.
Fixing this by setting the required bits in the register.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/ext/hdac_ext_stream.c

index 33ba77dd32f2f174fd4d57dd52ff979ec9b0b510..4bcebc8cde2626726d44d8e3f7fa15eacb0baebb 100644 (file)
@@ -227,7 +227,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_ext_link_stream_setup);
 void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link,
                                 int stream)
 {
-       snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0);
+       snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream);
 }
 EXPORT_SYMBOL_GPL(snd_hdac_ext_link_set_stream_id);