From patchwork Tue Nov 19 14:27:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 3202501 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9A6B99F817 for ; Tue, 19 Nov 2013 14:28:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F73220306 for ; Tue, 19 Nov 2013 14:28:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B8B420121 for ; Tue, 19 Nov 2013 14:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004Ab3KSO1z (ORCPT ); Tue, 19 Nov 2013 09:27:55 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:55610 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752726Ab3KSO1w (ORCPT ); Tue, 19 Nov 2013 09:27:52 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MWI00M2MLI2NH40@mailout3.samsung.com> for linux-media@vger.kernel.org; Tue, 19 Nov 2013 23:27:51 +0900 (KST) X-AuditID: cbfee61a-b7f836d0000025d7-c1-528b7567438e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 67.B8.09687.7657B825; Tue, 19 Nov 2013 23:27:51 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MWI00IBKLHFEGB0@mmp1.samsung.com>; Tue, 19 Nov 2013 23:27:51 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: kyungmin.park@samsung.com, s.nawrocki@samsung.com, sw0312.kim@samsung.com, Jacek Anaszewski Subject: [PATCH 08/16] s5p-jpeg: Synchronize cached controls with V4L2 core Date: Tue, 19 Nov 2013 15:27:00 +0100 Message-id: <1384871228-6648-9-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1384871228-6648-1-git-send-email-j.anaszewski@samsung.com> References: <1384871228-6648-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJJMWRmVeSWpSXmKPExsVy+t9jAd300u4gg/tv9S16rz5ntDjb9Ibd omfDVlaLw2/aWS1mTH7J5sDq0bdlFaPH501yAUxRXDYpqTmZZalF+nYJXBlLru9nLzjDVtF4 8RVzA+Nl1i5GTg4JAROJxtt72CBsMYkL99YD2VwcQgKLGCVmzG9kh3DamSRad98Dq2ITMJT4 +eI1E4gtIiAv8aT3BlicWaBGYsrWG+wgtrCAt8S0Hz1AcQ4OFgFViZ0/vEDCvALuEueeXGQE CUsIKEjMmWQDEuYU8JCYsnA7WKcQUMn5jSfZJzDyLmBkWMUomlqQXFCclJ5rqFecmFtcmpeu l5yfu4kRHCDPpHYwrmywOMQowMGoxMM7wb0rSIg1say4MvcQowQHs5IIb2N+d5AQb0piZVVq UX58UWlOavEhRmkOFiVx3gOt1oFCAumJJanZqakFqUUwWSYOTqkGxuOmyit+avd1vYkN3cq1 1+IaN4/87zlndke5GRfNmCZheODFVXPFzfvdfzrMv5nyZBv/Jbc7y4xTJwjNrb0XE/eJN7lu xaz7jS4KHNIlmw7I5MUrVhzNl3ptl9ykkxO18uaX0OOLAxqkuSYX/ZF6vj42x++IQ/SpIrO0 8o5D7hn1s3bstq38r8RSnJFoqMVcVJwIACRU9GgMAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds proper initialization of the in-driver cached state of JPEG controls with V4L2 core. Signed-off-by: Jacek Anaszewski Signed-off-by: Kyungmin Park --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 650c4d3..b82e3fa 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -890,6 +890,9 @@ static int s5p_jpeg_controls_create(struct s5p_jpeg_ctx *ctx) if (ctx->mode == S5P_JPEG_DECODE) ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE | V4L2_CTRL_FLAG_READ_ONLY; + + v4l2_ctrl_handler_setup(&ctx->ctrl_handler); + return 0; }