Commit ac7dabf1 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Mauro Carvalho Chehab

media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE

It is likely that it should be UVC_METADATA_BUF_SIZE instead.
Fix it and use it.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 8c279e93
...@@ -51,7 +51,7 @@ static int uvc_meta_v4l2_get_format(struct file *file, void *fh, ...@@ -51,7 +51,7 @@ static int uvc_meta_v4l2_get_format(struct file *file, void *fh,
memset(fmt, 0, sizeof(*fmt)); memset(fmt, 0, sizeof(*fmt));
fmt->dataformat = stream->meta.format; fmt->dataformat = stream->meta.format;
fmt->buffersize = UVC_METATADA_BUF_SIZE; fmt->buffersize = UVC_METADATA_BUF_SIZE;
return 0; return 0;
} }
...@@ -72,7 +72,7 @@ static int uvc_meta_v4l2_try_format(struct file *file, void *fh, ...@@ -72,7 +72,7 @@ static int uvc_meta_v4l2_try_format(struct file *file, void *fh,
fmt->dataformat = fmeta == dev->info->meta_format fmt->dataformat = fmeta == dev->info->meta_format
? fmeta : V4L2_META_FMT_UVC; ? fmeta : V4L2_META_FMT_UVC;
fmt->buffersize = UVC_METATADA_BUF_SIZE; fmt->buffersize = UVC_METADATA_BUF_SIZE;
return 0; return 0;
} }
......
...@@ -79,7 +79,7 @@ static int uvc_queue_setup(struct vb2_queue *vq, ...@@ -79,7 +79,7 @@ static int uvc_queue_setup(struct vb2_queue *vq,
switch (vq->type) { switch (vq->type) {
case V4L2_BUF_TYPE_META_CAPTURE: case V4L2_BUF_TYPE_META_CAPTURE:
size = UVC_METATADA_BUF_SIZE; size = UVC_METADATA_BUF_SIZE;
break; break;
default: default:
......
...@@ -491,7 +491,7 @@ struct uvc_stats_stream { ...@@ -491,7 +491,7 @@ struct uvc_stats_stream {
unsigned int max_sof; /* Maximum STC.SOF value */ unsigned int max_sof; /* Maximum STC.SOF value */
}; };
#define UVC_METATADA_BUF_SIZE 1024 #define UVC_METADATA_BUF_SIZE 1024
/** /**
* struct uvc_copy_op: Context structure to schedule asynchronous memcpy * struct uvc_copy_op: Context structure to schedule asynchronous memcpy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment