Skip to contentSkip to conversation

sound problems caused by masking irq for too long

DISCUSSION Alexander V. Lukyanov 2 participants 2 messages Nov 12, 2000

lore
Share & tools
lore
#0 lore raw

Hi!

In some cases sound gets interrupted for a moment, this happens in two occasions. When unmaskirq flag is off on ide cdrom and it is accessed, and when tdfxfb console (800x600) flashes (tput flash, or `set bell-style visible' in .inputrc).

It seems the problem is caused by masking irq for too long, and then the sound dma buffer underruns. This is fixed by unmasking irq for ide cdrom by `hdparm -u1 /dev/cdrom', and by changing spin_(un)lock_irq in console.c to spin_(un)lock_bh.

This was observed on 2.4.0-pre10, the problem with ide also exists on 2.2.17, the console.c in 2.2.17 only disables CONSOLE_BH.

The audio card is old awe32 (isa), sound driver is modular.

Signature · 5 lines
   Alexander.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw
Quoted 7 lines · Alexander V. Lukyanov

Hi!

In some cases sound gets interrupted for a moment, this happens in two occasions. When unmaskirq flag is off on ide cdrom and it is accessed, and when tdfxfb console (800x600) flashes (tput flash, or `set bell-style visible' in .inputrc).

Quoted 7 lines

It seems the problem is caused by masking irq for too long, and then the sound dma buffer underruns. This is fixed by unmasking irq for ide cdrom by `hdparm -u1 /dev/cdrom', and by changing spin_(un)lock_irq in console.c to spin_(un)lock_bh.

This was observed on 2.4.0-pre10, the problem with ide also exists on 2.2.17, the console.c in 2.2.17 only disables CONSOLE_BH.

The above story also explains why my sound 'hickups' when I switch from console to X (yes, and I do that a lot).

Is this a recent change from 2.2.15 -> >= 2.2.16 or so ?

Quoted 1 line

The audio card is old awe32 (isa), sound driver is modular.

This is a SB16 PnP

Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/