Permalink
Browse files

Fixed audio stutter

  • Loading branch information...
warped-rudi authored and rabeeh committed Dec 9, 2012
1 parent cb5071f commit dc97e88cc52925fea67d21f3759073fe536e8e8b
Showing with 5 additions and 4 deletions.
  1. +1 −1 sound/soc/kirkwood/kirkwood-dma.c
  2. +4 −3 sound/soc/kirkwood/kirkwood.h
@@ -53,7 +53,7 @@ static struct snd_pcm_hardware kirkwood_dma_snd_hw = {
.rate_max = 384000,
.channels_min = 1,
.channels_max = 8,
- .buffer_bytes_max = KIRKWOOD_SND_MAX_PERIOD_BYTES * KIRKWOOD_SND_MAX_PERIODS,
+ .buffer_bytes_max = KIRKWOOD_SND_MAX_BUFFER_BYTES,
.period_bytes_min = KIRKWOOD_SND_MIN_PERIOD_BYTES,
.period_bytes_max = KIRKWOOD_SND_MAX_PERIOD_BYTES,
.periods_min = KIRKWOOD_SND_MIN_PERIODS,
@@ -151,10 +151,11 @@
/* Theses values come from the marvell alsa driver */
/* need to find where they come from */
+#define KIRKWOOD_SND_MAX_BUFFER_BYTES 0x40000 // 262144
+#define KIRKWOOD_SND_MAX_PERIOD_BYTES 0x8000 // 32768
+#define KIRKWOOD_SND_MIN_PERIOD_BYTES 0x800 // 512
+#define KIRKWOOD_SND_MAX_PERIODS (KIRKWOOD_SND_MAX_BUFFER_BYTES/KIRKWOOD_SND_MIN_PERIOD_BYTES)
#define KIRKWOOD_SND_MIN_PERIODS 8
-#define KIRKWOOD_SND_MAX_PERIODS 16
-#define KIRKWOOD_SND_MIN_PERIOD_BYTES 0x4000
-#define KIRKWOOD_SND_MAX_PERIOD_BYTES 0x4000
struct kirkwood_dma_data {
struct resource *mem;

0 comments on commit dc97e88

Please sign in to comment.