]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: kirkwood: move calculation of max buffer size to kirkwood.h
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 4 Aug 2013 19:28:04 +0000 (20:28 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 5 Aug 2013 17:06:57 +0000 (18:06 +0100)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/kirkwood/kirkwood-dma.c
sound/soc/kirkwood/kirkwood.h

index 01622f6358dfc6cfde4e0d453ca4bdaf45fcb727..b238434f92b099db8bf3ba613fc596b7006ec96d 100644 (file)
@@ -51,7 +51,7 @@ static struct snd_pcm_hardware kirkwood_dma_snd_hw = {
        .rate_max               = 384000,
        .channels_min           = 1,
        .channels_max           = 8,
-       .buffer_bytes_max       = KIRKWOOD_SND_MAX_PERIOD_BYTES * KIRKWOOD_SND_MAX_PERIODS,
+       .buffer_bytes_max       = KIRKWOOD_SND_MAX_BUFFER_BYTES,
        .period_bytes_min       = KIRKWOOD_SND_MIN_PERIOD_BYTES,
        .period_bytes_max       = KIRKWOOD_SND_MAX_PERIOD_BYTES,
        .periods_min            = KIRKWOOD_SND_MIN_PERIODS,
index 1d13dee93d9049bca9614b51fab5c1233d29d38d..f8e1ccc1c58cc76f8ce2a314a1c8a0fcc5e998a5 100644 (file)
 #define KIRKWOOD_SND_MAX_PERIODS               16
 #define KIRKWOOD_SND_MIN_PERIOD_BYTES          0x4000
 #define KIRKWOOD_SND_MAX_PERIOD_BYTES          0x4000
+#define KIRKWOOD_SND_MAX_BUFFER_BYTES          (KIRKWOOD_SND_MAX_PERIOD_BYTES \
+                                                * KIRKWOOD_SND_MAX_PERIODS)
 
 struct kirkwood_dma_data {
        void __iomem *io;