From patchwork Wed Jul 24 14:57:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2832879 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 806F4C0319 for ; Wed, 24 Jul 2013 14:57:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5ABF7203E5 for ; Wed, 24 Jul 2013 14:57:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC4CF203FF for ; Wed, 24 Jul 2013 14:57:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753563Ab3GXO5p (ORCPT ); Wed, 24 Jul 2013 10:57:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35883 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753548Ab3GXO5n (ORCPT ); Wed, 24 Jul 2013 10:57:43 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQG009AM47KQN80@mailout2.samsung.com> for linux-media@vger.kernel.org; Wed, 24 Jul 2013 23:57:41 +0900 (KST) X-AuditID: cbfee61b-b7efe6d000007b11-74-51efeb65b478 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B3.26.31505.56BEFE15; Wed, 24 Jul 2013 23:57:41 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQG008KO47Y2S40@mmp1.samsung.com>; Wed, 24 Jul 2013 23:57:41 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: Andrzej Hajda , Kyungmin Park , Sylwester Nawrocki Subject: [PATCH] V4L: s5c73m3: Add format propagation for TRY formats Date: Wed, 24 Jul 2013 16:57:32 +0200 Message-id: <1374677852-2006-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNJMWRmVeSWpSXmKPExsVy+t9jAd3U1+8DDebfVLa4te4cq8XZpjfs Fj0btrJaHH7TzurA4tG3ZRWjx+dNcgFMUVw2Kak5mWWpRfp2CVwZndP5Cv5zVMxf8I21gfEk excjJ4eEgIlE/71OFghbTOLCvfVsILaQwCJGiXmfSroYuYDsDiaJSRfbWUESbAKGEr1H+xhB bBEBeYknvTfAGpgFmhklFh4OA7GFBVwllh7ZAzaURUBVYsHdf2A2L1C88ddSoDkcQMsUJOZM spnAyL2AkWEVo2hqQXJBcVJ6rpFecWJucWleul5yfu4mRrCXn0nvYFzVYHGIUYCDUYmHt2DW u0Ah1sSy4srcQ4wSHMxKIrxvH7wPFOJNSaysSi3Kjy8qzUktPsQozcGiJM57sNU6UEggPbEk NTs1tSC1CCbLxMEp1cAYKbpjH3PkvLpfCtv82jw/HfdRZciU1Fq3tcO7Iiv1UMd7+WPiMu+j /wtb71x+YJGSMtf1xVFbZmVZpVbPbXsQbaLTJ7P11XzvBCnb7cXmAe9bt6dNtsvbc+3h+py/ /zyZCqPXVv6b8PTuEomn3mfy1/d+8At7FmRcHBVVscZaLnRzgOudJ3eUWIozEg21mIuKEwEY wOt87gEAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 From: Andrzej Hajda Resolution set on ISP pad of S5C73M3-OIF subdev should be propagated to source pad for TRY and ACTIVE formats. The patch adds missing propagation for TRY format. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park Signed-off-by: Sylwester Nawrocki --- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-core.c b/drivers/media/i2c/s5c73m3/s5c73m3-core.c index 825ea86..b76ec0e 100644 --- a/drivers/media/i2c/s5c73m3/s5c73m3-core.c +++ b/drivers/media/i2c/s5c73m3/s5c73m3-core.c @@ -1111,6 +1111,11 @@ static int s5c73m3_oif_set_fmt(struct v4l2_subdev *sd, if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { mf = v4l2_subdev_get_try_format(fh, fmt->pad); *mf = fmt->format; + if (fmt->pad == OIF_ISP_PAD) { + mf = v4l2_subdev_get_try_format(fh, OIF_SOURCE_PAD); + mf->width = fmt->format.width; + mf->height = fmt->format.height; + } } else { switch (fmt->pad) { case OIF_ISP_PAD: