From patchwork Wed Feb 6 15:13:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157641 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6525482jaa; Wed, 6 Feb 2019 07:14:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IabPYuhDFu/ATjOyfPGXDAvd4A4TaMVuQdxa4cu0qULg5CWNtkf0KgAVWDxxdUjGFfq6XZc X-Received: by 2002:a63:40c6:: with SMTP id n189mr9811796pga.355.1549466048961; Wed, 06 Feb 2019 07:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549466048; cv=none; d=google.com; s=arc-20160816; b=y3ANweo8lHrHiWgjECrt5+/bQaVkfgJAtfwsybqVTGFfiT3kfdPjy7Xjg6Mos41Qyt oZTyd63wLWTizim7HJ5f1EIUvEl5AZef1bi9cDXiTEAFAIYI00jN+XBiz3luFY76QcGX SZelmFAWPTOSteC3sMvOyYU8TVGeW8qViuNty1xq/m1TCx/4kKjQ1N9AOWP9X1kQg7Ye aqwSLUWfFv9L63hs0Pgr73cYllEPH2nRGfQ5uh5q01BipJNXF+HO51UA8N7DvgccKP4/ h8PIcNCNuN/VIo/+rTSsCqAFZJITB6/JTVOEbEt4fxprUOsARWoVwp4SU0ut6mtTizk5 LYiA== 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=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=lhxumioNfx6iD8TnFTMRiLp9NHg2Y71v4V4nLlzBfOWieFbzFGCNSh3UYr5cUciT2c oL2p3ILTJ2uCAiFzngo9YLbZzbcU2iyzaQwS/jjMFrweLgemIN8REtHwrLifhEhcVDPw 6JP3yWKtej5En41Zs7Y0l4T2vLXFYrndFKmsZ6ly513vVElfjLlV8lv939z4Wg3iCIJd klDAnsv+KprbjxjoNyHgFN6ZIYSJ9DVBln6G4BupDHH5y7P6oMJuTcPmiGS7/fDBIy/h eRvIVZ7GyyuEkly+U6YuiBOuHfiPdz7N0MjKXgUQWPfhjS7xdDN63Qmltp2y4Pf/su/W KpsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nj61gi4J; 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 l8si5971706pgr.345.2019.02.06.07.14.08; Wed, 06 Feb 2019 07:14:08 -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=Nj61gi4J; 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 S1727403AbfBFPOH (ORCPT + 7 others); Wed, 6 Feb 2019 10:14:07 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51837 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730050AbfBFPOH (ORCPT ); Wed, 6 Feb 2019 10:14:07 -0500 Received: by mail-wm1-f65.google.com with SMTP id b11so2870630wmj.1 for ; Wed, 06 Feb 2019 07:14:06 -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=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=Nj61gi4JqoZV0jJjt7qoStZV3bWnFJ9K/mBZxnPgrqze8zUK7p+uyfEVee71SO+70M F5VJ8OdOWslNj/v4A3cEOzZ1DPMIzJmBOy9XMtL/fSmcUeFE8OlG5HCwmnQXutfrFUrV q641ByZTMATwuueNZN8tpIMyWOG8FbhnXs0gPFF8tbOLkPNSZlPxGeaehgDEEGP63Y9t eOh0bK8wepkdl2cu9ocMBcA5mVVVGbjEP4zC93EAjA2MZdrVVmNiMD13vdaab/BBEpwg 1UceeCed4sekuMVlRPpdZuUE8SEvcpa3KWpih857Cjke/KtPPQx6W6c34XKfsKXrqn6p g8Pg== 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=tQ0yXI3h/vEMlDmKxGMU2fxncWjHgyDux1n9KSlzAIA=; b=BKfQp8MyNZ3I1CUyjF9ygZHboGxd1oLNR+mQAnr2PcrCy0fgmX8vckaCox82VN5Z/k 4+9Ob0eWl8X4Ma89S8t6z9e2dEYYQihhEnjO+W6gD2wH/bCeS3kbQrzq/goztA5hlUbJ 9xaOLOpCDfQl7yVZQ7PddPeOnFhwifWVjrNh/OujMR7m5kv3ky0ZM4P0ILgHS6uR8Lgi qZf12LvLtHlT5WdxMAZThuEHXtsjH1sRnYKkq3SzbC4zAr7fEb+o6rMVZkcYIVszd2sb shBBip9FH51EsrAaPJ1PKpN5o1UQlvlWIKVOmFAWWrPEB2wLOElhdO1HBpCc9qDqIwHn QHSg== X-Gm-Message-State: AHQUAuZUg3iXmoVOgEv+fmGNs27fTjib6yxNC+tgjJhKZgvZrHurtakx bdvNTWdUcHz3dGziRhLHDlHtDw== X-Received: by 2002:a1c:e10a:: with SMTP id y10mr3571972wmg.73.1549466045316; Wed, 06 Feb 2019 07:14:05 -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 f22sm11207836wmj.26.2019.02.06.07.14.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 07:14:04 -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 v14 12/13] media: video-mux: add bayer formats Date: Wed, 6 Feb 2019 15:13:27 +0000 Message-Id: <20190206151328.21629-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206151328.21629-1-rui.silva@linaro.org> References: <20190206151328.21629-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 Reviewed-by: Philipp Zabel Acked-by: Sakari Ailus --- drivers/media/platform/video-mux.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.20.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;