V4L/DVB (6053): ivtv: setup TV output standard on init to prevent flicker
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 19 Aug 2007 08:09:37 +0000 (05:09 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:05:40 +0000 (22:05 -0300)
The TV output standard was set only on first use, which meant that the saa7127
was set to NTSC until then, leading to flickering on PAL systems.

Since the saa7127 has no firmware it is OK to initialize it immediately.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c

index 198e443e8a5eff04a04a25f4e1d14d2525a03448..8086c62e7545652dc5cb36946508ac9b7067baf5 100644 (file)
@@ -1145,6 +1145,10 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
           are not. */
        itv->tuner_std = itv->std;
 
+       if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
+               ivtv_call_i2c_clients(itv, VIDIOC_INT_S_STD_OUTPUT, &itv->std);
+       }
+
        retval = ivtv_streams_setup(itv);
        if (retval) {
                IVTV_ERR("Error %d setting up streams\n", retval);