Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241847
b: refs/heads/master
c: b77bdb0
h: refs/heads/master
i:
  241845: da22ab9
  241843: 446f539
  241839: bb405e6
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent a17ffdb commit 7b5a9c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04f590e82bdd5fa6fc36d7abf806006d27ea9e5d
refs/heads/master: b77bdb028807bb1f78b5b50127456e1f664bd501
12 changes: 6 additions & 6 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ static void set_tv_freq(struct i2c_client *c, unsigned int freq)
freq = tv_range[1] * 16;
}
params.frequency = freq;
tuner_dbg("tv freq set to %lu.%02lu\n",
freq / 16, freq % 16 * 100 / 16);
t->tv_freq = freq;

analog_ops->set_params(&t->fe, &params);
}
Expand Down Expand Up @@ -281,6 +284,9 @@ static void set_radio_freq(struct i2c_client *c, unsigned int freq)
freq = radio_range[1] * 16000;
}
params.frequency = freq;
tuner_dbg("radio freq set to %lu.%02lu\n",
freq / 16000, freq % 16000 * 100 / 16000);
t->radio_freq = freq;

analog_ops->set_params(&t->fe, &params);
}
Expand All @@ -291,17 +297,11 @@ static void set_freq(struct i2c_client *c, unsigned long freq)

switch (t->mode) {
case V4L2_TUNER_RADIO:
tuner_dbg("radio freq set to %lu.%02lu\n",
freq / 16000, freq % 16000 * 100 / 16000);
set_radio_freq(c, freq);
t->radio_freq = freq;
break;
case V4L2_TUNER_ANALOG_TV:
case V4L2_TUNER_DIGITAL_TV:
tuner_dbg("tv freq set to %lu.%02lu\n",
freq / 16, freq % 16 * 100 / 16);
set_tv_freq(c, freq);
t->tv_freq = freq;
break;
default:
tuner_dbg("freq set: unknown mode: 0x%04x!\n",t->mode);
Expand Down

0 comments on commit 7b5a9c9

Please sign in to comment.