aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 12:35:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 12:35:11 -0400
commit0851668fdd97e526b2a41f794b785c204dd3d3e0 (patch)
tree4ef7c20a8be8393006c6fe9627eb29dd30877d61 /drivers/media/video/cx23885
parent00ebb6382b8d9c7c15b5f8ad230670d8161d38dd (diff)
parent7655e594945289b418af39f6669fea4666a7b520 (diff)
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits) [media] af9015: Fix max I2C message size when used with tda18271 [media] IR: initialize ir_raw_event in few more drivers [media] Guard a divide in v4l1 compat layer [media] imon: fix nomouse modprobe option [media] imon: remove redundant change_protocol call [media] imon: fix my egregious brown paper bag w/rdev/idev split [media] cafe_ccic: Configure ov7670 correctly [media] ov7670: allow configuration of image size, clock speed, and I/O method [media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016] [media] af9015: map DigitalNow TinyTwin v2 remote [media] DigitalNow TinyTwin remote controller [media] af9015: RC fixes and improvements videodev2.h.xml: Update to reflect the latest changes at videodev2.h [media] v4l: document new Bayer and monochrome pixel formats [media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028 [media] firedtv: add parameter to fake ca_system_ids in CA_INFO [media] tm6000: fix a macro coding style issue tm6000: Remove some ugly debug code [media] Nova-S-Plus audio line input [media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers ...
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r--drivers/media/video/cx23885/cx23885-417.c2
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c2
-rw-r--r--drivers/media/video/cx23885/cx23885-core.c3
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c7
-rw-r--r--drivers/media/video/cx23885/cx23885-video.c11
-rw-r--r--drivers/media/video/cx23885/cx23888-ir.c1
6 files changed, 13 insertions, 13 deletions
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c
index 53a67824071b..a6cc12f8736c 100644
--- a/drivers/media/video/cx23885/cx23885-417.c
+++ b/drivers/media/video/cx23885/cx23885-417.c
@@ -1591,7 +1591,7 @@ static int mpeg_open(struct file *file)
1591 V4L2_BUF_TYPE_VIDEO_CAPTURE, 1591 V4L2_BUF_TYPE_VIDEO_CAPTURE,
1592 V4L2_FIELD_INTERLACED, 1592 V4L2_FIELD_INTERLACED,
1593 sizeof(struct cx23885_buffer), 1593 sizeof(struct cx23885_buffer),
1594 fh); 1594 fh, NULL);
1595 unlock_kernel(); 1595 unlock_kernel();
1596 1596
1597 return 0; 1597 return 0;
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index e76ce8709afd..db054004e462 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -1247,7 +1247,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
1247 case CX23885_BOARD_LEADTEK_WINFAST_PXTV1200: 1247 case CX23885_BOARD_LEADTEK_WINFAST_PXTV1200:
1248 dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, 1248 dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev,
1249 &dev->i2c_bus[2].i2c_adap, 1249 &dev->i2c_bus[2].i2c_adap,
1250 "cx25840", "cx25840", 0x88 >> 1, NULL); 1250 NULL, "cx25840", 0x88 >> 1, NULL);
1251 if (dev->sd_cx25840) { 1251 if (dev->sd_cx25840) {
1252 dev->sd_cx25840->grp_id = CX23885_HW_AV_CORE; 1252 dev->sd_cx25840->grp_id = CX23885_HW_AV_CORE;
1253 v4l2_subdev_call(dev->sd_cx25840, core, load_fw); 1253 v4l2_subdev_call(dev->sd_cx25840, core, load_fw);
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c
index f6b62e7398af..359882419b7f 100644
--- a/drivers/media/video/cx23885/cx23885-core.c
+++ b/drivers/media/video/cx23885/cx23885-core.c
@@ -815,6 +815,7 @@ static void cx23885_dev_checkrevision(struct cx23885_dev *dev)
815 case 0x0e: 815 case 0x0e:
816 /* CX23887-15Z */ 816 /* CX23887-15Z */
817 dev->hwrevision = 0xc0; 817 dev->hwrevision = 0xc0;
818 break;
818 case 0x0f: 819 case 0x0f:
819 /* CX23887-14Z */ 820 /* CX23887-14Z */
820 dev->hwrevision = 0xb1; 821 dev->hwrevision = 0xb1;
@@ -1221,7 +1222,7 @@ void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf)
1221 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); 1222 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb);
1222 1223
1223 BUG_ON(in_interrupt()); 1224 BUG_ON(in_interrupt());
1224 videobuf_waiton(&buf->vb, 0, 0); 1225 videobuf_waiton(q, &buf->vb, 0, 0);
1225 videobuf_dma_unmap(q->dev, dma); 1226 videobuf_dma_unmap(q->dev, dma);
1226 videobuf_dma_free(dma); 1227 videobuf_dma_free(dma);
1227 btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc); 1228 btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc);
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 3d70af283881..5958cb882e93 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -1017,10 +1017,7 @@ static int dvb_register(struct cx23885_tsport *port)
1017 /* Read entire EEPROM */ 1017 /* Read entire EEPROM */
1018 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1; 1018 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
1019 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom)); 1019 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom));
1020 printk(KERN_INFO "TeVii S470 MAC= " 1020 printk(KERN_INFO "TeVii S470 MAC= %pM\n", eeprom + 0xa0);
1021 "%02X:%02X:%02X:%02X:%02X:%02X\n",
1022 eeprom[0xa0], eeprom[0xa1], eeprom[0xa2],
1023 eeprom[0xa3], eeprom[0xa4], eeprom[0xa5]);
1024 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6); 1021 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6);
1025 break; 1022 break;
1026 } 1023 }
@@ -1074,7 +1071,7 @@ int cx23885_dvb_register(struct cx23885_tsport *port)
1074 videobuf_queue_sg_init(&fe0->dvb.dvbq, &dvb_qops, 1071 videobuf_queue_sg_init(&fe0->dvb.dvbq, &dvb_qops,
1075 &dev->pci->dev, &port->slock, 1072 &dev->pci->dev, &port->slock,
1076 V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_FIELD_TOP, 1073 V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_FIELD_TOP,
1077 sizeof(struct cx23885_buffer), port); 1074 sizeof(struct cx23885_buffer), port, NULL);
1078 } 1075 }
1079 err = dvb_register(port); 1076 err = dvb_register(port);
1080 if (err != 0) 1077 if (err != 0)
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c
index da66e5f8d91d..93af9c65b484 100644
--- a/drivers/media/video/cx23885/cx23885-video.c
+++ b/drivers/media/video/cx23885/cx23885-video.c
@@ -758,7 +758,7 @@ static int video_open(struct file *file)
758 V4L2_BUF_TYPE_VIDEO_CAPTURE, 758 V4L2_BUF_TYPE_VIDEO_CAPTURE,
759 V4L2_FIELD_INTERLACED, 759 V4L2_FIELD_INTERLACED,
760 sizeof(struct cx23885_buffer), 760 sizeof(struct cx23885_buffer),
761 fh); 761 fh, NULL);
762 762
763 dprintk(1, "post videobuf_queue_init()\n"); 763 dprintk(1, "post videobuf_queue_init()\n");
764 764
@@ -1165,9 +1165,10 @@ static int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i)
1165 i->type = V4L2_INPUT_TYPE_CAMERA; 1165 i->type = V4L2_INPUT_TYPE_CAMERA;
1166 strcpy(i->name, iname[INPUT(n)->type]); 1166 strcpy(i->name, iname[INPUT(n)->type]);
1167 if ((CX23885_VMUX_TELEVISION == INPUT(n)->type) || 1167 if ((CX23885_VMUX_TELEVISION == INPUT(n)->type) ||
1168 (CX23885_VMUX_CABLE == INPUT(n)->type)) 1168 (CX23885_VMUX_CABLE == INPUT(n)->type)) {
1169 i->type = V4L2_INPUT_TYPE_TUNER; 1169 i->type = V4L2_INPUT_TYPE_TUNER;
1170 i->std = CX23885_NORMS; 1170 i->std = CX23885_NORMS;
1171 }
1171 return 0; 1172 return 0;
1172} 1173}
1173 1174
@@ -1511,11 +1512,11 @@ int cx23885_video_register(struct cx23885_dev *dev)
1511 if (dev->tuner_addr) 1512 if (dev->tuner_addr)
1512 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, 1513 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev,
1513 &dev->i2c_bus[1].i2c_adap, 1514 &dev->i2c_bus[1].i2c_adap,
1514 "tuner", "tuner", dev->tuner_addr, NULL); 1515 NULL, "tuner", dev->tuner_addr, NULL);
1515 else 1516 else
1516 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, 1517 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev,
1517 &dev->i2c_bus[1].i2c_adap, 1518 &dev->i2c_bus[1].i2c_adap, NULL,
1518 "tuner", "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_TV)); 1519 "tuner", 0, v4l2_i2c_tuner_addrs(ADDRS_TV));
1519 if (sd) { 1520 if (sd) {
1520 struct tuner_setup tun_setup; 1521 struct tuner_setup tun_setup;
1521 1522
diff --git a/drivers/media/video/cx23885/cx23888-ir.c b/drivers/media/video/cx23885/cx23888-ir.c
index 2502a0a67097..e78e3e4c8112 100644
--- a/drivers/media/video/cx23885/cx23888-ir.c
+++ b/drivers/media/video/cx23885/cx23888-ir.c
@@ -704,6 +704,7 @@ static int cx23888_ir_rx_read(struct v4l2_subdev *sd, u8 *buf, size_t count,
704 if (v > IR_MAX_DURATION) 704 if (v > IR_MAX_DURATION)
705 v = IR_MAX_DURATION; 705 v = IR_MAX_DURATION;
706 706
707 init_ir_raw_event(&p->ir_core_data);
707 p->ir_core_data.pulse = u; 708 p->ir_core_data.pulse = u;
708 p->ir_core_data.duration = v; 709 p->ir_core_data.duration = v;
709 710