• Hans Verkuil's avatar
    [media] v4l2-ioctl: check if an ioctl is valid · 73f35418
    Hans Verkuil authored
    Just checking if the op exists isn't correct, you should check if the ioctl
    is valid (which implies that the op exists as well).
    One exception is g_std: if current_norm is non-zero, then the g_std op may be
    absent. This sort of weird behavior is one of the reasons why I am trying to
    get rid of current_norm.
    This patch fixes the case where the g/s_std op is set, but these ioctls are
    disabled. This can happen in drivers supporting multiple models, some that
    have TV input (and support the STD API) and some that have a sensor (and do
    not support the STD API). In the latter case qv4l2 would still show the
    Standards combobox.
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    73f35418
v4l2-ioctl.c 71.7 KB