Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Jiri Benc and committed by
Linus Torvalds
e99d3438 b2721252

+1 -2
+1 -2
drivers/media/video/tuner-core.c
··· 357 357 V4L2_TUNER_RADIO != t->mode) 358 358 set_tv_freq(client,400*16); 359 359 t->mode = f->type; 360 - t->freq = f->frequency; 361 - set_freq(client,t->freq); 360 + set_freq(client,f->frequency); 362 361 break; 363 362 } 364 363 case VIDIOC_G_TUNER: