msm: vidc: Initialize device_caps before device registration
Initialize device_caps with device capabilities before video devices are registered, as required by V4L2 framework. Change-Id: I9fc037ae65d352b15d78eee979df30a24137dea8 Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
This commit is contained in:
parent
2c2d48f5b6
commit
0a49ec7e24
@ -421,6 +421,9 @@ static int msm_vidc_register_video_device(enum session_type sess_type,
|
||||
core->vdev[sess_type].vdev.vfl_dir = VFL_DIR_M2M;
|
||||
core->vdev[sess_type].type = sess_type;
|
||||
core->vdev[sess_type].vdev.v4l2_dev = &core->v4l2_dev;
|
||||
core->vdev[sess_type].vdev.device_caps =
|
||||
V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE |
|
||||
V4L2_CAP_STREAMING;
|
||||
rc = video_register_device(&core->vdev[sess_type].vdev,
|
||||
VFL_TYPE_GRABBER, nr);
|
||||
if (rc) {
|
||||
|
Loading…
Reference in New Issue
Block a user