[media] s5p-tv: Report only multi-plane capabilities in vidioc_querycap
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 24 Sep 2012 09:03:04 +0000 (06:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Oct 2012 17:04:19 +0000 (14:04 -0300)
commit7208507ed9dc39a7ac3bd2c64440c461762d8174
treeeee435bdfcca9b3cd3afb1e1de326dfee205f051
parent81c9bcfbefec212548058eeac612d98dc9290d55
[media] s5p-tv: Report only multi-plane capabilities in vidioc_querycap

The mixer video node supports only multi-planar API so the driver
should not be setting V4L2_CAP_VIDEO_OUTPUT flags. Fix this and
also switch to device_caps. Additionally fix the VIDIOC_ENUM_FMT
ioctl handler which now works for V4L2_BUF_TYPE_CAPTURE, rather
than expected V4L2_BUF_TYPE_CAPTURE_MPLANE.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-tv/mixer_video.c