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: 10694391 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 33E615A4 for ; Thu, 22 Nov 2018 15:19:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24A602CDB3 for ; Thu, 22 Nov 2018 15:19:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18FE72CDE4; Thu, 22 Nov 2018 15:19:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB4442CDB3 for ; Thu, 22 Nov 2018 15:19:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437588AbeKWB7I (ORCPT ); Thu, 22 Nov 2018 20:59:08 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39206 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437582AbeKWB7I (ORCPT ); Thu, 22 Nov 2018 20:59:08 -0500 Received: by mail-wr1-f66.google.com with SMTP id t27so1664094wra.6 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=XwIdAzkk9ZtouhafiPxXhKuCsYiJG0mvZIehxzmEIKloQ3wXxVR0/Ut/hBUu8xm1yu P2uBQanIfOgi/1tBSzpRokx9Cf1Qh9vHY9msw+xX7FecgEL8Gy/GA3XZzOTTGJPK0vrx /7zO/cd4pr4k3UtvV9lHc5SkhVC2OUVsRLCF4BAh+uwYSrbGOTjPKykoh23ebDT4is48 Z6aJAAGesUFcpnoP5P926vhFfl7Hpb+RrkggtefthPjOLU57ssbWMDWQxfp+a4nR6vFn oL86DQFZoCeIMnqF1r2Sp6IY7r/S8fvfBxhBfRv034JEVRK1OplyZ9Sl4XFClsOlYeAG rlaA== X-Gm-Message-State: AA+aEWZYYmyWABLiNTrKeXkEAQPW+TaFZiuUuvgtPdVjgR9sjy8fJ5J4 0zQo4vmjF4cp59lfIngZg2JDAQ== X-Google-Smtp-Source: AFSGD/Vl7NchVI1Pv61RkrABLCWk+cXnYDZN+ZLJZZ/KVh560vcd82kj0hwQYNajtn2ZdUjn86iAbA== 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: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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;