]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Fix wrong SPDIF NID assignment for CA0110
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Oct 2010 06:55:13 +0000 (08:55 +0200)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:02 +0000 (23:40 +0100)
commit 24b55c69b66eb2a122842820ec14ab215fc8572f upstream.

The dig_out_nid field must take a digital-converter widget, but the current
ca0110 parser passed the pin wrongly instead.

Reported-by: Wai Yew CHAY <wychay@ctl.creative.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/pci/hda/patch_ca0110.c

index af478019088eea787528f115df7a5f7e4270f701..9544463cf862ca0fb7f620af919c1a758eff3d46 100644 (file)
@@ -489,7 +489,7 @@ static void parse_digital(struct hda_codec *codec)
        if (cfg->dig_outs &&
            snd_hda_get_connections(codec, cfg->dig_out_pins[0],
                                    &spec->dig_out, 1) == 1)
-               spec->multiout.dig_out_nid = cfg->dig_out_pins[0];
+               spec->multiout.dig_out_nid = spec->dig_out;
 }
 
 static int ca0110_parse_auto_config(struct hda_codec *codec)