ASoC:msm: Increase Proxy buffering

-Proxy buffering can overflow if BT
playback setup takes a lot of time
-Fix this by increasing the proxy
buffer size so that we will end
up buffering the additional data that
can come in during this time

Change-Id: I736937ad03684a3b9aff586b8f676ec60259a442
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
This commit is contained in:
Alexy Joseph 2013-07-15 20:03:07 -07:00 committed by Steve Kondik
parent d861dd9826
commit 4a3fd535f8
1 changed files with 5 additions and 3 deletions

View File

@ -34,8 +34,10 @@
#include "msm-pcm-afe.h"
#include "msm-pcm-q6.h"
#define MIN_PERIOD_SIZE (128 * 2)
#define MAX_PERIOD_SIZE (128 * 2 * 2 * 6)
static struct snd_pcm_hardware msm_afe_hardware = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
@ -49,11 +51,11 @@ static struct snd_pcm_hardware msm_afe_hardware = {
.rate_max = 48000,
.channels_min = 1,
.channels_max = 2,
.buffer_bytes_max = MAX_PERIOD_SIZE * 32,
.buffer_bytes_max = MAX_PERIOD_SIZE * 64,
.period_bytes_min = MIN_PERIOD_SIZE,
.period_bytes_max = MAX_PERIOD_SIZE,
.periods_min = 32,
.periods_max = 384,
.periods_min = 64,
.periods_max = 768,
.fifo_size = 0,
};
static enum hrtimer_restart afe_hrtimer_callback(struct hrtimer *hrt);