]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: davinci-pcm: increase the maximum channels
authorBen Gardiner <bengardiner@nanometrics.ca>
Tue, 24 May 2011 18:50:17 +0000 (14:50 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 May 2011 11:14:29 +0000 (19:14 +0800)
Based on the registration of davinci-mcasp.1 in the davinci-evm platform
setup for da830 and dm6467, davinci-pcm can handle more than the currently
reported maximum channels of 2.

Increase the maximum channels to 384 to match the maximum reported by
davinci-mcasp.1.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Reviewed-by: Steven Faludi <stevenfaludi@nanometrics.ca>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-pcm.c

index 1e47267210b6621a3003c372b051a0fa52bbe44b..9b5a9bf9393afd2d4f5d33e6014d3e30b7dfb377 100644 (file)
@@ -75,7 +75,7 @@ static struct snd_pcm_hardware pcm_hardware_playback = {
        .rate_min = 8000,
        .rate_max = 96000,
        .channels_min = 2,
-       .channels_max = 2,
+       .channels_max = 384,
        .buffer_bytes_max = 128 * 1024,
        .period_bytes_min = 32,
        .period_bytes_max = 8 * 1024,
@@ -97,7 +97,7 @@ static struct snd_pcm_hardware pcm_hardware_capture = {
        .rate_min = 8000,
        .rate_max = 96000,
        .channels_min = 2,
-       .channels_max = 2,
+       .channels_max = 384,
        .buffer_bytes_max = 128 * 1024,
        .period_bytes_min = 32,
        .period_bytes_max = 8 * 1024,