ALSA: asihpi - Use valid channel count in format enumeration.
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Thu, 22 Dec 2011 00:38:50 +0000 (13:38 +1300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Dec 2011 07:13:10 +0000 (08:13 +0100)
commitc1d70dd9c44d7554b97f38b5ce8001d3cbe10f61
tree662d6e1189ee639daa88d4f0303b33a0fb3fff0e
parent8637bc94f6a36c138229ac1ea09faca343f48bd7
ALSA: asihpi - Use valid channel count in format enumeration.

Since introduction of mono and low latency modes, fixed channel count of 2
is not always valid.  Use reported max_channels instead.

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c