ALSA: hda - Fix multi-io channel mode management
authorTakashi Iwai <tiwai@suse.de>
Mon, 7 Jan 2013 15:44:06 +0000 (16:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:44:08 +0000 (08:44 +0100)
commita07a949be6eb1c9aab06adaadce72dbd27b7d9cb
tree728f1ff2218cf11fc4440878440a93ae143a994c
parentaffdb62b815b38261f09f9d4ec210a35c7ffb1f3
ALSA: hda - Fix multi-io channel mode management

The multi-io channels can vary not only from 1 to 6 but also may vary
from 6 to 8 or such.  At the same time, there are more speaker pins
available than the primary output pins.  So, we need three variables
to check: the minimum channel counts for primary outputs, the current
channel counts for primary outputs, and the minimum channel counts for
all outputs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h