summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-vbi.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-08-18 18:09:42 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-08-18 18:09:42 -0700
commit96022455a76d238b618f797555c6b16f7d0e9ec7 (patch)
treef244bfb4a660cf1e353d891dba5ed3b64fd6ad74 /linux/drivers/media/video/saa7134/saa7134-vbi.c
parentfc897dea33e8562dcab15ccb3f90f8f354b4cb7e (diff)
downloadmediapointer-dvb-s2-96022455a76d238b618f797555c6b16f7d0e9ec7.tar.gz
mediapointer-dvb-s2-96022455a76d238b618f797555c6b16f7d0e9ec7.tar.bz2
cx88-alsa: Change order of interrupt enabling, fix spurious IRQs
From: Trent Piepho <xyzzy@speakeasy.org> Currently the driver turns on audio interrupts, then sets the audio interrupt mask to select which interrupts to get. One could received unwanted interrupts since the mask is set _after_ interrupts have already been turned on. Change the order of the operations, and clear any audio interrupt status bits that are already set for good measure. Before changing the SRAM FIFO parameters, make sure the FIFO isn't being used. This shouldn't happen with just the ALSA driver, as it should never try to turn on FIFO/RISC/DMA while they are already on. However, the V4L driver needs to turn the audio FIFO on for analog audio output to work (undocumented cx88 bug). The FIFO parameters are in an inconsistent state while they are updated, and this results in many FIFO sync error IRQs if the FIFO is in use while it's in this inconsistent state. Also create and use a bunch of symbolic constants for audio interrupt mask bits. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-vbi.c')
0 files changed, 0 insertions, 0 deletions