From eb09a2ab1d9ec77c8cdb088d44dca1cda792d442 Mon Sep 17 00:00:00 2001 From: Phani Kumar Uppalapati Date: Fri, 14 Dec 2012 16:35:05 -0800 Subject: [PATCH] ASoC: msm: Modify min and max period bytes and num periods Modify min and max period bytes and number of periods in compressed driver so as to be consistent with lpa and to meet ION memory requirements. This avoids using huge buffer sizes for tunnel decode. Change-Id: Ib71da4cebfc097e7aeaf0ca0e65ee847ba7cceb7 Signed-off-by: Phani Kumar Uppalapati --- sound/soc/msm/msm-compr-q6.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/msm/msm-compr-q6.c b/sound/soc/msm/msm-compr-q6.c index 262e68f0882..621ed5f62ef 100644 --- a/sound/soc/msm/msm-compr-q6.c +++ b/sound/soc/msm/msm-compr-q6.c @@ -86,11 +86,11 @@ static struct snd_pcm_hardware msm_compr_hardware_playback = { .rate_max = 48000, .channels_min = 1, .channels_max = 8, - .buffer_bytes_max = 1200 * 1024 * 2, - .period_bytes_min = 2400, - .period_bytes_max = 1200 * 1024, - .periods_min = 2, - .periods_max = 1024, + .buffer_bytes_max = 1024 * 1024, + .period_bytes_min = 128 * 1024, + .period_bytes_max = 256 * 1024, + .periods_min = 4, + .periods_max = 8, .fifo_size = 0, };