From: David Henningsson Date: Wed, 16 Jan 2013 10:45:37 +0000 (+0100) Subject: ALSA: hda - initialize channel counts correctly X-Git-Tag: v3.9-rc1~129^2~70^2~38^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=c0f3b21643487e2bbf8af534a33ffd2857e18fa1 ALSA: hda - initialize channel counts correctly Even a single DAC can output two channels, so the channel count is twice the number of DACs. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 68947fa23400..c33e019617cd 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -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++)