From patchwork Wed Jan 23 10:52: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: 156366 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp576473jaa; Wed, 23 Jan 2019 02:53:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN40i5YnOy+EvlmX0JUWw4IMX01aoWyzv/j8h/2K/xir2HOA4+KI10ayklYPy/Pq9fWzfD2F X-Received: by 2002:a62:d206:: with SMTP id c6mr1560015pfg.245.1548240794859; Wed, 23 Jan 2019 02:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548240794; cv=none; d=google.com; s=arc-20160816; b=0+B6M++vCGKu8DYIDICSmXCtwsl+qNJBlL2Nd7CxpvKiKZY8rE5jUFbZh+7gr2nZts UKexYvWL+aB7Fvo3kwmR8T5fM5ttb71zRxNh4n5nFKAUsZuxcZqxfQOfKj3KVJnu6ZjF V5fGHfirw4u2vzQ7D5rZfKP1XFxwQ4lcdUuKcj2twK2nAwqMvhC1J/HZhschcTv7RYsM CK8fBtXmqTAxR8Jm8JTzO2ZZwnI3VrawJk0ICjgrmjU0lLtBnPH01HyGOZc6RevsSZfN HQS4xc65ibykaCDoeyCt8jPt69nPOt+KcuO6ZB0tz2KRx6292GUmSyvdiMU86WpEoWD/ aSyw== 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=gY2LNKMG7qpa54ba4CVP1G13ldcfqAPv/cqBQsiaTTo=; b=RlZpQPZLB9ZG/+g3RP/kNdlKPBIxcECSqxKMxMJ/umyVLsvl2IyTpJ5356ZdXJ4tda ymgaPRVwomMZMmBZJQrALxTjYW3uz9hABav8JUX6CuyNixMqU+OsL+gj2eCljpa+Q77p t9qcAvIn+afaq+kWzsNEcWCBQi6NktmZ1gBHYMmLc3oinZ8oEy00wWslxPkiMDBbidWc fF3gvQbI8ARWcpsZl6KYZYhEWhc3xZ3KzYX4s1qGMovZGf0WvIxCQGXdcr+0Rv24aOuQ KkBYTLy1MC8jgLRDLd58RPioUjuhupG7eq8brYuEn5j2raxwfb0M8PF0dO/cKtpBqtbZ ub7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KEvrarep; 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 a6si18061494pfa.227.2019.01.23.02.53.14; Wed, 23 Jan 2019 02:53:14 -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=KEvrarep; 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 S1727529AbfAWKxO (ORCPT + 4 others); Wed, 23 Jan 2019 05:53:14 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46232 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727527AbfAWKxN (ORCPT ); Wed, 23 Jan 2019 05:53:13 -0500 Received: by mail-wr1-f65.google.com with SMTP id l9so1820792wrt.13 for ; Wed, 23 Jan 2019 02:53:12 -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=gY2LNKMG7qpa54ba4CVP1G13ldcfqAPv/cqBQsiaTTo=; b=KEvrarepuUMtTfXKBQ5nc9RMscwWNeKfB766QwHscfHjgRfsycibJ9sxGxt1zKpbCr CyIN+9/fy4ju6tmqZYqGEFFIqRXhgmeEEp8JfNCd1cpr/FnTDFvfb5lAM4Z3gxSwth9J HA9eylytnBQoDSDDH9WejPTSUj7lqHCYPPXsg= 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=gY2LNKMG7qpa54ba4CVP1G13ldcfqAPv/cqBQsiaTTo=; b=IgS0bnIU8/fHG8OWtkZrsCR3Op7aVcVTWD/Spp7RNAtijnTkSh38V3xBUyyZRdO2vB q5Yrfbjoov/Y4WS4l1P7NGsuLAc0c+d6vbxQVvbjcM/L0GXYWuRG0cW0+Gk/OWT9Ky+y wsBCv5VMvkS4pU3pPxL1/G/V6TEPvWbxxc0onm8bcsDKEEqy0yEwYd1Z1qRIXAmzurvS FradEFihTY0GJZrPt9qtehRZ8a75RLlp8mDBJO8l9O0vXFBcsLYBLvxLtGihV6nHS53J Fh3HB8jYi4XpbvCvnrBpt7/7AxiE+jv4zDNPmlf3kiG0MpeNaMnE2/H0d2rWwMx9Gb7D ghvg== X-Gm-Message-State: AJcUukfgTSSrahlgV0rnJz6cZBSwHGjlFCFlu2oUX22L1Wuqly9F+SP8 XkVCnC17+TvW5/EMAfgIMqf4Yg== X-Received: by 2002:adf:ed92:: with SMTP id c18mr2196486wro.194.1548240791418; Wed, 23 Jan 2019 02:53:11 -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 143sm120717646wml.14.2019.01.23.02.53.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 02:53:11 -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 v10 12/13] media: video-mux: add bayer formats Date: Wed, 23 Jan 2019 10:52:21 +0000 Message-Id: <20190123105222.2378-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123105222.2378-1-rui.silva@linaro.org> References: <20190123105222.2378-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 --- drivers/media/platform/video-mux.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.20.1 Reviewed-by: Philipp Zabel 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;