ASoC: atmel-pcm-dma: increase buffer_bytes_max
[firefly-linux-kernel-4.4.55.git] / sound / soc / atmel / atmel-pcm-dma.c
index b8e7bad05eb14a9ef7e6393646f776c910c0f898..b6625c8c411b8a66a6d1cbaf807109f7ccc8ec71 100644 (file)
@@ -54,7 +54,7 @@ static const struct snd_pcm_hardware atmel_pcm_dma_hardware = {
        .period_bytes_max       = 2 * 0xffff,   /* if 2 bytes format */
        .periods_min            = 8,
        .periods_max            = 1024,         /* no limit */
-       .buffer_bytes_max       = ATMEL_SSC_DMABUF_SIZE,
+       .buffer_bytes_max       = 512 * 1024,
 };
 
 /**
@@ -119,7 +119,7 @@ static int atmel_pcm_configure_dma(struct snd_pcm_substream *substream,
 static const struct snd_dmaengine_pcm_config atmel_dmaengine_pcm_config = {
        .prepare_slave_config = atmel_pcm_configure_dma,
        .pcm_hardware = &atmel_pcm_dma_hardware,
-       .prealloc_buffer_size = ATMEL_SSC_DMABUF_SIZE,
+       .prealloc_buffer_size = 64 * 1024,
 };
 
 int atmel_pcm_dma_platform_register(struct device *dev)