diff options
author | David Henningsson <david.henningsson@canonical.com> | 2013-01-16 05:45:37 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-16 05:57:00 -0500 |
commit | c0f3b21643487e2bbf8af534a33ffd2857e18fa1 (patch) | |
tree | 58e1192dec2f32e9789aa0399dd5d8956b97374d /sound/pci/hda/hda_generic.c | |
parent | a053d1e3c43e39109e640d1516669aeb8ce0b60b (diff) |
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 <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1400 | } | 1400 | } |
1401 | 1401 | ||
1402 | spec->ext_channel_count = spec->min_channel_count = | 1402 | spec->ext_channel_count = spec->min_channel_count = |
1403 | spec->multiout.num_dacs; | 1403 | spec->multiout.num_dacs * 2; |
1404 | 1404 | ||
1405 | if (spec->multi_ios == 2) { | 1405 | if (spec->multi_ios == 2) { |
1406 | for (i = 0; i < 2; i++) | 1406 | for (i = 0; i < 2; i++) |