forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx88/cx88-mpeg.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 *
34 * Support for the mpeg transport stream transfers
....@@ -6,16 +7,6 @@
67 * (c) 2004 Jelle Foks <jelle@foks.us>
78 * (c) 2004 Chris Pascoe <c.pascoe@itee.uq.edu.au>
89 * (c) 2004 Gerd Knorr <kraxel@bytesex.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
1910 */
2011
2112 #include "cx88.h"
....@@ -171,6 +162,9 @@
171162 cx_write(MO_TS_GPCNTRL, GP_COUNT_CONTROL_RESET);
172163 q->count = 0;
173164
165
+ /* clear interrupt status register */
166
+ cx_write(MO_TS_INTSTAT, 0x1f1111);
167
+
174168 /* enable irqs */
175169 dprintk(1, "setting the interrupt mask\n");
176170 cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT);