aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/tvp514x.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c
index e4815a1806e3..e826114b7fb8 100644
--- a/drivers/media/video/tvp514x.c
+++ b/drivers/media/video/tvp514x.c
@@ -79,6 +79,8 @@ struct tvp514x_std_info {
79}; 79};
80 80
81static struct tvp514x_reg tvp514x_reg_list_default[0x40]; 81static struct tvp514x_reg tvp514x_reg_list_default[0x40];
82
83static int tvp514x_s_stream(struct v4l2_subdev *sd, int enable);
82/** 84/**
83 * struct tvp514x_decoder - TVP5146/47 decoder object 85 * struct tvp514x_decoder - TVP5146/47 decoder object
84 * @sd: Subdevice Slave handle 86 * @sd: Subdevice Slave handle
@@ -644,6 +646,17 @@ static int tvp514x_s_routing(struct v4l2_subdev *sd,
644 /* Index out of bound */ 646 /* Index out of bound */
645 return -EINVAL; 647 return -EINVAL;
646 648
649 /*
650 * For the sequence streamon -> streamoff and again s_input
651 * it fails to lock the signal, since streamoff puts TVP514x
652 * into power off state which leads to failure in sub-sequent s_input.
653 *
654 * So power up the TVP514x device here, since it is important to lock
655 * the signal at this stage.
656 */
657 if (!decoder->streaming)
658 tvp514x_s_stream(sd, 1);
659
647 input_sel = input; 660 input_sel = input;
648 output_sel = output; 661 output_sel = output;
649 662