Currently for a S_FREQUENCY we set v4l2_frequency.type to V4L2_TUNER_RADIO,
but on G_FREQUENCY we leave it unset. The spec states that the type field
should be ignored by modulators, but since we're setting it on
S_FREQUENCY, lets be consistent and also set if on G_FREQUENCY.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
double fac = 16;
if (capabilities & V4L2_CAP_MODULATOR) {
+ vf.type = V4L2_TUNER_RADIO;
if (doioctl(fd, VIDIOC_G_MODULATOR, &modulator) == 0)
fac = (modulator.capability & V4L2_TUNER_CAP_LOW) ? 16000 : 16;
} else {