Message ID | 20200303123446.20095-4-xia.jiang@mediatek.com |
---|---|
State | New |
Headers | show |
Series | [v7,01/11] media: platform: Improve subscribe event flow for bug fixing | expand |
diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c index da0dae4b0fc9..fb2c8d026580 100644 --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c @@ -492,8 +492,8 @@ static int mtk_jpeg_s_selection(struct file *file, void *priv, case V4L2_SEL_TGT_COMPOSE: s->r.left = 0; s->r.top = 0; - s->r.width = ctx->out_q.w; - s->r.height = ctx->out_q.h; + ctx->out_q.w = s->r.width; + ctx->out_q.h = s->r.height; break; default: return -EINVAL;
Get correct compose value in mtk_jpeg_s_selection function. Signed-off-by: Xia Jiang <xia.jiang@mediatek.com> --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0