Skip to content

Commit

Permalink
ALSA: hda - initialize channel counts correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Jan 16, 2013
1 parent a053d1e commit c0f3b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit c0f3b21

Please sign in to comment.