summaryrefslogtreecommitdiff
path: root/sound/soc/blackfin/bf5xx-sport.h
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2008-09-27 22:32:20 +0800
committerTakashi Iwai <tiwai@suse.de>2008-10-13 02:16:30 +0200
commit6b58a82121320f96513d88032dc3495a9c6f450b (patch)
tree0290ca3031c1ec04fca96fdb303f981f7aedcac0 /sound/soc/blackfin/bf5xx-sport.h
parent5564b14b88a5a34ea848732030fbc202a050daa6 (diff)
downloadlwn-6b58a82121320f96513d88032dc3495a9c6f450b.tar.gz
lwn-6b58a82121320f96513d88032dc3495a9c6f450b.zip
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-sport.h')
-rw-r--r--sound/soc/blackfin/bf5xx-sport.h2
1 files changed, 2 insertions, 0 deletions
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;
};