From d4e0c02ded93c433f1744afe58e6530b836795a8 Mon Sep 17 00:00:00 2001 From: Inha Song Date: Mon, 13 Oct 2014 10:04:01 +0900 Subject: ASoC: samsung: dma: reduce period_bytes value for playback stability This patch reduce period_bytes_min to 128 bytes and period_bytes_max to 1K bytes. If period_bytes values is too large, underrun error occures in PULSEAUDIO. I/PULSEAUDIO( 1619): alsa-sink.c: Underrun! Change-Id: I33fd95d4748b2016740dd673108377181726df66 Signed-off-by: Inha Song --- sound/soc/samsung/dma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c index 156e234f1d6..fa31d1784f4 100644 --- a/sound/soc/samsung/dma.c +++ b/sound/soc/samsung/dma.c @@ -44,10 +44,11 @@ static const struct snd_pcm_hardware dma_hardware = { .channels_min = 2, .channels_max = 2, .buffer_bytes_max = 128*1024, - .period_bytes_min = PAGE_SIZE, #ifdef CONFIG_SND_SOC_RINATO_YMU831 - .period_bytes_max = 20*1024, + .period_bytes_min = 128, + .period_bytes_max = 1024, #else + .period_bytes_min = PAGE_SIZE, .period_bytes_max = PAGE_SIZE*2, #endif .periods_min = 2, -- cgit v1.2.3