From patchwork Wed Oct 17 00:00:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 10644443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C894157A for ; Wed, 17 Oct 2018 00:01:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D8D22A71B for ; Wed, 17 Oct 2018 00:01:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10CC32A76D; Wed, 17 Oct 2018 00:01:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B440B2A71B for ; Wed, 17 Oct 2018 00:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbeJQHxn (ORCPT ); Wed, 17 Oct 2018 03:53:43 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37736 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbeJQHxl (ORCPT ); Wed, 17 Oct 2018 03:53:41 -0400 Received: by mail-pg1-f195.google.com with SMTP id c10-v6so11607060pgq.4; Tue, 16 Oct 2018 17:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vugOjOb9bU/wU1aCXpDs/uKcyEbw9sNMwAJBqgpFIwY=; b=ZCc0qAIgHERMROzxNRSvwS//eehcsZEfM0Scg2RNKIJHP6U/+bzjzNvkBALnJHpSQv mO1H0cIJ1fhMTzB/RK9Q3nJVVhoYECEhTRgBeMUl13UBBgi3XTj1GsbOLFi9aZlFAQsB Ab4pP/5bPJwAEz3UMF5Z7RWENgCcOE1BknYpJrhsuYanyTh0typA9ii9QErtj898WwWf 08VLhGVRDhUwspcAciWPvaNfa0+3eyjgN2gootGE7TVY99g/idSw9m/EN364AXM7FguZ bOdnbboXgBOS9ju6PpniEronLelIs9UIYmgVcLR6uivza2glUwOmrmZPr2EWyH0L2SYa 6gCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vugOjOb9bU/wU1aCXpDs/uKcyEbw9sNMwAJBqgpFIwY=; b=t0HMFtotHylwAj3LDrZVzlnDFZNNQL0GwtCUlr/rdqjQa71aW6e00Qt9ughXTyVhxT RfY2JwXpUr6d/QCJvlA68K99QB1mJBwr6Y4me7z4jX5KAO8GDTixvrICHxfHLgHkds53 b6bWq3XRHe/pzBZbNRJuwVXCf/AnCgMqlqjZLopRy1t2jizLtrj1PwlYouRtWIajCB3s eSR8hUWLXhd62CgKQ7l4ZwZ9PQl2dDA//G6oPPAGe2A05Tpa23fuACklXRtwEMOCIeAx 0emMczp+qAsv4nTjGFb9uHcqS8bd+bPArlp44cpkkXQBe6ZYIZYRtYrPTO4CTminIOkJ KNmQ== X-Gm-Message-State: ABuFfojX51vEU8ZTEgLm4qXX4wk/uulzwNkOBeZD2u4TkfLBtyhHNBP0 yRP6Zg0SkVDLvPaYvTX//SJTeai3 X-Google-Smtp-Source: ACcGV63xKqO1mBLDg9+EN8yKNjppG2LgVbEV317v29TOjTxO/d7+MXD5LLmDdxzNhEemlc3a6UlOyA== X-Received: by 2002:a63:e05:: with SMTP id d5-v6mr22051194pgl.272.1539734449622; Tue, 16 Oct 2018 17:00:49 -0700 (PDT) Received: from majic.sklembedded.com (c-98-210-181-167.hsd1.ca.comcast.net. [98.210.181.167]) by smtp.googlemail.com with ESMTPSA id o12-v6sm17033117pgv.7.2018.10.16.17.00.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 17:00:48 -0700 (PDT) From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v5 08/12] media: imx-csi: Allow skipping odd chroma rows for YVU420 Date: Tue, 16 Oct 2018 17:00:23 -0700 Message-Id: <20181017000027.23696-9-slongerbeam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181017000027.23696-1-slongerbeam@gmail.com> References: <20181017000027.23696-1-slongerbeam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Skip writing U/V components to odd rows for YVU420 in addition to YUV420 and NV12. Signed-off-by: Steve Longerbeam Reviewed-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c index 7e648fc9626a..c9110dd39a49 100644 --- a/drivers/staging/media/imx/imx-media-csi.c +++ b/drivers/staging/media/imx/imx-media-csi.c @@ -452,6 +452,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv) passthrough_bits = 16; break; case V4L2_PIX_FMT_YUV420: + case V4L2_PIX_FMT_YVU420: case V4L2_PIX_FMT_NV12: burst_size = (image.pix.width & 0x3f) ? ((image.pix.width & 0x1f) ?