Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21614
b: refs/heads/master
c: 8f1a58d
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Feb 7, 2006
1 parent ff941f3 commit 5b62e92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d17d0834a2e6a5cba096ea09592a4a096183300
refs/heads/master: 8f1a58d0fccacb5d61aed8a63c3920c8acc155e7
7 changes: 7 additions & 0 deletions trunk/drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
continue;
break;
}
/* use default tuner_params if desired_type not available */
if (desired_type != tun->params[j].type)
j = 0;

for (i = 0; i < tun->params[j].count; i++) {
if (freq > tun->params[j].ranges[i].limit)
continue;
Expand Down Expand Up @@ -340,6 +344,9 @@ static void default_set_radio_freq(struct i2c_client *c, unsigned int freq)
continue;
break;
}
/* use default tuner_params if desired_type not available */
if (desired_type != tun->params[j].type)
j = 0;

div = (20 * freq / 16000) + (int)(20*10.7); /* IF 10.7 MHz */
buffer[2] = (tun->params[j].ranges[0].config & ~TUNER_RATIO_MASK) | TUNER_RATIO_SELECT_50; /* 50 kHz step */
Expand Down

0 comments on commit 5b62e92

Please sign in to comment.