mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
[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 <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
bd50d999d4
commit
43defb1182
@@ -220,8 +220,8 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1);
|
||||
cap->bus_info[0] = 0;
|
||||
cap->version = KERNEL_VERSION(1, 0, 0);
|
||||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT
|
||||
| V4L2_CAP_STREAMING;
|
||||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE_MPLANE |
|
||||
V4L2_CAP_VIDEO_OUTPUT_MPLANE | V4L2_CAP_STREAMING;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -785,8 +785,8 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
strncpy(cap->card, dev->plat_dev->name, sizeof(cap->card) - 1);
|
||||
cap->bus_info[0] = 0;
|
||||
cap->version = KERNEL_VERSION(1, 0, 0);
|
||||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE
|
||||
| V4L2_CAP_VIDEO_OUTPUT
|
||||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE_MPLANE
|
||||
| V4L2_CAP_VIDEO_OUTPUT_MPLANE
|
||||
| V4L2_CAP_STREAMING;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user