]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5046): Pvrusb2: Fix tuner frequency calculation
authorMike Isely <isely@pobox.com>
Thu, 28 Dec 2006 02:21:34 +0000 (23:21 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:31 +0000 (13:34 -0200)
A conversion from Hz to V4L frequency units was accidentally removed
by an earlier change.  Restore it.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c

index 8d66ab14428160550aea4bc48b9984c35051865b..c0920835d802fc8928c6b11615e5190e45025091 100644 (file)
@@ -146,7 +146,7 @@ static void set_frequency(struct pvr2_hdw *hdw)
        fv = hdw->freqVal;
        pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_freq(%lu)",fv);
        memset(&freq,0,sizeof(freq));
-       freq.frequency = fv;
+       freq.frequency = fv / 62500;
        freq.tuner = 0;
        freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ?
                     V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;