aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mxb.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-25 09:31:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:47 -0400
commita832781cd383e70929c0ceece23f8a5b62e2152b (patch)
tree966f4f97ee68a0d62c59c431d7a00d63c4ac1a19 /drivers/media/video/mxb.c
parent7d341a6a52f115512d60b2de89b2ebde54da8eff (diff)
V4L/DVB (8630): First mxb cleanup phase
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mxb.c')
-rw-r--r--drivers/media/video/mxb.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c
index 8ef578caba3b..7c9820c72a6f 100644
--- a/drivers/media/video/mxb.c
+++ b/drivers/media/video/mxb.c
@@ -466,15 +466,15 @@ static int mxb_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_data
466 /* checking for i2c-devices can be omitted here, because we 466 /* checking for i2c-devices can be omitted here, because we
467 already did this in "mxb_vl42_probe" */ 467 already did this in "mxb_vl42_probe" */
468 468
469 saa7146_vv_init(dev,&vv_data); 469 saa7146_vv_init(dev, &vv_data);
470 if( 0 != saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_GRABBER)) { 470 if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_GRABBER)) {
471 ERR(("cannot register capture v4l2 device. skipping.\n")); 471 ERR(("cannot register capture v4l2 device. skipping.\n"));
472 return -1; 472 return -1;
473 } 473 }
474 474
475 /* initialization stuff (vbi) (only for revision > 0 and for extensions which want it)*/ 475 /* initialization stuff (vbi) (only for revision > 0 and for extensions which want it)*/
476 if( 0 != MXB_BOARD_CAN_DO_VBI(dev)) { 476 if (MXB_BOARD_CAN_DO_VBI(dev)) {
477 if( 0 != saa7146_register_device(&mxb->vbi_dev, dev, "mxb", VFL_TYPE_VBI)) { 477 if (saa7146_register_device(&mxb->vbi_dev, dev, "mxb", VFL_TYPE_VBI)) {
478 ERR(("cannot register vbi v4l2 device. skipping.\n")); 478 ERR(("cannot register vbi v4l2 device. skipping.\n"));
479 } 479 }
480 } 480 }
@@ -486,7 +486,7 @@ static int mxb_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_data
486 i2c_use_client(mxb->saa7111a); 486 i2c_use_client(mxb->saa7111a);
487 i2c_use_client(mxb->tuner); 487 i2c_use_client(mxb->tuner);
488 488
489 printk("mxb: found 'Multimedia eXtension Board'-%d.\n",mxb_num); 489 printk("mxb: found Multimedia eXtension Board #%d.\n", mxb_num);
490 490
491 mxb_num++; 491 mxb_num++;
492 mxb_init_done(dev); 492 mxb_init_done(dev);
@@ -737,8 +737,8 @@ static int mxb_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg)
737 DEB_EE(("VIDIOC_G_TUNER: %d\n", t->index)); 737 DEB_EE(("VIDIOC_G_TUNER: %d\n", t->index));
738 738
739 memset(t,0,sizeof(*t)); 739 memset(t,0,sizeof(*t));
740 strcpy(t->name, "Television");
741 740
741 strlcpy(t->name, "Television", sizeof(t->name));
742 t->type = V4L2_TUNER_ANALOG_TV; 742 t->type = V4L2_TUNER_ANALOG_TV;
743 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2 | V4L2_TUNER_CAP_SAP; 743 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2 | V4L2_TUNER_CAP_SAP;
744 t->rangelow = 772; /* 48.25 MHZ / 62.5 kHz = 772, see fi1216mk2-specs, page 2 */ 744 t->rangelow = 772; /* 48.25 MHZ / 62.5 kHz = 772, see fi1216mk2-specs, page 2 */
@@ -746,7 +746,6 @@ static int mxb_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg)
746 /* FIXME: add the real signal strength here */ 746 /* FIXME: add the real signal strength here */
747 t->signal = 0xffff; 747 t->signal = 0xffff;
748 t->afc = 0; 748 t->afc = 0;
749
750 mxb->tda9840->driver->command(mxb->tda9840,TDA9840_DETECT, &byte); 749 mxb->tda9840->driver->command(mxb->tda9840,TDA9840_DETECT, &byte);
751 t->audmode = mxb->cur_mode; 750 t->audmode = mxb->cur_mode;
752 751