aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-12-27 21:21:34 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:31 -0500
commit5a8a0a16422eec744ec220ccea472eef74b67180 (patch)
treee0e2fc427b62a50cb5d37445e9d0bd05ade63faa /drivers/media
parent0f0f257b7b46cc65c0f8f6f30444005b9c255e79 (diff)
V4L/DVB (5046): Pvrusb2: Fix tuner frequency calculation
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
index 8d66ab144281..c0920835d802 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
@@ -146,7 +146,7 @@ static void set_frequency(struct pvr2_hdw *hdw)
146 fv = hdw->freqVal; 146 fv = hdw->freqVal;
147 pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_freq(%lu)",fv); 147 pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_freq(%lu)",fv);
148 memset(&freq,0,sizeof(freq)); 148 memset(&freq,0,sizeof(freq));
149 freq.frequency = fv; 149 freq.frequency = fv / 62500;
150 freq.tuner = 0; 150 freq.tuner = 0;
151 freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ? 151 freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ?
152 V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV; 152 V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;