diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2012-08-01 10:32:33 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-12 06:17:01 +0400 |
commit | 00424c7ec5d39044df1ce79d48ff3022838aad44 (patch) | |
tree | 4585a20083e81d44d916ccb8cd1efd3226952664 /drivers/media/video | |
parent | 3273781068268c404ea239dde4f6c246686dfa00 (diff) | |
download | linux-00424c7ec5d39044df1ce79d48ff3022838aad44.tar.xz |
[media] mem2mem_testdev: fix querycap regression
Trival but important patch.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/mem2mem_testdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c index 7efe9ad7acc7..0b91a5cd38eb 100644 --- a/drivers/media/video/mem2mem_testdev.c +++ b/drivers/media/video/mem2mem_testdev.c @@ -431,7 +431,7 @@ static int vidioc_querycap(struct file *file, void *priv, strncpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver) - 1); strncpy(cap->card, MEM2MEM_NAME, sizeof(cap->card) - 1); strlcpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info)); - cap->capabilities = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; + cap->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; return 0; } |