]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: hda - initialize channel counts correctly
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 16 Jan 2013 10:45:37 +0000 (11:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Jan 2013 10:57:00 +0000 (11:57 +0100)
Even a single DAC can output two channels, so the channel count
is twice the number of DACs.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c

index 68947fa234002639331a530229e11226c1f3f404..c33e019617cdd4c137a3c53ae85b2edbe26a5c87 100644 (file)
@@ -1400,7 +1400,7 @@ static int fill_and_eval_dacs(struct hda_codec *codec,
        }
 
        spec->ext_channel_count = spec->min_channel_count =
-               spec->multiout.num_dacs;
+               spec->multiout.num_dacs * 2;
 
        if (spec->multi_ios == 2) {
                for (i = 0; i < 2; i++)