mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
media: cx88-mpeg: clear interrupt status register before streaming video
Some cx88 video cards may have transport stream status interrupts set to 1 from cold start, causing errors like this: cx88xx: cx88_print_irqbits: core:irq mpeg [0x100000] ts_err?* cx8802: cx8802_mpeg_irq: mpeg:general errors: 0x00100000 According to CX2388x datasheet, the interrupt status register should be cleared before enabling IRQs to stream video. Fix it by clearing the Transport Stream Interrupt Status register. Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
This commit is contained in:
parent
ee8b887329
commit
56cb61f70e
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ int cx8802_start_dma(struct cx8802_dev *dev,
|
|||
cx_write(MO_TS_GPCNTRL, GP_COUNT_CONTROL_RESET);
|
||||
q->count = 0;
|
||||
|
||||
/* clear interrupt status register */
|
||||
cx_write(MO_TS_INTSTAT, 0x1f1111);
|
||||
|
||||
/* enable irqs */
|
||||
dprintk(1, "setting the interrupt mask\n");
|
||||
cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT);
|
||||
|
|
Loading…
Add table
Reference in a new issue