V4L: pvrusb2: Re-fix hardware scaling on video standard change
commit2edf4e4e980945a6499d04c266006284c244a285
authorMike Isely <isely@pobox.com>
Thu, 25 Jun 2009 16:58:15 +0000 (25 12:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:49:49 +0000 (2 16:49 -0700)
tree1f3cd9e940c0acd25d8919ba1502c567ee0b75e8
parent9744eda764218ec7948061373b85bf148e1d9f7b
V4L: pvrusb2: Re-fix hardware scaling on video standard change

(cherry picked from commit a6862da2f3c7ce3ec6644958bc8937b630b9e2c1)

The cx25840 module's VBI initialization logic uses the current video
standard as part of its internal algorithm.  This therefore means that
we probably need to make sure that the correct video standard has been
set before initializing VBI.  (Normally we would not care about VBI,
but as described in an earlier changeset, VBI must be initialized
correctly on the cx25840 in order for the chip's hardware scaler to
operate correctly.)

It's kind of messy to force the video standard to be set before
initializing VBI (mainly because we can't know what the app really
wants that early in the initialization process).  So this patch does
the next best thing: VBI is re-initialized after any point where the
video standard has been set.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pvrusb2/pvrusb2-hdw.c