From patchwork Thu Jan 24 16:09: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: 156496 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2137534jaa; Thu, 24 Jan 2019 08:10:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Bj3kxpad0K2RIBM1uJQF8LplxLgdFfSYVSzRHVCyNtHCi622tx6opVBFT2wE7AKARwc0Q X-Received: by 2002:a62:1e87:: with SMTP id e129mr6983765pfe.221.1548346206066; Thu, 24 Jan 2019 08:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548346206; cv=none; d=google.com; s=arc-20160816; b=vW1zpXFWflsYE8TZqgJcZBl+9Nzr+EeoEwcI7JUg/HgT7a3mPfCEhNr6hnIpluJ16/ eMMO4V58MzsGQYgqW86jVUXNq3xe5YA6Np/Rkv000M0enYUfJvdn1ukdCFlLuU/hm3fE hagfvvwRmGeWpEA2rE8UCZS6l1Q4g6tbUPGREziswC+nXdW3/JqTo5CPmW/qiLGLZv1Z C0luPLJl0lE0PVDeOrlwpx8QAJco/5y467g9hAUtAVg4hTNWdH1f13kgLxThVIGxZUty PVtHNOMZTkTzr/Axr/I2SK5FQ/R4O1iTGUSVNOqmllcwegXPgAr+ccZnDYXchd3kwjaB 4cAQ== 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=CVbw2/xqDn6WjQlSRch+je/yckaVEkLsj0/B8a1pF/A=; b=jpJHvAACSRX24FHkkW5YKkAxxe2/Z5jemUiY/O5uRksNfZpGbSvQfy4CUUFkmI2GIP NjbrgztCt0dWbiUvOevwH5Tcd1tDL02FJbGj89T2rxMLqh7XFuBnMocGY/HMYwFidtyd NwzLXmfuhK5S0lsxC0SnAYCBF/FiuBE1QWVE1UG/qnbOuL0/MtkrT0d8ba/esXFAdsrt S5ZSfUV/7vB0K61tm4TY1ZO1HSyucN9TUYjaM8IlEjrSqt6euC/WWuFv5FG4LBsVK8DY jpkoJYPm5B5H8ZpAAK68ytD3oWoeyR1AmDQokVtz4YvfNyK7Veg9VBUw6uvv0Z/k3WMR ZY1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F71+4AqL; 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 34si15994576pgt.455.2019.01.24.08.10.05; Thu, 24 Jan 2019 08:10:06 -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=F71+4AqL; 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 S1728794AbfAXQKE (ORCPT + 4 others); Thu, 24 Jan 2019 11:10:04 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37395 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbfAXQKE (ORCPT ); Thu, 24 Jan 2019 11:10:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so7092545wrt.4 for ; Thu, 24 Jan 2019 08:10:03 -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=CVbw2/xqDn6WjQlSRch+je/yckaVEkLsj0/B8a1pF/A=; b=F71+4AqLMyFJEEfclQ4djHmZF0FTZKeuGIl/LPJ2M/B09gXnBO3qfC/lz8COGEAuek SMzekRj27VilyjRor9gmgKzfzOWBQ5kzh081abYA7E8uaCubkLJuT1MpsTLzZ/fHrFvA wKcDTBMqTYA+QDaN1Ra5gmaieK6rr5ao4QD48= 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=CVbw2/xqDn6WjQlSRch+je/yckaVEkLsj0/B8a1pF/A=; b=G8KdLT53H5A27kDaIJ+iGajxQerabGL9y+ICUBySXWCpWbTXAFHInFG5n6lRguUaxw okcqjqJ9dkaJX9BatxFfqvmECwtiZy9os2QKRvfm5tV2vY+6dhrWKQSk+1+LrzxhOWbp usm2gNeOtDLNiW2VVe2I64D36zstoJiIB+RODUKgjPfuDkIU6N1hLN0HMTLqPUy7sTyd GKajPqvqqy8sLfyoLKRw8pF47VFakN46tcLp83RuFPBJQizpC1m+lN+lpUqW1ppEeQzT 3VCg8EdrHp2ajFC7Yg9yW05CLXV0879Klh3QWD2xQDVCK4UvlODUO8LsSlmy46dbAp0Z RuCg== X-Gm-Message-State: AJcUukc+ImKbQHSp2HzIkCjPRKrRvbgZorG1qJb6p/Z+TcNvCQSZuxCf 4/sz/WSI/XVdV3zFrOPCNyzghA== X-Received: by 2002:adf:dcd0:: with SMTP id x16mr7730583wrm.143.1548346202358; Thu, 24 Jan 2019 08:10:02 -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 e16sm179880299wrn.72.2019.01.24.08.10.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 08:10:01 -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 v11 12/13] media: video-mux: add bayer formats Date: Thu, 24 Jan 2019 16:09:27 +0000 Message-Id: <20190124160928.31884-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190124160928.31884-1-rui.silva@linaro.org> References: <20190124160928.31884-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 --- 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;