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: add VIDEO_G_FREQUENCY and freq range to VIDIOC_G_TUNER

This patch adds a VIDIOC_G_FREQUENCY command to tuner-core.c and sets
lowest and highest tunable frequencies in v4l2_tuner structure returned by
VIDIOC_G_TUNER command.

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
c184ca36 e99d3438

+11
+11
drivers/media/video/tuner-core.c
··· 360 360 set_freq(client,f->frequency); 361 361 break; 362 362 } 363 + case VIDIOC_G_FREQUENCY: 364 + { 365 + struct v4l2_frequency *f = arg; 366 + 367 + SWITCH_V4L2; 368 + f->type = t->mode; 369 + f->frequency = t->freq; 370 + break; 371 + } 363 372 case VIDIOC_G_TUNER: 364 373 { 365 374 struct v4l2_tuner *tuner = arg; ··· 376 367 SWITCH_V4L2; 377 368 if (V4L2_TUNER_RADIO == t->mode && t->has_signal) 378 369 tuner->signal = t->has_signal(client); 370 + tuner->rangelow = tv_range[0] * 16; 371 + tuner->rangehigh = tv_range[1] * 16; 379 372 break; 380 373 } 381 374 default: