Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3804671ybi; Mon, 29 Jul 2019 12:59:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyjayLG3hNMQJy2vYZQ4hdlDYWRkKPxGmBpdzPN8IDzMX8HvP9F4PrGhBnC4e9jFzCF8iF X-Received: by 2002:a63:2026:: with SMTP id g38mr99958071pgg.172.1564430347659; Mon, 29 Jul 2019 12:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430347; cv=none; d=google.com; s=arc-20160816; b=INw1gHt5N14DYkY/UHUUNRmXtd/Rryvit8riWatD1Q5q+2OWdZ4CkxFXYnSnQ48k15 YRxYOz1HsHyoKuMMc87ZmqGfHa2j4JImNehzjPKyjP4N7qsPi//oB2SGlQ4AVccGmHtJ Ms3P5Ax1/4xToMPhULkOsbS0jpGjXyMUaVBoyHFZtxgJE0G/eQzFJVJ9bEujVRxxYWx3 wXJbANMUX1oKO24ZzSXBS1aUtlZso7e/NdXfYthE/mn2gpRiPJ4wU3AUHzvziGaDtBzD kps03/oY3+VPuSzbqmk5H2OMERf2pX7TZXquIBdP8VnqvVCn+UIfEz/OHMQ8At5Eax6K NgjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TXrFM00JS1w0iB1bCkFjAixk867mL6/4dTk/Zz4XcXw=; b=gYQPkM92LkGU8t7694EWDPritvN7xIXvnmDfQCafKAr6/tG1tIoty2nsbXunC8Jean 0dwaPRrZCU8asUuvmZOLhdBhel0JrlzThaK4rlCfc+kY79no8549WDQtDvdyh/autx1m h15FzOoizIXZCykPfeTJHCqpHMCDua58hx8mXJO8GMJVeoR+CyEF78QqPfq3wdkmuUCM e0DTsDl5W3JyBXTDN0JnyPHwndz4pid/qSPaQelR9bGWsOvFQq62aS9plF0pNmHjIxn5 80teXPQ1yxoptiGxI5hScfhA69re5bdxCXV2ZUkhRbVGfSxR9QB6GTVNnrEpbr/FT94+ 8+tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K9EiD+MF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si29349400pfj.93.2019.07.29.12.58.52; Mon, 29 Jul 2019 12:59:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K9EiD+MF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390902AbfG2TyT (ORCPT + 99 others); Mon, 29 Jul 2019 15:54:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:46678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390967AbfG2TyE (ORCPT ); Mon, 29 Jul 2019 15:54:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85BB42054F; Mon, 29 Jul 2019 19:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564430044; bh=uUTjCQoqKEAfufn+gvf1uDv6vHmTzHAe+UG4J0N2pI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K9EiD+MFUSlSh95gjN77WG9wTZDVo9tNj7o/ucV/uF+7dc9+BYrLd0ii5hykP9IRM NsY1AWpPlo9/cStiH5un9igywwGe/iRtxbQ8ukoOUUMFPXCQrT+h0kCG86n0LRyxyM 6yOKKpXuGpR5MFyh+piEDKa6zszYj0jJP/DVUBSU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Laurent Pinchart , Kieran Bingham , Mauro Carvalho Chehab Subject: [PATCH 5.2 178/215] media: videodev2.h: change V4L2_PIX_FMT_BGRA444 define: fourcc was already in use Date: Mon, 29 Jul 2019 21:22:54 +0200 Message-Id: <20190729190810.865490616@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Verkuil commit 22be8233b34f4f468934c5fefcbe6151766fb8f2 upstream. The V4L2_PIX_FMT_BGRA444 define clashed with the pre-existing V4L2_PIX_FMT_SGRBG12 which strangely enough used the same fourcc, even though that fourcc made no sense for a Bayer format. In any case, you can't have duplicates, so change the fourcc of V4L2_PIX_FMT_BGRA444. Signed-off-by: Hans Verkuil Cc: # for v5.2 and up Fixes: 6c84f9b1d2900 ("media: v4l: Add definitions for missing 16-bit RGB4444 formats") Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 9d9705ceda76..2427bc4d8eba 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -518,7 +518,13 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_RGBX444 v4l2_fourcc('R', 'X', '1', '2') /* 16 rrrrgggg bbbbxxxx */ #define V4L2_PIX_FMT_ABGR444 v4l2_fourcc('A', 'B', '1', '2') /* 16 aaaabbbb ggggrrrr */ #define V4L2_PIX_FMT_XBGR444 v4l2_fourcc('X', 'B', '1', '2') /* 16 xxxxbbbb ggggrrrr */ -#define V4L2_PIX_FMT_BGRA444 v4l2_fourcc('B', 'A', '1', '2') /* 16 bbbbgggg rrrraaaa */ + +/* + * Originally this had 'BA12' as fourcc, but this clashed with the older + * V4L2_PIX_FMT_SGRBG12 which inexplicably used that same fourcc. + * So use 'GA12' instead for V4L2_PIX_FMT_BGRA444. + */ +#define V4L2_PIX_FMT_BGRA444 v4l2_fourcc('G', 'A', '1', '2') /* 16 bbbbgggg rrrraaaa */ #define V4L2_PIX_FMT_BGRX444 v4l2_fourcc('B', 'X', '1', '2') /* 16 bbbbgggg rrrrxxxx */ #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R', 'G', 'B', 'O') /* 16 RGB-5-5-5 */ #define V4L2_PIX_FMT_ARGB555 v4l2_fourcc('A', 'R', '1', '5') /* 16 ARGB-1-5-5-5 */