mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 13:34:38 +08:00
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>
This commit is contained in:
parent
0f0f257b7b
commit
5a8a0a1642
@ -146,7 +146,7 @@ static void set_frequency(struct pvr2_hdw *hdw)
|
|||||||
fv = hdw->freqVal;
|
fv = hdw->freqVal;
|
||||||
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_freq(%lu)",fv);
|
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_freq(%lu)",fv);
|
||||||
memset(&freq,0,sizeof(freq));
|
memset(&freq,0,sizeof(freq));
|
||||||
freq.frequency = fv;
|
freq.frequency = fv / 62500;
|
||||||
freq.tuner = 0;
|
freq.tuner = 0;
|
||||||
freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ?
|
freq.type = (hdw->input_val == PVR2_CVAL_INPUT_RADIO) ?
|
||||||
V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
|
V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
|
||||||
|
Loading…
Reference in New Issue
Block a user