• Hans Verkuil's avatar
    [media] tuner-core: map audmode to STEREO for radio devices · ba1066d2
    Hans Verkuil authored
    Fixes a v4l2-compliance error: setting audmode to a value other than mono
    or stereo for a radio device should map to MODE_STEREO.
    The spec specifies that for radio devices only mono and stereo audmodes are
    valid. If the user specifies another audmode in v4l2_tuner, then that should
    be mapped to valid audmode. That didn't happen here.
    Note that tuner drivers might decide to limit the possible audmode even
    further if it only supports mono. In that case the tuner driver can set
    audmode to mono. However, that new value wasn't copied back to t->audmode,
    and that has been fixed as well in this patch.
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    ba1066d2
tuner-core.c 34.6 KB