diff options
author | Cliff Cai <cliff.cai@analog.com> | 2008-09-27 10:32:20 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-10-12 20:16:30 -0400 |
commit | 6b58a82121320f96513d88032dc3495a9c6f450b (patch) | |
tree | 0290ca3031c1ec04fca96fdb303f981f7aedcac0 /sound/soc/blackfin/bf5xx-ac97.c | |
parent | 5564b14b88a5a34ea848732030fbc202a050daa6 (diff) |
ALSA: ASoC Blackfin: fix bug - Audio Latency on AD1981 with MMAP enabled
With MMAP enabled (DMA mode) on the AD1981, there is +/- 250ms of delay between
writing data to alsa and audio starts coming out of the AD1981.
Copy more data to local buffer before starting DMA
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/blackfin/bf5xx-ac97.c')
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index c782e311fd56..5e5aafb6485f 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c | |||
@@ -129,7 +129,6 @@ static void enqueue_cmd(struct snd_ac97 *ac97, __u16 addr, __u16 data) | |||
129 | struct ac97_frame *nextwrite; | 129 | struct ac97_frame *nextwrite; |
130 | 130 | ||
131 | sport_incfrag(sport, &nextfrag, 1); | 131 | sport_incfrag(sport, &nextfrag, 1); |
132 | sport_incfrag(sport, &nextfrag, 1); | ||
133 | 132 | ||
134 | nextwrite = (struct ac97_frame *)(sport->tx_buf + \ | 133 | nextwrite = (struct ac97_frame *)(sport->tx_buf + \ |
135 | nextfrag * sport->tx_fragsize); | 134 | nextfrag * sport->tx_fragsize); |