From patchwork Thu Oct 4 18:53:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 10626511 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 B0B2314BD for ; Thu, 4 Oct 2018 18:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0E0129548 for ; Thu, 4 Oct 2018 18:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94FF02954B; Thu, 4 Oct 2018 18:55:06 +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 232D229548 for ; Thu, 4 Oct 2018 18:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728314AbeJEBtH (ORCPT ); Thu, 4 Oct 2018 21:49:07 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37403 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728116AbeJEBtH (ORCPT ); Thu, 4 Oct 2018 21:49:07 -0400 Received: by mail-wm1-f66.google.com with SMTP id 185-v6so10094888wmt.2; Thu, 04 Oct 2018 11:54:33 -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=8MaU8NQFxEUE29tP9PrWB4sLEqL2BmIlI4makvn9aq4=; b=sc/LtEY27RUlvpSw/3y23lO7QeZlyKjsDLyJtbD6YC9q11e69qjFFA5Hh0wgbM3w4l brKeBPIOQufGG6P8n+sxjr9i5FPeqhJ7u21BuKkW2jsiHG1bawd+2mtpFws1KEXfPPsb jJ0rHXVIWC9tJG/HJlRxWlS52scStc6sJrbFtCAqKTPZnmOi7COfIuU2M/XVKcv63IWk 1CSFB7Bw07fcbbrUVJKhbbDvKxt6TMFhQKz0E5HztjCcmQfpqoaLZGruu0ypIW/tbT0i L3n7mVY4TJ4+7v/VvLKpoUQNR1hQzIeOz+yttZKfN8rZyW8HjjbLh3apkTbq+N5o4MRy dFOw== 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=8MaU8NQFxEUE29tP9PrWB4sLEqL2BmIlI4makvn9aq4=; b=kR/ocQMb3MEc+lmNYR1FblQOAnbb630azZQ9Kg8RTNiAgURP3826PuMK++n6OeSjhA mOa7SaXSwYhhsQ2R6b94dH7R+RsnuTC41RA4xucnpH1GnEebRceFQ+pjvwdMB6tpOmQB KCwDI0NyurwjSs7MU+i/i0kHPqUJy3rOaNEanTK57mrGNPYupyEyyA8Mw2TDtl73TK7/ CoHkf2/MO12ntZABeQTUegIOSD96ZISg25Ljop8HCPkxNHbg1wJ9oDgU7z7gbl1y4i3j BANtPFZrDYhnXRGxyAxSxxY2KvhLOg0jCWrQGBHNaGglCISnaNJxabo2prhj8s8H90Ap LIJQ== X-Gm-Message-State: ABuFfogOZ99kFv/mDrppsiWrUHDi9+AKjYTKvSTuoGsw31FM8ffUsxv/ i+QcerM0xtyJunJ8/Fp/1cUCQ1WM X-Google-Smtp-Source: ACcGV62PObjuzp7ZQ8PXr+x05/hq2vnnOkvamcKF+fi4SjvMEjriE8mIC2Eb/HjYY+ogVkjPWFN/ag== X-Received: by 2002:a1c:3c4:: with SMTP id 187-v6mr5223630wmd.90.1538679270830; Thu, 04 Oct 2018 11:54:30 -0700 (PDT) Received: from mappy.world.mentorg.com (nat-wv.mentorg.com. [192.94.38.34]) by smtp.gmail.com with ESMTPSA id h78-v6sm8706877wmd.4.2018.10.04.11.54.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 11:54:30 -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 v4 07/11] media: imx-csi: Allow skipping odd chroma rows for YVU420 Date: Thu, 4 Oct 2018 11:53:57 -0700 Message-Id: <20181004185401.15751-8-slongerbeam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181004185401.15751-1-slongerbeam@gmail.com> References: <20181004185401.15751-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 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 4b075bc949de..6dd53a8e35d2 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) ?