From patchwork Fri Aug 10 14:20:45 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: 143940 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp16199ljj; Fri, 10 Aug 2018 07:22:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyhSG9bh5HfDlwcKD4cyPS9JePmG7X6dpe7FmHwqwWw/J/K+fiw7dpHwFx41CILoOlhgu9L X-Received: by 2002:a63:3f05:: with SMTP id m5-v6mr6577286pga.51.1533910921867; Fri, 10 Aug 2018 07:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533910921; cv=none; d=google.com; s=arc-20160816; b=zDY1g6xVPj+Miq0Jcsf63V9QBH5WXLWsBIgtjmcZ5EJ7RaOqlNBbBleo0xbGdRWNoE U22RXvV649oU3x1LUzMGJTfnMaNE5/cT6V5zov/uCsLizgiJz0geAJVnz0d4H1OovsDA WnYa7nFCC8DASBfa2WZjjjgcVZKKfs2U0IltWr98/FdyLhLzlgJPurj902os9/XfFqeR 4tRzS/SQdjcAB8RJEcHPZp+suvrwFN7V+DTn1Yg5MkjHlwlfeqWMhmzPEqp85j3ejNKw J+TUafEJtR+ewMDuB7jeQduZUsJSjjTcUS0KzrVj649r9Ie3ZR9+4FtKOR+GlVQ/gM6Q N4NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ZqkWyaCwI2/pL/rwe2AWDcjKQL+1vbPRq/XrhWsKWjI=; b=baqq748bFlvRkm6sz6gvP/MkqY6+wDhA4AorhDXyth0SbyooHgZLyN1z2FugEl3y7E 5W+9mP6lQEwo0Q1ZHgYJCunp2e97Qai9l8V342GMPKVoESYYNsf4/67s7hG5zWXxUZa0 9tjTXYeXueYq7F9dyZozmCK6Ssyvwt1eoFVNh7Qjjbr9ooN2UHmciPBDLSwB/KNvbjG8 Jxot0LmLUy6CpZ6BvevsMCVl4J7M/g6BE7pchApRTS8I1FKqLfCwxtFxDgjWUtsb4aOx S8YeCbMMjk7pQhJqf9rKM3fSxY133RGQdkcwVyAAEnO4W+C5gQHjvlwa5vUZ8FXfK73b ThVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IXUofIuN; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 91-v6si7981107ply.405.2018.08.10.07.22.01; Fri, 10 Aug 2018 07:22:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=IXUofIuN; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728245AbeHJQwH (ORCPT + 5 others); Fri, 10 Aug 2018 12:52:07 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52046 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728232AbeHJQwH (ORCPT ); Fri, 10 Aug 2018 12:52:07 -0400 Received: by mail-wm0-f65.google.com with SMTP id y2-v6so2109683wma.1 for ; Fri, 10 Aug 2018 07:21:59 -0700 (PDT) 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; bh=ZqkWyaCwI2/pL/rwe2AWDcjKQL+1vbPRq/XrhWsKWjI=; b=IXUofIuNHqU17F7R/U9pYpB7ZkzyZSX+pKyD52rly1GAgy1aerw6Bp+xyamg7gZ7V8 smW95pQsY+NJXPRdwUeZowaN9mta+9qSlcNzqzYkNkBACALzcHDPTi26OOV6b9hIilqG v8swpYzpqU2p37O5ZzwoOb6GBk+9BVzPqSIHA= 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; bh=ZqkWyaCwI2/pL/rwe2AWDcjKQL+1vbPRq/XrhWsKWjI=; b=pNfae++t/rtPRJBjDBUHM2FlQ70gZmNhWAM8OWtjPBNrs8beWMLGCerGu9ic2Pf27f ebqslmP5E7B0gst/6Axhor9hEiRQsC0eCgOSJINsEAgSJbT7Uy7hUagNbbVcuG/6ocA4 XNE3U21dSZMi3N5qLu8O8cmQ2mf+K8hACQ2An4NQO1RSOXmQGSo7GmM+X2B/YGhanmHi sa6bB9l8HuGYuutCfc3faSNw40Kv8twF891UXGIkTJnmGuHVLu/EpZPa/SHhyFeVFOUP NSrbBE2cHQraC+dgIIESDN89rkKRgTnwG1VOQdIU6bW3e2kgHq33cEeN8StLVSQwsJai HdJQ== X-Gm-Message-State: AOUpUlFfxFpnT8l3Ww9eKlm3ZO/jtGGI1Tar5/DdCTzwgLV9EcRvqoql oCtKZ42UVjxlBkmcXCX1rXybWA== X-Received: by 2002:a1c:13ca:: with SMTP id 193-v6mr1607841wmt.127.1533910919168; Fri, 10 Aug 2018 07:21:59 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id b13-v6sm13077578wrn.17.2018.08.10.07.21.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 07:21:58 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , Rui Miguel Silva Subject: [PATCH v7 12/12] media: video-mux: add bayer formats Date: Fri, 10 Aug 2018 15:20:45 +0100 Message-Id: <20180810142045.27657-13-rui.silva@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810142045.27657-1-rui.silva@linaro.org> References: <20180810142045.27657-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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.18.0 diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c index d8a6fa20879a..af74eb384b78 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;