Commit 613beee4 authored by Vladimir A. Barinov's avatar Vladimir A. Barinov Committed by Tony Lindgren

[PATCH] ARM: OMAP: problem with audio on h3

This string is needed to avoid work of the second dma channel if we need 
only one to send data (i.e. send only one small chunk).
Otherwise it will produce:
# cat /home/out.txt >/dev/dsp
MUX: initialized N14_1610_UWIRE_CS0
audio_dsr_handler}-ERROR: Interrupt(3)  for empty queue(h=1, T=1)??? 
Interrupt(3)  for empty queue(h=1, T=1)???
{audio_dsr_handler}-ERROR: nbfrag=8,pendfrags=0,USR-H=1, QH-1 QT-1
MUX: initialized V5_1710_MCLK_OFF
The attached patch should solve the probelm that pointed David Cohen.
Signed-off-by: default avatarVladimir A. Barinov <vbarinov@ru.mvista.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 7d44c71b
......@@ -548,7 +548,7 @@ int audio_sync(struct file *file)
* to complete. So it's need to unlink dma channels
* to avoid empty dma work.
*/
if (!cpu_is_omap1510())
if (!cpu_is_omap1510() && AUDIO_QUEUE_EMPTY(s))
omap_sound_dma_unlink_lch(s);
shiftval = s->fragsize - b->offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment