summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorInha Song <ideal.song@samsung.com>2014-10-13 10:04:01 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:58 +0900
commit3d1ea135bebc838e213194651b58a3c2435cf137 (patch)
treea8978845c2b6f0c1257a0296228b7964ec710679 /sound/soc
parent835df76097d4677ab4c348c2cd70e7bc84470920 (diff)
downloadlinux-3.10-3d1ea135bebc838e213194651b58a3c2435cf137.tar.gz
linux-3.10-3d1ea135bebc838e213194651b58a3c2435cf137.tar.bz2
linux-3.10-3d1ea135bebc838e213194651b58a3c2435cf137.zip
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 <ideal.song@samsung.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/samsung/dma.c5
1 files 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,