]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
[PATCH] video/tuner: fix tuner->freq updating
authorJiri Benc <jbenc@suse.cz>
Sat, 7 May 2005 04:30:42 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 May 2005 05:09:28 +0000 (22:09 -0700)
commite99d3438e4db1ef9e4cae5ad3946c76f4ffd268d
tree50118dee29963e6720f1dda7734ef6f3616fdb4e
parentb272125273103458b9727df1868b81bae64f44cb
[PATCH] video/tuner: fix tuner->freq updating

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>
drivers/media/video/tuner-core.c