ALSA: AACI: fix number of channels for record
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 13 Jan 2011 10:13:17 +0000 (10:13 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Jan 2011 21:20:23 +0000 (21:20 +0000)
commite831d80b453a3586f1e1664a705c153a4ced39b8
tree7c6a48a62f299e8bdca946490571b176658831ac
parentb60fb519d7977e606621af85585c3677fc290ef8
ALSA: AACI: fix number of channels for record

AC'97 codecs only support two channels for recording, so we shouldn't
advertize that there are up to six channels available.  Limit the
selection of 4 and 6 channel audio to playback only.

As this adds additional SNDRV_PCM_STREAM_PLAYBACK conditionals, we can
combine some resulting in the elimination of __aaci_pcm_open() entirely,
and making the code easier to read.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
sound/arm/aaci.c