From patchwork Wed Aug 3 18:03:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9261693 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 D31CE60754 for ; Wed, 3 Aug 2016 18:05:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C898828236 for ; Wed, 3 Aug 2016 18:05:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD6D928306; Wed, 3 Aug 2016 18:05:23 +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 322C228236 for ; Wed, 3 Aug 2016 18:05:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756858AbcHCSE7 (ORCPT ); Wed, 3 Aug 2016 14:04:59 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33964 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbcHCSEL (ORCPT ); Wed, 3 Aug 2016 14:04:11 -0400 Received: by mail-pa0-f66.google.com with SMTP id hh10so14464364pac.1; Wed, 03 Aug 2016 11:04:06 -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=n5Y5WnWqwJDtebuH64pWHvzsxrydbALia4/Dlb+08sA=; b=Xkp+eTkqKSlJD+nYA2+ZxOMCasQCXMxakD5zelVOEtmBBn+Ava85263HyLpsiLJ3i2 6fH+xr9Iy/5lpDlfbYn0i91yqgaMcyC5TkrevUexm4z2GDR4Xm85IZZVhNJWP9ViSRrL 0+ubT9ocmIsfwSj+oRTGuaJs85jhMydhSEyHcvuwpO40W9Eh2K63JNTKwaxL3hCgCd4E HeXwGISugLo+7MtAZ7uKdhhQpDlwxNRRKuSsxaf4akWWb0v4UEY2ZMCQCDSVxRHX/5+P 958JTgsg2r7Zij6+We1kk8+Vts9jLCLxfq4tSKZUhG7xdt/0IYx59wi+SrnIXpvPnT6T FinQ== 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=n5Y5WnWqwJDtebuH64pWHvzsxrydbALia4/Dlb+08sA=; b=i5CPh6XncBe214Ks5v6tGnGLx3sYfDu5YtyydIKIUAQxm5V9mQ5BT1EhNeQxSE3s3w qZdO0fnWM0hv7ZpDFNpgs0FkCtDnXVFiWg7Ucz+OSTtqjFkGGD4yKr75nSAKFFv04IFL uXFpVM53Q/aNu9yFM6b5kI3blosJ8+SnuGskUgdBNrklpjjhyx7Bf75xM7lGTZ564Xdy wJpnqHAgOr3wF4yqugqj+1113OgMTDT5qmw1dOUqeSfPmxNNeiw8GrrRhlPcmBjDv2yK C+/+Ke7ssaH/ZxFH/U35odC8Yfp2Ft4nWCqo/Gf7XHlVaY/FA78CQqs2uK/UH65fO9Kc emhA== X-Gm-Message-State: AEkoouumwi4nl4gbnZ/xDRHedk40RkLfyoRZLDl9cEOrjdPhn5NXiITu2Cym1P3juu8FCQ== X-Received: by 10.66.88.131 with SMTP id bg3mr119428050pab.43.1470247445479; Wed, 03 Aug 2016 11:04:05 -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 w64sm14219878pfb.93.2016.08.03.11.04.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 11:04:04 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: lars@metafoo.de Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam Subject: [PATCH v4 6/8] media: adv7180: change mbus format to UYVY Date: Wed, 3 Aug 2016 11:03:48 -0700 Message-Id: <1470247430-11168-7-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470247430-11168-1-git-send-email-steve_longerbeam@mentor.com> References: <1470247430-11168-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 --- v4: no changes v3: no changes v2: no changes --- 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 9705e24..abdc519 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;