diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-04-28 15:53:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-24 16:11:26 -0400 |
commit | 8774bed9ce832d8d9ccb79e92800b808aa2d2ad2 (patch) | |
tree | 30756d116a47317fff754ca0f976cf5134033756 /drivers/media/pci/saa7146/mxb.c | |
parent | 85ada737b9d9ede7dbb17e831d3b4bb187dc1915 (diff) |
[media] v4l: subdev: Move [gs]_std operation to video ops
The g_std and s_std operations are video-related, move them to the video
ops where they belong.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/saa7146/mxb.c')
-rw-r--r-- | drivers/media/pci/saa7146/mxb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/pci/saa7146/mxb.c b/drivers/media/pci/saa7146/mxb.c index 33abe332d175..c4c8fce8f2b4 100644 --- a/drivers/media/pci/saa7146/mxb.c +++ b/drivers/media/pci/saa7146/mxb.c | |||
@@ -357,7 +357,7 @@ static int mxb_init_done(struct saa7146_dev* dev) | |||
357 | tea6420_route(mxb, 6); | 357 | tea6420_route(mxb, 6); |
358 | 358 | ||
359 | /* select video mode in saa7111a */ | 359 | /* select video mode in saa7111a */ |
360 | saa7111a_call(mxb, core, s_std, std); | 360 | saa7111a_call(mxb, video, s_std, std); |
361 | 361 | ||
362 | /* select tuner-output on saa7111a */ | 362 | /* select tuner-output on saa7111a */ |
363 | i = 0; | 363 | i = 0; |
@@ -379,8 +379,8 @@ static int mxb_init_done(struct saa7146_dev* dev) | |||
379 | /* These two gpio calls set the GPIO pins that control the tda9820 */ | 379 | /* These two gpio calls set the GPIO pins that control the tda9820 */ |
380 | saa7146_write(dev, GPIO_CTRL, 0x00404050); | 380 | saa7146_write(dev, GPIO_CTRL, 0x00404050); |
381 | saa7111a_call(mxb, core, s_gpio, 1); | 381 | saa7111a_call(mxb, core, s_gpio, 1); |
382 | saa7111a_call(mxb, core, s_std, std); | 382 | saa7111a_call(mxb, video, s_std, std); |
383 | tuner_call(mxb, core, s_std, std); | 383 | tuner_call(mxb, video, s_std, std); |
384 | 384 | ||
385 | /* switch to tuner-channel on tea6415c */ | 385 | /* switch to tuner-channel on tea6415c */ |
386 | tea6415c_call(mxb, video, s_routing, 3, 17, 0); | 386 | tea6415c_call(mxb, video, s_routing, 3, 17, 0); |
@@ -771,9 +771,9 @@ static int std_callback(struct saa7146_dev *dev, struct saa7146_standard *standa | |||
771 | /* These two gpio calls set the GPIO pins that control the tda9820 */ | 771 | /* These two gpio calls set the GPIO pins that control the tda9820 */ |
772 | saa7146_write(dev, GPIO_CTRL, 0x00404050); | 772 | saa7146_write(dev, GPIO_CTRL, 0x00404050); |
773 | saa7111a_call(mxb, core, s_gpio, 0); | 773 | saa7111a_call(mxb, core, s_gpio, 0); |
774 | saa7111a_call(mxb, core, s_std, std); | 774 | saa7111a_call(mxb, video, s_std, std); |
775 | if (mxb->cur_input == 0) | 775 | if (mxb->cur_input == 0) |
776 | tuner_call(mxb, core, s_std, std); | 776 | tuner_call(mxb, video, s_std, std); |
777 | } else { | 777 | } else { |
778 | v4l2_std_id std = V4L2_STD_PAL_BG; | 778 | v4l2_std_id std = V4L2_STD_PAL_BG; |
779 | 779 | ||
@@ -783,9 +783,9 @@ static int std_callback(struct saa7146_dev *dev, struct saa7146_standard *standa | |||
783 | /* These two gpio calls set the GPIO pins that control the tda9820 */ | 783 | /* These two gpio calls set the GPIO pins that control the tda9820 */ |
784 | saa7146_write(dev, GPIO_CTRL, 0x00404050); | 784 | saa7146_write(dev, GPIO_CTRL, 0x00404050); |
785 | saa7111a_call(mxb, core, s_gpio, 1); | 785 | saa7111a_call(mxb, core, s_gpio, 1); |
786 | saa7111a_call(mxb, core, s_std, std); | 786 | saa7111a_call(mxb, video, s_std, std); |
787 | if (mxb->cur_input == 0) | 787 | if (mxb->cur_input == 0) |
788 | tuner_call(mxb, core, s_std, std); | 788 | tuner_call(mxb, video, s_std, std); |
789 | } | 789 | } |
790 | return 0; | 790 | return 0; |
791 | } | 791 | } |