From patchwork Thu Nov 22 15:18:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 151799 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp877436ljp; Thu, 22 Nov 2018 07:19:22 -0800 (PST) X-Google-Smtp-Source: AJdET5cFHr6jSplZAleSvfYRW3fNBjbICkbp25Q9gW+5zIvQZYHJ8Ul6eLRKcj2asAD4MzjvmCZB X-Received: by 2002:a62:ed09:: with SMTP id u9-v6mr11626120pfh.188.1542899961943; Thu, 22 Nov 2018 07:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542899961; cv=none; d=google.com; s=arc-20160816; b=fsGOENkdUJruEvdQMm6SSO8JBQhPqw9II9NBxYJ7nkXuEBDmZbAPmpZNwuguYn2/s8 1A6jaQ6yBbp6TVyZo4JxaSW0q/Q83I2Ds55vxJL1jI7erfQlUH7oBHgeoWPn/zorRGO3 DVLf3ZodiOEiWKcr8kYKuGTuoFQqcmUYNxXb6rWj2b050W2etOhkWIQZOMOQRiOoi5UE EE2NfBOjx54IDeGxZHZtow4DMfIzUtWMcrWdleObza7SzYRreTtxDPrh4iYhV+/9c0t5 JP2pYTlZvnpfZ0+GhPSzoFkQpNx3iMpP5l4+cAY8XQUdP0Tn4Tf3n7J3nLFqnOmfJzSi dL+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SDll1pv1EukuhR1AIqusnkMzOSkhoq3sWKTbeNmkFOY=; b=FaVMaFM+YfM6bP1r69zrLmHPwcnK/3nNMVR7DDhI7NmjtnT9qZCm8heMFYxZCKkfsd fQRWzjT7gJDKvjp4HaVAfkw+S4Unp/qqPXqx/k1iVwj1h5n8iJevHd+pqAb69IKg8ckq ulz16kEMZGOI/SBsM6BK+UZvfzxOEJFdPni1VVju/vPo5MEydwtEtqOW+nOjaXMfkkzN MuSmaptnVkkBoaCVW86APemXYJn8MnHYMfi9HGM0kjg/sn1kBTqBvS1RjgvjX7ca1wUx ybQ5lXKJLyXAu+qusZ9GqZWEideDS/siQ7XpTE94atFFHSqMTeGnTCkhauY4rP144r6+ Q7Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="FbHgEF/L"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (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 h3si27736717pgl.468.2018.11.22.07.19.21; Thu, 22 Nov 2018 07:19:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b="FbHgEF/L"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437587AbeKWB7I (ORCPT + 6 others); Thu, 22 Nov 2018 20:59:08 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35122 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437581AbeKWB7I (ORCPT ); Thu, 22 Nov 2018 20:59:08 -0500 Received: by mail-wr1-f68.google.com with SMTP id 96so9642835wrb.2 for ; Thu, 22 Nov 2018 07:19:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SDll1pv1EukuhR1AIqusnkMzOSkhoq3sWKTbeNmkFOY=; b=FbHgEF/LFsYWVy66CKbPGQgcaTvewU+onrRaTihZjQIgCBSBd3rwBrblcwr0BPhUMj r1p/ZOmPGEptUsLueUgktYINUyKgzS05XAQs9M/u6xEpufEVUQwl9SWFaBKIdEf1HUDI qRpDZhFgdlmgFN0Heq5w11Qram6PkFtvy/ZWU= 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:mime-version:content-transfer-encoding; bh=SDll1pv1EukuhR1AIqusnkMzOSkhoq3sWKTbeNmkFOY=; b=itYjRSD6o9995Gl6UEkSf1DQEyIIuuRftU1T285PSXUWrBHjDMhSq8BeRzyR5hnDIX 4q8avfsOKkbQSXwReYfuTywiMeU6FokiNaPXSz/vnKYzJo5dmj28cphSZeOKnS/Q6M3i rCFEWtem4gNt2HKRrEVRAZ3HPL6U7O3HUlkmUmkgyKPpOx57a8lZqubF2aph1s3XCLJS mji7ZTwi+8Y/2eXKLvhqG4fhLatQSJ2px30adEBI9jWDmUK9ZHC6spo1WWtCTth97fGV iLgAYIHHL2QbDqA8Fb4VkWht7DliGt967mNV8evgY7wCjRkfWf2ePolEr6ubYsdKeKM7 1ePA== X-Gm-Message-State: AA+aEWahDIHW/hW9L7emc3QnbqA2op7O1MUBJQ+ssI/V6eY/CpIXhvOk 3Euv4m76MleHx4PJGT7Om/dfig== X-Received: by 2002:adf:94c1:: with SMTP id 59mr10327908wrr.48.1542899959081; Thu, 22 Nov 2018 07:19:19 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id q7-v6sm4642476wmg.27.2018.11.22.07.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 07:19:18 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v9 12/13] media: video-mux: add bayer formats Date: Thu, 22 Nov 2018 15:18:33 +0000 Message-Id: <20181122151834.6194-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181122151834.6194-1-rui.silva@linaro.org> References: <20181122151834.6194-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add non vendor bayer formats to the allowed format array. Signed-off-by: Rui Miguel Silva --- drivers/media/platform/video-mux.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.19.1 diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c index c33900e3c23e..0ba30756e1e4 100644 --- a/drivers/media/platform/video-mux.c +++ b/drivers/media/platform/video-mux.c @@ -263,6 +263,26 @@ static int video_mux_set_format(struct v4l2_subdev *sd, case MEDIA_BUS_FMT_UYYVYY16_0_5X48: case MEDIA_BUS_FMT_JPEG_1X8: case MEDIA_BUS_FMT_AHSV8888_1X32: + case MEDIA_BUS_FMT_SBGGR8_1X8: + case MEDIA_BUS_FMT_SGBRG8_1X8: + case MEDIA_BUS_FMT_SGRBG8_1X8: + case MEDIA_BUS_FMT_SRGGB8_1X8: + case MEDIA_BUS_FMT_SBGGR10_1X10: + case MEDIA_BUS_FMT_SGBRG10_1X10: + case MEDIA_BUS_FMT_SGRBG10_1X10: + case MEDIA_BUS_FMT_SRGGB10_1X10: + case MEDIA_BUS_FMT_SBGGR12_1X12: + case MEDIA_BUS_FMT_SGBRG12_1X12: + case MEDIA_BUS_FMT_SGRBG12_1X12: + case MEDIA_BUS_FMT_SRGGB12_1X12: + case MEDIA_BUS_FMT_SBGGR14_1X14: + case MEDIA_BUS_FMT_SGBRG14_1X14: + case MEDIA_BUS_FMT_SGRBG14_1X14: + case MEDIA_BUS_FMT_SRGGB14_1X14: + case MEDIA_BUS_FMT_SBGGR16_1X16: + case MEDIA_BUS_FMT_SGBRG16_1X16: + case MEDIA_BUS_FMT_SGRBG16_1X16: + case MEDIA_BUS_FMT_SRGGB16_1X16: break; default: sdformat->format.code = MEDIA_BUS_FMT_Y8_1X8;