From patchwork Sat Jun 23 15:36:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10483707 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2377E60230 for ; Sat, 23 Jun 2018 15:36:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27917288D1 for ; Sat, 23 Jun 2018 15:36:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C85E289D1; Sat, 23 Jun 2018 15:36:29 +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, FREEMAIL_FROM, 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 C661F288D1 for ; Sat, 23 Jun 2018 15:36:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751595AbeFWPgZ (ORCPT ); Sat, 23 Jun 2018 11:36:25 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38001 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471AbeFWPgX (ORCPT ); Sat, 23 Jun 2018 11:36:23 -0400 Received: by mail-wr0-f193.google.com with SMTP id e18-v6so9427741wrs.5 for ; Sat, 23 Jun 2018 08:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RgZWLui1PgbNFEa6wWTgcPSNJCg2uK8UUNOz0SFCtSk=; b=I7sieqrQ/0TTxBdGb8y9m8zc5ITXl0nxcJudAhrJu+NQwNPU2bgTXN2eMrrKRO0oJg AAJHh9O7fFpyRB5kkUeWZA9hW3WSWt8jM8aCxaqBExK4rPI16g6MgLPCJ0byu0cD3l2b OymTMKndJhta8NMlYAlV+FUxqC1Db/4dt7QXp0IRojyvPlscCLxognnxUjjE5YNpzJpb Czg9oX5mO4TRw0vfw3byRfotcC3qXSd7Btuabf3MLISBB9v9FBxfoR0GFWdYxE88WGKg hg7nziv6RyrOPQq2WkU66lDlUMroZZPOFZChmDnROs+gSS7gJitvw9FoyRhXMxJldgXc maeA== 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=RgZWLui1PgbNFEa6wWTgcPSNJCg2uK8UUNOz0SFCtSk=; b=cnmfBFS1wcjFaCl0UU3u5mzPCDpX1/usmlhWOsyKTYXhnx+0STkL4MN6I4hpeBj43A mL/beUPXmb4VKO0pbjYwwUXVqccQgxYdBZua4Tano8UukWHbFYPHTLucv7BtAKqlNaiP uNiNH0hyQ6C5YMqo/tOYxvNnfTImXVbSldwwQWuG40Amii8X+QreqyzUiXRuDLJkP3LO 0Uck3zuIrC3c/iKfL2KWsVJl/vlaFk/d2dPLMSYjPaccBI0d97Xdohf8RnMnVAvjT+32 1XwXhKfzwbnuJop1n78rjoKpoyWv7TjUDouueh2niOwBueHbUSZtwfTcs8+2DOxzmpuT 4LSg== X-Gm-Message-State: APt69E3UF4wrvRekNuy46eHh+OfDgLKkRsXfhszyEpcT3Q1PLYKHXSgn TwlroK9lKzEig09KXAdoiUQVSA== X-Google-Smtp-Source: AAOMgpcEx27JUtaD9uRi8kcufNCq9LU6yyqawzS9Ql89hVgQdoXJwN065cp9G3YcqYovHy0GibI/jQ== X-Received: by 2002:adf:9f0f:: with SMTP id l15-v6mr5041030wrf.206.1529768182437; Sat, 23 Jun 2018 08:36:22 -0700 (PDT) Received: from dvbdev.wuest.de (ip-176-199-71-134.hsi06.unitymediagroup.de. [176.199.71.134]) by smtp.gmail.com with ESMTPSA id o15-v6sm3443156wrm.38.2018.06.23.08.36.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jun 2018 08:36:21 -0700 (PDT) From: Daniel Scheller To: mchehab@kernel.org, mchehab@s-opensource.com Cc: linux-media@vger.kernel.org Subject: [PATCH 04/19] [media] ddbridge: evaluate the actual link when setting up the dummy tuner Date: Sat, 23 Jun 2018 17:36:00 +0200 Message-Id: <20180623153615.27630-5-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180623153615.27630-1-d.scheller.oss@gmail.com> References: <20180623153615.27630-1-d.scheller.oss@gmail.com> 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 From: Daniel Scheller Devices supporting dummy tuner operation can exist on any link, not only on link 0, so fix this accordingly. Picked up from the upstream dddvb GIT. Signed-off-by: Daniel Scheller --- drivers/media/pci/ddbridge/ddbridge-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index 3f83415b06c7..55eb151f329e 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -1859,7 +1859,7 @@ static void ddb_port_probe(struct ddb_port *port) /* Handle missing ports and ports without I2C */ if (dummy_tuner && !port->nr && - dev->link[0].ids.device == 0x0005) { + dev->link[l].ids.device == 0x0005) { port->name = "DUMMY"; port->class = DDB_PORT_TUNER; port->type = DDB_TUNER_DUMMY;