Skip to content

Commit

Permalink
[PATCH] video/tuner: fix tuner->freq updating
Browse files Browse the repository at this point in the history
In VIDIOC_S_FREQUENCY command in tuner-core.c, t->freq is set to a new
value before calling set_freq().  This is not necessary, as set_freq() sets
t->freq itself.  Moreover, it causes problems with Philips tuners, as they
need to take into consideration difference between previous and new
frequency.

Signed-off-by: Jiri Benc <jbenc@suse.cz>
Cc: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jiri Benc authored and Linus Torvalds committed May 7, 2005
1 parent b272125 commit e99d343
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
V4L2_TUNER_RADIO != t->mode)
set_tv_freq(client,400*16);
t->mode = f->type;
t->freq = f->frequency;
set_freq(client,t->freq);
set_freq(client,f->frequency);
break;
}
case VIDIOC_G_TUNER:
Expand Down

0 comments on commit e99d343

Please sign in to comment.