diff options
author | Hans Verkuil <[email protected]> | 2018-01-24 08:28:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2018-01-30 07:20:42 -0500 |
commit | b2469c814fbc8f1f19676dd4912717b798df511e (patch) | |
tree | 3549c4c2b061c0405e1d4e9c33ec52104d9608d8 /lib/netdev-notifier-error-inject.c | |
parent | 0fa2c5f954c41e870fe327907c01cb8f7ea8d5a2 (diff) |
media: v4l2-ioctl.c: use check_fmt for enum/g/s/try_fmt
Don't duplicate the buffer type checks in enum/g/s/try_fmt.
The check_fmt function does that already.
It is hard to keep the checks in sync for all these functions and
in fact the check for VBI was wrong in the _fmt functions as it
allowed SDR types as well. This caused a v4l2-compliance failure
for /dev/swradio0 using vivid.
This simplifies the code and keeps the check in one place and
fixes the SDR/VBI bug.
Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Cc: <[email protected]> # for v4.15 and up
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions