]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: problem with audio on h3
authorVladimir A. Barinov <vbarinov@ru.mvista.com>
Tue, 24 May 2005 17:52:49 +0000 (10:52 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 24 May 2005 17:52:49 +0000 (10:52 -0700)
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: Vladimir A. Barinov <vbarinov@ru.mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
sound/oss/omap-audio-dma-intfc.c

index b0214627104868409e53847692c016822fef3319..6ccab9a5af3c97230d855cbc83830a52b2a6eadb 100644 (file)
@@ -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;