]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (5042): Pvrusb2: Make units uniform when tracking tuning frequency
authorMike Isely <isely@pobox.com>
Thu, 28 Dec 2006 02:13:53 +0000 (23:13 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:24 +0000 (13:34 -0200)
The initial radio implementation used different units for tuning when
in radio mode.  This changes everything to Hz.

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

index 39d04d8644a80820655196b4ac980e1e6b109cc7..fe290f2f4e140330908fe65fa7153786b21a4720 100644 (file)
@@ -40,8 +40,8 @@
 #define TV_MIN_FREQ 55250000L
 #define TV_MAX_FREQ 850000000L
 
-#define RADIO_MIN_FREQ 1392000L //87MHz
-#define RADIO_MAX_FREQ 1728000L //108MHz
+#define RADIO_MIN_FREQ 87000000L
+#define RADIO_MAX_FREQ 108000000L
 
 struct usb_device_id pvr2_device_table[] = {
        [PVR2_HDW_TYPE_29XXX] = { USB_DEVICE(0x2040, 0x2900) },
index ed4eed4d55c4a4b65d5839fefc4a343df174eb2f..98731c4f7df400085158550f3bbdf2243363d3cd 100644 (file)
@@ -169,8 +169,6 @@ 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));
-       if (hdw->input_val == PVR2_CVAL_INPUT_TV)
-               fv /= 62500;
        freq.frequency = fv;
        freq.tuner = 0;
        freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ?