Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3503459ybi; Tue, 2 Jul 2019 08:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTu6SndJkA5nnhc2ZxPMRfT+NJmMOQXGaZoXzMO3qBldMhjrctqKCLWeZHKA7hhoz0U6S5 X-Received: by 2002:a17:902:381:: with SMTP id d1mr9120600pld.331.1562082606327; Tue, 02 Jul 2019 08:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562082606; cv=none; d=google.com; s=arc-20160816; b=isSl2NOSTLitcTXdeWY+Hk6P16PsOZDOX0OhKlGvazUSEdhOr22VbRWVcA1/FWm8h9 peMgcYNFmSqDroNUYvPs1gokbLrnhwwQgH8PHjdrIzwTlrT38lqmtlQ54vyC92HFBQhS I+ohXHKf7naopixbARDlUdndbHIgw4d4xptk5OxVm3SX8FLdYBA63UAe5AmAY9gYYHLo InYTBGe+tLcLyzYkhkh6msUib9UbJTCoOtoOSUfriTYARfGtPUK+SChewZyG6vUSZ3ZG rKv9xiMSSCtYCA7K8G3He7SUvYpfkw5V12xOMQAe7x5vpd28uWiw5cQ8G/aZYG5fuMNt Fy8Q== 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; bh=8ez59niLAcuO0i1ke6+ItKO+9pzOKRqEMLPGi7ICmYQ=; b=rxPQcwvx8THafHyWCzSJU6CKSh71ojt//vs47GDr4eadHXd0y00WfmZZH7gpl85aeV rGld1AtEW7yVnKRN4WOW65wMlrE6QP/uSyN9Qf9o9ZjeW28duZg/6dCV81Yy8+4mDHt8 GneQIGhbwnAPnTHctlXhVuFX0W0m1cAk0N55V4mveFCkm7fyGG8i3qdTOLOYnfShNmZm lR25Prz6ub4qefmRURrzwDpdudfPWWtyt3Im3YsLz+e/T1/kg74ZYuvwOKESObuJ9smQ NhY+zUvJGYSaBXS66OMyFpDHkYKwbqQnsAtRMJzNDEP47m269rTWZ0JpnABu0xpOwFNA EVLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59si13795317plf.220.2019.07.02.08.49.51; Tue, 02 Jul 2019 08:50:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbfGBPtR (ORCPT + 99 others); Tue, 2 Jul 2019 11:49:17 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58388 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbfGBPtQ (ORCPT ); Tue, 2 Jul 2019 11:49:16 -0400 Received: from turingmachine.home (unknown [IPv6:2804:431:c7f4:61e7:d711:794d:1c68:5ed3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tonyk) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 0C43A28631D; Tue, 2 Jul 2019 16:49:10 +0100 (BST) From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, hverkuil@xs4all.nl, helen.koike@collabora.com, kernel@collabora.com, linux-kernel@vger.kernel.org, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH 5/7] media: vimc: core: Add output device on the pipeline Date: Tue, 2 Jul 2019 12:47:50 -0300 Message-Id: <20190702154752.14939-6-andrealmeid@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190702154752.14939-1-andrealmeid@collabora.com> References: <20190702154752.14939-1-andrealmeid@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the output video device on the hardcoded pipeline. Change the link to it be enabled by default. Signed-off-by: André Almeida --- drivers/media/platform/vimc/vimc-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/vimc/vimc-core.c b/drivers/media/platform/vimc/vimc-core.c index 571c55aa0e16..ecdea1d631c5 100644 --- a/drivers/media/platform/vimc/vimc-core.c +++ b/drivers/media/platform/vimc/vimc-core.c @@ -95,8 +95,7 @@ static const struct vimc_ent_config ent_config[] = { }, { .name = "RGB/YUV Input", - /* TODO: change this to vimc-input when it is implemented */ - .drv = "vimc-sensor", + .drv = "vimc-output", }, { .name = "Scaler", @@ -118,11 +117,11 @@ static const struct vimc_ent_link ent_links[] = { /* Link: Sensor B (Pad 0)->(Pad 0) Raw Capture 1 */ VIMC_ENT_LINK(1, 0, 5, 0, MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE), /* Link: Debayer A (Pad 1)->(Pad 0) Scaler */ - VIMC_ENT_LINK(2, 1, 7, 0, MEDIA_LNK_FL_ENABLED), + VIMC_ENT_LINK(2, 1, 7, 0, 0), /* Link: Debayer B (Pad 1)->(Pad 0) Scaler */ VIMC_ENT_LINK(3, 1, 7, 0, 0), /* Link: RGB/YUV Input (Pad 0)->(Pad 0) Scaler */ - VIMC_ENT_LINK(6, 0, 7, 0, 0), + VIMC_ENT_LINK(6, 0, 7, 0, MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE), /* Link: Scaler (Pad 1)->(Pad 0) RGB/YUV Capture */ VIMC_ENT_LINK(7, 1, 8, 0, MEDIA_LNK_FL_ENABLED | MEDIA_LNK_FL_IMMUTABLE), }; -- 2.22.0