From 6b58a82121320f96513d88032dc3495a9c6f450b Mon Sep 17 00:00:00 2001 From: Cliff Cai Date: Sat, 27 Sep 2008 22:32:20 +0800 Subject: 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 Signed-off-by: Bryan Wu Signed-off-by: Mark Brown Signed-off-by: Takashi Iwai --- sound/soc/blackfin/bf5xx-ac97.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sound/soc/blackfin/bf5xx-ac97.c') diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index c782e311fd5..5e5aafb6485 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c @@ -128,7 +128,6 @@ static void enqueue_cmd(struct snd_ac97 *ac97, __u16 addr, __u16 data) int nextfrag = sport_tx_curr_frag(sport); struct ac97_frame *nextwrite; - sport_incfrag(sport, &nextfrag, 1); sport_incfrag(sport, &nextfrag, 1); nextwrite = (struct ac97_frame *)(sport->tx_buf + \ -- cgit v1.2.3