On 07/17/2014 06:05 PM, Philipp Zabel wrote: > 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. > > Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> Acked-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> Regards, Hans > --- > drivers/media/platform/coda.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c > index 3d57986..6b659c8 100644 > --- a/drivers/media/platform/coda.c > +++ b/drivers/media/platform/coda.c > @@ -721,6 +721,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, > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html