From patchwork Wed Jul 20 00:03:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9238551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C997602F0 for ; Wed, 20 Jul 2016 00:06:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2ED782624D for ; Wed, 20 Jul 2016 00:06:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23356277D9; Wed, 20 Jul 2016 00:06:34 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 515342624D for ; Wed, 20 Jul 2016 00:06:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752994AbcGTAFm (ORCPT ); Tue, 19 Jul 2016 20:05:42 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36169 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbcGTAEF (ORCPT ); Tue, 19 Jul 2016 20:04:05 -0400 Received: by mail-pf0-f193.google.com with SMTP id y134so2248129pfg.3; Tue, 19 Jul 2016 17:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6BvNe6/LtF/BTKwdWgz+fyjpTb9Pf7ysHVrPSF5Okt0=; b=jRIj/o9i+rEXMs5lQF26eraKPd8tJVxLVjUNpdaPZO0fa4LxgdMMSSPQjirRvbricq G3jGu6qDkpQpWvB0IpmZyrXZYVcSqImP08lB7GEjB2pHxEAota7iWmqmafGBFSsA88Qp lN+xEbF64cBusmS8nUwEHWIuJzUiPNyzh1dswKFdxPoD1ByupJxJvm++FBMKPcnroYMp WqVCmD9Cz15ydhIEy3oQYQ0fl5osaOXBuTT9HfL0dkiGKkCvxX9jkqfPPUfl0cZFb239 HZiSqSjXPWjHf07LUjOJaRyI7va2OeyRWvVGLfkapltHcpgalt0ZFq6TGb6zCVteqH9k ETGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6BvNe6/LtF/BTKwdWgz+fyjpTb9Pf7ysHVrPSF5Okt0=; b=Dj460mNVOEO1MgF70hGzIRGRHjQ8iJOe8Jl82oXVuPgZfg8ZltSqD+EFqkxsKQlkdT oHs4bBWNMC7/aCoWH3jkajtkIL+ZvOBPDYaOjkpdVbXDxcKtUuHAWZ5FQJ6L5dHmuGmk SPr+2hSUs+FPEe2OOff0AIpErvrni8B+mTPjOgOF8qUjNC17XsNvvvKY2KuNBujH/hV3 QBdoTjfGPcWHgO+99L0Q1qFaXe9Txw8vR0d8OyE5/ficPS76HN70VEfHNITfZqaHkiA9 ninkKHtWM1VcmgLH2eEKblrlyczIOs9pDV5LGV5Gpt+nzFIvZC7Qc5/HrSrtcAuEj2Nl C7sQ== X-Gm-Message-State: ALyK8tL9amPlTIuiC84XiGHrSZ/korPJJde4ARnKfLygkXfk8mc/LU98F9U+R7aRmZAgCg== X-Received: by 10.98.201.138 with SMTP id l10mr24461571pfk.77.1468973044398; Tue, 19 Jul 2016 17:04:04 -0700 (PDT) Received: from mothership.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id ty6sm7107742pac.18.2016.07.19.17.04.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 17:04:03 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: lars@metafoo.de Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam Subject: [PATCH v2 07/10] media: adv7180: change mbus format to UYVY Date: Tue, 19 Jul 2016 17:03:34 -0700 Message-Id: <1468973017-17647-8-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468973017-17647-1-git-send-email-steve_longerbeam@mentor.com> References: <1467846004-12731-1-git-send-email-steve_longerbeam@mentor.com> <1468973017-17647-1-git-send-email-steve_longerbeam@mentor.com> MIME-Version: 1.0 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 Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. Signed-off-by: Steve Longerbeam Tested-by: Tim Harvey Acked-by: Tim Harvey Acked-by: Lars-Peter Clausen Acked-by: Niklas Söderlund --- drivers/media/i2c/adv7180.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 8259549..0f0568c 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -636,7 +636,7 @@ static int adv7180_enum_mbus_code(struct v4l2_subdev *sd, if (code->index != 0) return -EINVAL; - code->code = MEDIA_BUS_FMT_YUYV8_2X8; + code->code = MEDIA_BUS_FMT_UYVY8_2X8; return 0; } @@ -646,7 +646,7 @@ static int adv7180_mbus_fmt(struct v4l2_subdev *sd, { struct adv7180_state *state = to_state(sd); - fmt->code = MEDIA_BUS_FMT_YUYV8_2X8; + fmt->code = MEDIA_BUS_FMT_UYVY8_2X8; fmt->colorspace = V4L2_COLORSPACE_SMPTE170M; fmt->width = 720; fmt->height = state->curr_norm & V4L2_STD_525_60 ? 480 : 576;