asoc: tegra: tdm: change buffer sizes.
Nitin Pai [Wed, 21 Nov 2012 10:47:15 +0000 (15:47 +0530)]
    Change the min-buffer-size according to min-channels.
    Bug 1040171

Change-Id: Ief575c0a180c05521338d0d38fecb8907127b9fe
Reviewed-on: http://git-master/r/165340
(cherry picked from commit 93c738795b834290e71775206a8e94e58e4f223d)

Signed-off-by: Nitin Pai <npai@nvidia.com>
Change-Id: I8d49035c433cbbf0ed7e7a7df61b86fe1657dad3
Reviewed-on: http://git-master/r/166137
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_tdm_pcm.c

index ae33bdb..8345ba0 100644 (file)
@@ -2,11 +2,11 @@
  * tegra_tdm_pcm.c - Tegra TDM PCM driver
  *
  * Author: Nitin Pai <npai@nvidia.com>
- * Copyright (C) 2010 - NVIDIA, Inc.
+ * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
  *
  * Based on code copyright/by:
  *
- * Copyright (c) 2009-2010, NVIDIA Corporation.
+ * Copyright (c) 2009-2010, NVIDIA CORPORATION.  All rights reserved.
  * Scott Peterson <speterson@nvidia.com>
  * Stephen Warren <swarren@nvidia.com>
  * Vijay Mali <vmali@nvidia.com>
@@ -51,7 +51,7 @@ static const struct snd_pcm_hardware tegra_tdm_pcm_hardware = {
        .formats                = SNDRV_PCM_FMTBIT_S16_LE,
        .channels_min           = 8,
        .channels_max           = 16,
-       .period_bytes_min       = 16 * 1024,
+       .period_bytes_min       = 8 * 1024,
        .period_bytes_max       = 16 * 1024,
        .periods_min            = 4,
        .periods_max            = 4,