diff options
author | Inha Song <ideal.song@samsung.com> | 2014-10-13 10:04:01 +0900 |
---|---|---|
committer | Inha Song <ideal.song@samsung.com> | 2014-10-15 17:17:31 +0900 |
commit | d4e0c02ded93c433f1744afe58e6530b836795a8 (patch) | |
tree | 3dd928fdabe77df679a6af85f022481b5710c85a | |
parent | 9a48d69368c423620dc265352fe10aac0ca9b8eb (diff) | |
download | linux-3.10-d4e0c02ded93c433f1744afe58e6530b836795a8.tar.gz linux-3.10-d4e0c02ded93c433f1744afe58e6530b836795a8.tar.bz2 linux-3.10-d4e0c02ded93c433f1744afe58e6530b836795a8.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>
-rw-r--r-- | sound/soc/samsung/dma.c | 5 |
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, |