]> git.hungrycats.org Git - linux/commitdiff
ALSA: HDA: Do not announce false surround in Conexant auto
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 16 Feb 2011 20:34:04 +0000 (21:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:34 +0000 (14:54 -0800)
commit 89724958e5d596bb91328644c97dd80399443e87 upstream.

Without this patch, one line-out and one speaker and
Conexant's auto parser would announce (non-working) surround
capabilities.

BugLink: http://bugs.launchpad.net/bugs/721126
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_conexant.c

index 5667fb9c1d229e3c6a0a71bf6a1405200c71676e..fc5e0271620c1100a94be9ee3c7badfe5c582981 100644 (file)
@@ -3401,7 +3401,7 @@ static void cx_auto_parse_output(struct hda_codec *codec)
                }
        }
        spec->multiout.dac_nids = spec->private_dac_nids;
-       spec->multiout.max_channels = nums * 2;
+       spec->multiout.max_channels = spec->multiout.num_dacs * 2;
 
        if (cfg->hp_outs > 0)
                spec->auto_mute = 1;