aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7146/mxb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci/saa7146/mxb.c')
-rw-r--r--drivers/media/pci/saa7146/mxb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/pci/saa7146/mxb.c b/drivers/media/pci/saa7146/mxb.c
index 91369daad722..71e8bead321b 100644
--- a/drivers/media/pci/saa7146/mxb.c
+++ b/drivers/media/pci/saa7146/mxb.c
@@ -560,7 +560,7 @@ static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *t)
560 return call_all(dev, tuner, g_tuner, t); 560 return call_all(dev, tuner, g_tuner, t);
561} 561}
562 562
563static int vidioc_s_tuner(struct file *file, void *fh, struct v4l2_tuner *t) 563static int vidioc_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *t)
564{ 564{
565 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 565 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev;
566 struct mxb *mxb = (struct mxb *)dev->ext_priv; 566 struct mxb *mxb = (struct mxb *)dev->ext_priv;
@@ -595,7 +595,7 @@ static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency
595 return 0; 595 return 0;
596} 596}
597 597
598static int vidioc_s_frequency(struct file *file, void *fh, struct v4l2_frequency *f) 598static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f)
599{ 599{
600 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 600 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev;
601 struct mxb *mxb = (struct mxb *)dev->ext_priv; 601 struct mxb *mxb = (struct mxb *)dev->ext_priv;
@@ -612,8 +612,8 @@ static int vidioc_s_frequency(struct file *file, void *fh, struct v4l2_frequency
612 /* tune in desired frequency */ 612 /* tune in desired frequency */
613 tuner_call(mxb, tuner, s_frequency, f); 613 tuner_call(mxb, tuner, s_frequency, f);
614 /* let the tuner subdev clamp the frequency to the tuner range */ 614 /* let the tuner subdev clamp the frequency to the tuner range */
615 tuner_call(mxb, tuner, g_frequency, f);
616 mxb->cur_freq = *f; 615 mxb->cur_freq = *f;
616 tuner_call(mxb, tuner, g_frequency, &mxb->cur_freq);
617 if (mxb->cur_audinput == 0) 617 if (mxb->cur_audinput == 0)
618 mxb_update_audmode(mxb); 618 mxb_update_audmode(mxb);
619 619
@@ -680,7 +680,7 @@ static int vidioc_g_register(struct file *file, void *fh, struct v4l2_dbg_regist
680 return 0; 680 return 0;
681} 681}
682 682
683static int vidioc_s_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) 683static int vidioc_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg)
684{ 684{
685 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 685 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev;
686 686
@@ -688,7 +688,6 @@ static int vidioc_s_register(struct file *file, void *fh, struct v4l2_dbg_regist
688 return -EPERM; 688 return -EPERM;
689 if (v4l2_chip_match_host(&reg->match)) { 689 if (v4l2_chip_match_host(&reg->match)) {
690 saa7146_write(dev, reg->reg, reg->val); 690 saa7146_write(dev, reg->reg, reg->val);
691 reg->size = 4;
692 return 0; 691 return 0;
693 } 692 }
694 return call_all(dev, core, s_register, reg); 693 return call_all(dev, core, s_register, reg);