From patchwork Wed Jan 9 18:16:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 10754765 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 D426091E for ; Wed, 9 Jan 2019 18:17:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C834F2928B for ; Wed, 9 Jan 2019 18:17:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC88329296; Wed, 9 Jan 2019 18:17:04 +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 68DEC2928B for ; Wed, 9 Jan 2019 18:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbfAISRD (ORCPT ); Wed, 9 Jan 2019 13:17:03 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42507 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbfAISRC (ORCPT ); Wed, 9 Jan 2019 13:17:02 -0500 Received: by mail-pf1-f195.google.com with SMTP id 64so4019791pfr.9; Wed, 09 Jan 2019 10:17:01 -0800 (PST) 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=rYSzVI0OvbJN9zcjKQFFiU9YJ6PIbqf35eYJ6lEUQGw=; b=UfzmuUr2B98angPyQObuqq8DgESV3qiCfexOo0dsGjEIvP4/1xjuolow+pEEYAp2R6 hvV6BUxy5OfcepDpBhAFyCVNQCYanfu1h64x41TaIfEOcP1ndzYRKI/jGlicJJXL1OB9 i35Quxr1/7B4yjCXKG2OfX/gd17v7O4G/eWfxNDWdWKDmsKujpb8C5IJDuQsunIJtcj0 gptSeFE1/1ef2fS9NcdO5kbVZo0eVQcDyoMm88V3nnTBcRqvc9AqdLTkx96Um3RPPTtd sbehGR276LM4jxLdXyi0o/uCjo80fvUZMWTKkdtwDZJ3VnUCaWi5P+ExHa0P2RU3m/sk zbGg== 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=rYSzVI0OvbJN9zcjKQFFiU9YJ6PIbqf35eYJ6lEUQGw=; b=Uw0mRLTVzkWLSzXlFikFvFueTbvS2WmWBStFet72W0p9mIrc+BosLx1YVxJ+P6RNTK QOBZKCRaJflHnRs0WXEbYu6CPyGE5vV11bKjg1COTpMdYU8W+54PX/4wFMQFncb45TDJ gNzBW+aVCZ1272HTxFTwwYcm32nl7eT9yl7XM5d9xZ1iiQ4BMm9Oxv5RCl+bSQ8YDSgs j0zeugmhjkuN/GSzsU1JYWjEiawGK9U566KT/u4apmLEiwiMTqGWzwW/fQV5jaUV/KPK Yvqvm4cJtWX3zrVMQeMWzz7IaJP8xoW3XxQ2hAyG3fm/04uDd+Jn5tujeVnbdrNqMKVc 6bIw== X-Gm-Message-State: AJcUukcMQbWlUOSqx8d5men5SPHu+podYzHbpdER7XhIHK7usbaLrgxe bgbMQwx5RTxAchCE/YNyz+q0D3rp X-Google-Smtp-Source: ALg8bN6SukM7ONhMQLbZr1hNXVTdtKPYiD/o4hr8CSxQnpBOPq5V9l0+7LeR/vc6+UX+T7hfNlpGyw== X-Received: by 2002:a63:680a:: with SMTP id d10mr6428434pgc.396.1547057820927; Wed, 09 Jan 2019 10:17:00 -0800 (PST) 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 h19sm97030004pfn.114.2019.01.09.10.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 10:17:00 -0800 (PST) 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 v7 07/11] media: imx-csi: Allow skipping odd chroma rows for YVU420 Date: Wed, 9 Jan 2019 10:16:37 -0800 Message-Id: <20190109181642.19378-8-slongerbeam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190109181642.19378-1-slongerbeam@gmail.com> References: <20190109181642.19378-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 604d0bd24389..6f1e11b8a7cb 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) ?