forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/bt8xx/bttv-risc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 bttv-risc.c -- interfaces to other kernel modules
....@@ -8,19 +9,6 @@
89
910 (c) 2000-2003 Gerd Knorr <kraxel@bytesex.org>
1011
11
- This program is free software; you can redistribute it and/or modify
12
- it under the terms of the GNU General Public License as published by
13
- the Free Software Foundation; either version 2 of the License, or
14
- (at your option) any later version.
15
-
16
- This program is distributed in the hope that it will be useful,
17
- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- GNU General Public License for more details.
20
-
21
- You should have received a copy of the GNU General Public License
22
- along with this program; if not, write to the Free Software
23
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2412
2513 */
2614
....@@ -32,8 +20,8 @@
3220 #include <linux/pci.h>
3321 #include <linux/vmalloc.h>
3422 #include <linux/interrupt.h>
23
+#include <linux/pgtable.h>
3524 #include <asm/page.h>
36
-#include <asm/pgtable.h>
3725 #include <media/v4l2-ioctl.h>
3826
3927 #include "bttvp.h"
....@@ -93,7 +81,7 @@
9381 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset);
9482 offset+=bpl;
9583 } else {
96
- /* scanline needs to be splitted */
84
+ /* scanline needs to be split */
9785 todo = bpl;
9886 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL|
9987 (sg_dma_len(sg)-offset));
....@@ -711,9 +699,9 @@
711699 const struct bttv_tvnorm *tvnorm = bttv_tvnorms + buf->tvnorm;
712700 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
713701
714
- dprintk("%d: buffer field: %s format: %s size: %dx%d\n",
702
+ dprintk("%d: buffer field: %s format: 0x%08x size: %dx%d\n",
715703 btv->c.nr, v4l2_field_names[buf->vb.field],
716
- buf->fmt->name, buf->vb.width, buf->vb.height);
704
+ buf->fmt->fourcc, buf->vb.width, buf->vb.height);
717705
718706 /* packed pixel modes */
719707 if (buf->fmt->flags & FORMAT_FLAGS_PACKED) {
....@@ -872,9 +860,9 @@
872860 struct bttv_buffer *buf)
873861 {
874862 /* check interleave, bottom+top fields */
875
- dprintk("%d: overlay fields: %s format: %s size: %dx%d\n",
863
+ dprintk("%d: overlay fields: %s format: 0x%08x size: %dx%d\n",
876864 btv->c.nr, v4l2_field_names[buf->vb.field],
877
- fmt->name, ov->w.width, ov->w.height);
865
+ fmt->fourcc, ov->w.width, ov->w.height);
878866
879867 /* calculate geometry */
880868 bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height,