v4l2-ctl: Be consistent in handling v4l2_frequency.type for modulators
authorHans de Goede <hdegoede@redhat.com>
Sat, 26 May 2012 10:59:40 +0000 (12:59 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 26 May 2012 11:23:46 +0000 (13:23 +0200)
commit18ee9a09e1bcc1f54036891b5256a83e8dce8cab
tree4c0b721a73e41b1e9c61f6978c4f0467b8f7889c
parent2bc7ec4afa4c199a5d826711cca9985024c4309b
v4l2-ctl: Be consistent in handling v4l2_frequency.type for modulators

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>
utils/v4l2-ctl/v4l2-ctl.cpp