ALSA: hda - Fix regression for slave SPDIF setups
authorTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2015 13:14:53 +0000 (15:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Apr 2015 13:51:59 +0000 (15:51 +0200)
The commit [a551d91473e5: ALSA: hda - Use regmap for command verb
caches, too] introduced a regression due to a typo in the conversion;
the IEC958 status bits of slave digital devices aren't updated
correctly.  This patch corrects it.

Fixes: a551d91473e5 ('ALSA: hda - Use regmap for command verb caches, too')
Reported-and-tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index e70a7fb393dd5d441fef9c9316ee417c46d9606b..873ed1bce12b694b60be0c4737a16e0feee5abf0 100644 (file)
@@ -2529,7 +2529,7 @@ static void set_dig_out(struct hda_codec *codec, hda_nid_t nid,
        if (!d)
                return;
        for (; *d; d++)
-               snd_hdac_regmap_update(&codec->core, nid,
+               snd_hdac_regmap_update(&codec->core, *d,
                                       AC_VERB_SET_DIGI_CONVERT_1, mask, val);
 }