From patchwork Wed Feb 6 10:25:21 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: 157601 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240808jaa; Wed, 6 Feb 2019 02:26:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Iad12AgaiIr666RXUR4EJNqHe/83e5I2cfJcriD636g51uEixc0KXqXDSGVHEF5w2MzZF8X X-Received: by 2002:a63:5723:: with SMTP id l35mr8634674pgb.228.1549448779449; Wed, 06 Feb 2019 02:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448779; cv=none; d=google.com; s=arc-20160816; b=kYmtwLe7mEZzY+CdBdLghZy0PdR7z4pN+Zc0fFaxjlQnUYk9003mdqybQDWeFwn9YI y26KKc1z+zb+wUtlSGUF557XFBytyruUXRrxM1Se+jEEnBA1xfUDNEAFA9iJk1vVHkmJ iVgnH/SqJ7VkXRjAAuS4y9qqQ9l1O/8FBEXJiwEIPcVRQD3xNkS/EJ97/xvfcuc/cHIY 6lG/hI6sznKQ19qY/viVOOtuRkw1fIu3x1LVpmcWT9/Ra4M6+GfoE/VlAzzDoZOszOOJ pMBjVd1ZIl5+WMPppagmhAZiRcAFuPWkf37L+4/TjYBPaLnoaweCnWv8eWa9PugRThDI 02UA== 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=Nmfky48LuGnv5ppuzjdNh3GzlToOduROulp3E2Bx0pLffU1gO+Xy7Eogse+c4gvDY/ +Jr9YDyveLDXK0sXjyLMNTIyetM3lUfQ5xXUouoc5b+TECV74NAFsGQ9t/T2NV0Ax3mS dn0T+C5MOnQtt+UCboAnwU7OoDrFvtEj2PeSTBqbFVFpLNw4FW6u5G9za55G9a7YxzML istLAuWto4ZjDbYpH9Z0+QamJt3JsgnLiY52irCKgKyp3y3FvG0XVzcjVE3+2ECkFQKB ObwpeyLa/l8hM1DgEw1mvI+1MT8isj7Sa9opEcGfHGKI20Ew6112oHBONJElOj73ZSR/ ZLIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=URQDoEz9; 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 90si776785plf.62.2019.02.06.02.26.19; Wed, 06 Feb 2019 02:26:19 -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=URQDoEz9; 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 S1729412AbfBFK0S (ORCPT + 4 others); Wed, 6 Feb 2019 05:26:18 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42999 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729427AbfBFK0S (ORCPT ); Wed, 6 Feb 2019 05:26:18 -0500 Received: by mail-wr1-f65.google.com with SMTP id q18so6875172wrx.9 for ; Wed, 06 Feb 2019 02:26:17 -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=URQDoEz9IDQN7u7gekNypHM89asOD6Xdw9+wuVMBswRJMNzNNWrdgumHQ/xv7Hs6OP aBZXIqx2KCNyr8HFtJi/gBafrODq/OtrK/uyuUSPqWLhOCeS2lHBoJBThxFH0rI5VKRY pZBlR5GJNi3amvpHGPeJooMe27SYtxIfULRuupxaEWc5AGl4Ft8XJYodwlo5ug4HC04f JMbdrW2Tl25SZgEswTzF4qYwIfn+3ouEwWI86ugQILY8To35lPCjOxFyL2MSKjf1iPsG 1trZk7YAfX7c7vwY9K+tzUOahYpix5FwyRvENnMoUH40IMQO05UEdxXmiabjKrJUgBwt jouQ== 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=ErhcgXLJxc+qyBUFJtXHTcEwhGPird/SxKr3KymaQDsMbIkxcDbtao9ERM1JeHK2j3 N0uGSuetQTQiWQ3eLd0O/JwJ1VW5d0jW1eXDPLNVKZUumWAjplDofDqbaAx1t11ILsfb FDoJmgn8Cr3d34ynPhh3Mo9aIXJzDao3kXjloPLYbD5PiJBthjlYUyPvpqdue6AN0oie S7gteauBkLViZnGOFdT2Nkxi8uBxeqccNDEM/qE7hOd0JmthX7KF6X5+zYM9wxKezb7L 90HqKdpZANpBqiCWowpLUxXHVNTZB83OHmQGSSy+XLzrsvVx6joND0AP3PenDaAVorht fijA== X-Gm-Message-State: AHQUAub4nsjn/G4Y6eZrccVzC0/9iIGOrB4ejQqLCbmNzJI7ihr8K8y4 SZQgV7RJrJAF+AE2v1t6RZu+MSNyae8= X-Received: by 2002:a5d:5285:: with SMTP id c5mr6861541wrv.167.1549448776626; Wed, 06 Feb 2019 02:26:16 -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 i192sm18149631wmg.7.2019.02.06.02.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26:16 -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 v13 12/13] media: video-mux: add bayer formats Date: Wed, 6 Feb 2019 10:25:21 +0000 Message-Id: <20190206102522.29212-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-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;