Audio: add 192k samplerate support.
[firefly-linux-kernel-4.4.55.git] / sound / soc / rockchip / rk_pcm.c
index d90c142967adb202815d62598f387c02d98ba7e9..dad8e63e34dd1c7ee6a86daa4c6350248a4e1d88 100755 (executable)
@@ -36,7 +36,7 @@ static const struct snd_pcm_hardware rockchip_pcm_hardware = {
        .channels_max           = 8,
        .buffer_bytes_max       = 128*1024,
        .period_bytes_min       = 64,
-       .period_bytes_max       = 2048*4,
+       .period_bytes_max       = 32*1024,//2048*4,///PAGE_SIZE*2,
        .periods_min            = 3,
        .periods_max            = 128,
        .fifo_size              = 16,
@@ -46,7 +46,7 @@ static const struct snd_dmaengine_pcm_config rockchip_dmaengine_pcm_config = {
        .pcm_hardware = &rockchip_pcm_hardware,
        .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config,
        .compat_filter_fn = NULL,
-       .prealloc_buffer_size = PAGE_SIZE * 8,
+       .prealloc_buffer_size = PAGE_SIZE * 32,
 };
 
 int rockchip_pcm_platform_register(struct device *dev)