From patchwork Mon Jul 23 11:02:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 142583 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5911127ljj; Mon, 23 Jul 2018 04:05:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcrdTIK9Hp/n0T+HOvH5f8vfVtlql0Ml3zlWbxX2YGgwhSZEi5OuwA6UW/69aa/dOHpbiZV X-Received: by 2002:a63:4106:: with SMTP id o6-v6mr11923476pga.453.1532343945034; Mon, 23 Jul 2018 04:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532343945; cv=none; d=google.com; s=arc-20160816; b=bK1JGJLJ7WB2Kbr2rB34dUWVSBEgw9B/kDNDWCGwXkLBm3vcskUqBc9SnISNuGhm4n x5POn9RDn+VJWSjICUT6PPLLYhMiN+K50wcyEjJaMxh96vYySNNFg3Af+wqX5W980t6k H/noqdl2qcThnCRkmKpB/592qv9corZ6GzMl1u/CS+yM4yjEdJq2fXC4lsSaO4FPw4Np KC9y6A+lIHOwwRSNXZa3JzaBB05mehv5joZNdXgDp/Ne/g832GW8FxsEqIAUlVgFalTy 5kNfmL5lzRVwCT22uko9Y9pm1OwdnewFW0iTtmoh9L1GoHnkTFme6Hbl8/w4xbQAAA4p 8jTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=JR/0eNeJR6DFOBO8F9Cz8lGD5obnURUHP5v8GpJRf0w=; b=x+Ytm1OU/NyyCenemN9vnNufmsAjGMgD62BS2Fsx7R7BNdFrg2nOpZNs8wRDQy2FtS XxVVYXTxEqKfggshD7S+8CW3r1rTxsvWVkDFrnZ/j9KvW4UEsx4HpzRh+AabFN7m/xT8 lQY455xUKK9k0tHowaDEwpvFYLU3WgcIpNe/T+L2GJEKLnQGG7uSQ/iHmULZDfwd0ASk 2ZeDm1yCI491AufxssUUH0mnRLUCNntc7z72vzcxSXy/eNVFtJWuONW/5OlRKrlw+XVN TUiKX/KvhMMGf3EhE4VHAgFTykjv1RNOLIGYSFAO1doK+A4X8yHCBH6ElSJd/paOekO7 JY2A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14-v6si2109962plp.61.2018.07.23.04.05.44; Mon, 23 Jul 2018 04:05:45 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388474AbeGWMGV (ORCPT + 31 others); Mon, 23 Jul 2018 08:06:21 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:40019 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388216AbeGWMEt (ORCPT ); Mon, 23 Jul 2018 08:04:49 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 46C91CD72; Mon, 23 Jul 2018 14:04:03 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH v3 35/35] media: v4l2-ioctl: Add format descriptions for packed Bayer raw14 pixel formats Date: Mon, 23 Jul 2018 14:02:52 +0300 Message-Id: <1532343772-27382-36-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532343772-27382-1-git-send-email-todor.tomov@linaro.org> References: <1532343772-27382-1-git-send-email-todor.tomov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This removes warning "Unknown pixelformat" for the following formats: V4L2_PIX_FMT_SBGGR14P V4L2_PIX_FMT_SGBRG14P V4L2_PIX_FMT_SGRBG14P V4L2_PIX_FMT_SRGGB14P CC: Sakari Ailus Signed-off-by: Todor Tomov --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 Acked-by: Sakari Ailus diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 2e3b1f0..e8f7c89 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1260,6 +1260,10 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_PIX_FMT_SGBRG12P: descr = "12-bit Bayer GBGB/RGRG Packed"; break; case V4L2_PIX_FMT_SGRBG12P: descr = "12-bit Bayer GRGR/BGBG Packed"; break; case V4L2_PIX_FMT_SRGGB12P: descr = "12-bit Bayer RGRG/GBGB Packed"; break; + case V4L2_PIX_FMT_SBGGR14P: descr = "14-bit Bayer BGBG/GRGR Packed"; break; + case V4L2_PIX_FMT_SGBRG14P: descr = "14-bit Bayer GBGB/RGRG Packed"; break; + case V4L2_PIX_FMT_SGRBG14P: descr = "14-bit Bayer GRGR/BGBG Packed"; break; + case V4L2_PIX_FMT_SRGGB14P: descr = "14-bit Bayer RGRG/GBGB Packed"; break; case V4L2_PIX_FMT_SBGGR16: descr = "16-bit Bayer BGBG/GRGR"; break; case V4L2_PIX_FMT_SGBRG16: descr = "16-bit Bayer GBGB/RGRG"; break; case V4L2_PIX_FMT_SGRBG16: descr = "16-bit Bayer GRGR/BGBG"; break;