diff options
author | Cliff Cai <cliff.cai@analog.com> | 2008-09-27 22:32:20 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-10-13 02:16:30 +0200 |
commit | 6b58a82121320f96513d88032dc3495a9c6f450b (patch) | |
tree | 0290ca3031c1ec04fca96fdb303f981f7aedcac0 /sound/soc/blackfin/bf5xx-ac97.c | |
parent | 5564b14b88a5a34ea848732030fbc202a050daa6 (diff) | |
download | op-kernel-dev-6b58a82121320f96513d88032dc3495a9c6f450b.zip op-kernel-dev-6b58a82121320f96513d88032dc3495a9c6f450b.tar.gz |
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 c782e31..5e5aafb 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) struct ac97_frame *nextwrite; sport_incfrag(sport, &nextfrag, 1); - sport_incfrag(sport, &nextfrag, 1); nextwrite = (struct ac97_frame *)(sport->tx_buf + \ nextfrag * sport->tx_fragsize); |