projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eabed93
)
[media] coda: lock capture frame size to output frame size when streaming
author
Philipp Zabel
<
[email protected]
>
Fri, 18 Jul 2014 10:22:41 +0000
(07:22 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 21 Aug 2014 20:25:19 +0000
(15:25 -0500)
As soon as the output queue is streaming, let try_fmt on the capture side
only allow the frame size that was set on the output side.
Acked-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Philipp Zabel <
[email protected]
>
Signed-off-by: Kamil Debski <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/platform/coda.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/coda.c
b/drivers/media/platform/coda.c
index 898eb3dbb8da27b30cf37306d3cadca86d18c0f4..f1cf44a5aa3ccb1378640376cf815fa37c08bad8 100644
(file)
--- a/
drivers/media/platform/coda.c
+++ b/
drivers/media/platform/coda.c
@@
-719,6
+719,9
@@
static int coda_try_fmt_vid_cap(struct file *file, void *priv,
f->fmt.pix.pixelformat);
if (!codec)
return -EINVAL;
+
+ f->fmt.pix.width = q_data_src->width;
+ f->fmt.pix.height = q_data_src->height;
} else {
/* Otherwise determine codec by encoded format, if possible */
codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,