From patchwork Mon Feb 4 12:00:38 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: 157399 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3828077jaa; Mon, 4 Feb 2019 04:01:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN56B6zQvw38y0TvYTP7d/EggvOl7FxQ3Tp2DdtfMJvBZC/2k/phQJYcfKt+5WzkC4NtiuGn X-Received: by 2002:a63:1b1f:: with SMTP id b31mr45655156pgb.66.1549281682461; Mon, 04 Feb 2019 04:01:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549281682; cv=none; d=google.com; s=arc-20160816; b=l2r6vd6q4Q80ul/1VyA4thB3T7tFDXlBEyJP9SSglYgN/3we1EEtZfdaBhYoCQznRo H2M22GaTjWzVUjuViq4m1JYfMkudOveDiCbmSiPzN6lgdKlvpy2Bg4wWCzsShvbv0+J5 AT4tUHK+5MmUDZBWAqJeygFO7b71KegmTPm3Cjx0Qq17DEYoe0KZNFkQ2TShOEc5IJDS F+x+LHfSbGwKz+Up33w5CXwNXC/pLgrPuKNhcT/T9LJpCcYhhg0VnCPGzYcYS2FDgEcX B0bILcOOLIa2R0sSNI1CVkvkuVMH2I4BtgksuSA4zv+XW354KcL9iXBmClHSp+AsQkBR wZrA== 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=N4MMsar/LuaezzlzbcMeThJ6fsKTp3cSks0ZGfiPOilX1Y8csYMmdHmBC3jEgKnwUf pE02UbcTOM7BcIj1rfIpCGbOS+6xrNSYZw2JRSem9iZzHFA4p+qApB/Qi4qc7NA7w5Z4 QLFmS5Qr3pNmEIAVFZVjb5KdnM9H5xOQof+o5kwotEt8hJKwYkkAdnAFQb6iStPX+Lz6 X6xm7DNRsN88Lu7mXzZKSoOeknZrq0H6HBktll29UGinrVgeF8EFVKwsl9x+cUSnfWFu WvzVdOs+hdc/apcFpnIE7gix0spfHAegKU94Hu5E5NndVHLyc8lAYU11VsUvji4eJO2S LHCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WejHG5+w; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 go3si9473977plb.97.2019.02.04.04.01.22; Mon, 04 Feb 2019 04:01:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=WejHG5+w; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1729590AbfBDMBR (ORCPT + 4 others); Mon, 4 Feb 2019 07:01:17 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38599 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729404AbfBDMBR (ORCPT ); Mon, 4 Feb 2019 07:01:17 -0500 Received: by mail-wm1-f65.google.com with SMTP id m22so13185874wml.3 for ; Mon, 04 Feb 2019 04:01:15 -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=WejHG5+wlU2rIeuPTYfK7VGsP0eHoyCxff7cN68YRq9E+xwrG53e8eE60NFgBGZq0q KyfSNYNlit/whkq4XLhK9IM70dwYIY8wYnHvKJVEJ2stAJfOcQT4W64+q4GrjJb/lK73 owtUgbvbW57O0hkuP1YnHW4D9PINZ6H/ByIAs= 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=BMWbMvOaKukIAbC8NRwP8WR82Sqy+EQMbOAN39b8pZBWzVai1EL/8ib7vYxxtOK+kb 0Wh8SmnUI6rZ4812cLrrGySQ8Gr755D6d54L65s1wkiBsGpM24RfYQICSsFelHY+kFSJ nqgf4rFfNxJTLAkHuCIWCQM/f7mzvPx9A7f0fqgrb3lb786AanQ597prfbGzas+ngLid STY90rZ8NjsJLhUS6SsJEzyBci5FegKHs+TRxtzOC6X+ARR+chqz2aI/XZb2pozuTvar H1SGRKrKKmRdbHDqdIG1GxBIui9Wb3Tpq9s77YnZ1XJp2yLdNXTfpTYA+qoqqqeFtIT9 xZCw== X-Gm-Message-State: AHQUAuY9QGAzgqTv+za7FJCwMGRFtO9wEdAFd3zc6X1a2f5oz6X95Qbu mATa9YJwiIosk7e0C68f6uqwjw== X-Received: by 2002:a1c:2787:: with SMTP id n129mr13525033wmn.128.1549281675128; Mon, 04 Feb 2019 04:01:15 -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 s8sm15404543wrn.44.2019.02.04.04.01.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 04:01:14 -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 v12 12/13] media: video-mux: add bayer formats Date: Mon, 4 Feb 2019 12:00:38 +0000 Message-Id: <20190204120039.1198-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204120039.1198-1-rui.silva@linaro.org> References: <20190204120039.1198-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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;