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-sport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/soc/blackfin/bf5xx-sport.h') diff --git a/sound/soc/blackfin/bf5xx-sport.h b/sound/soc/blackfin/bf5xx-sport.h index 4c163454bbf8..fcadcc081f7f 100644 --- a/sound/soc/blackfin/bf5xx-sport.h +++ b/sound/soc/blackfin/bf5xx-sport.h @@ -123,6 +123,8 @@ struct sport_device { int rx_pos; unsigned int tx_buffer_size; unsigned int rx_buffer_size; + int tx_delay_pos; + int once; #endif void *private_data; }; -- cgit v1.2.3