[media] stk1160: Fix s_fmt and try_fmt implementation
authorEzequiel Garcia <elezegarcia@gmail.com>
Mon, 20 Aug 2012 00:23:45 +0000 (21:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 25 Sep 2012 13:53:34 +0000 (10:53 -0300)
commitc6b69c6c58288587c33efb43ca6e19f1c80b2757
treeac4e7f87268f31f1261749bcaf07afbe6ba2fa14
parent065741840b1a58e94d2304b283286b355cbbc616
[media] stk1160: Fix s_fmt and try_fmt implementation

The driver was expecting to get a valid pixelformat on s_fmt and try_fmt.
This is wrong, since the user may pass a bitmask and expect the driver
to change it, returning a valid (fourcc) pixelformat.
This problem was spotted by v4l2-compliance.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stk1160/stk1160-v4l.c