Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l: s5p-mfc: fix reported capabilities

MFC uses the multi-plane API, but it reported single-plane
when querying capabilities.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Kamil Debski and committed by
Mauro Carvalho Chehab
43defb11 bd50d999

+4 -4
+2 -2
drivers/media/video/s5p-mfc/s5p_mfc_dec.c
··· 220 220 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); 221 221 cap->bus_info[0] = 0; 222 222 cap->version = KERNEL_VERSION(1, 0, 0); 223 - cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT 224 - | V4L2_CAP_STREAMING; 223 + cap->capabilities = V4L2_CAP_VIDEO_CAPTURE_MPLANE | 224 + V4L2_CAP_VIDEO_OUTPUT_MPLANE | V4L2_CAP_STREAMING; 225 225 return 0; 226 226 } 227 227
+2 -2
drivers/media/video/s5p-mfc/s5p_mfc_enc.c
··· 785 785 strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1); 786 786 cap->bus_info[0] = 0; 787 787 cap->version = KERNEL_VERSION(1, 0, 0); 788 - cap->capabilities = V4L2_CAP_VIDEO_CAPTURE 789 - | V4L2_CAP_VIDEO_OUTPUT 788 + cap->capabilities = V4L2_CAP_VIDEO_CAPTURE_MPLANE 789 + | V4L2_CAP_VIDEO_OUTPUT_MPLANE 790 790 | V4L2_CAP_STREAMING; 791 791 return 0; 792 792 }