summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKwang-Hui Cho <kwanghui.cho@samsung.com>2014-01-02 15:15:38 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:58 +0900
commit835df76097d4677ab4c348c2cd70e7bc84470920 (patch)
tree26b875ae4d573450c9abfc709963fd3be7245337 /sound
parent87de3b4f11188fb6e7d349a03c710c2bf1c2cf53 (diff)
downloadlinux-3.10-835df76097d4677ab4c348c2cd70e7bc84470920.tar.gz
linux-3.10-835df76097d4677ab4c348c2cd70e7bc84470920.tar.bz2
linux-3.10-835df76097d4677ab4c348c2cd70e7bc84470920.zip
ASoC: samsung: dma: reduce period_bytes_max from 64K to 20K
reduce period_bytes_max from 64K to 20K bytes if period_bytes configured more than that it causes dma pl330 error. Change-Id: Ia5012b0a9452b2c0db43cb469317d1904b4d299b Signed-off-by: Kwang-Hui Cho <kwanghui.cho@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index 26db25da19c..156e234f1d6 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -45,7 +45,11 @@ static const struct snd_pcm_hardware dma_hardware = {
.channels_max = 2,
.buffer_bytes_max = 128*1024,
.period_bytes_min = PAGE_SIZE,
+#ifdef CONFIG_SND_SOC_RINATO_YMU831
+ .period_bytes_max = 20*1024,
+#else
.period_bytes_max = PAGE_SIZE*2,
+#endif
.periods_min = 2,
.periods_max = 128,
.fifo_size = 32,