From patchwork Sat Jun 23 15:36:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 10483729 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 34AE06023A for ; Sat, 23 Jun 2018 15:36:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39104288D1 for ; Sat, 23 Jun 2018 15:36:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E1CD289D1; Sat, 23 Jun 2018 15:36:47 +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 CA439288D1 for ; Sat, 23 Jun 2018 15:36:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751769AbeFWPgp (ORCPT ); Sat, 23 Jun 2018 11:36:45 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43246 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664AbeFWPge (ORCPT ); Sat, 23 Jun 2018 11:36:34 -0400 Received: by mail-wr0-f195.google.com with SMTP id p14-v6so629976wrq.10 for ; Sat, 23 Jun 2018 08:36:33 -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=RaElRZ3C2rVedDYAoglpyqsYIt9BKIV3ONES8nazEK4=; b=m1Rjpv+lUYY4kpknKzNE/0YF0Bok/5XeXm0cREDsSZnLSLS5P7wrHO/SHdBhOR7isM QdZioT+cV1APABVMLMzmI4pwiKiu7O4DF9emfh5ZJ1pywag4McSe/YAHHGN6GW4I4Ot2 7nVGTezO+xZejq/4fBfvSg4StHExQqqKpw2QTzFheosAQej77MwC+Lm9Nv1pKecMTkWT Tt7EGNXSBP5t2xfNfecPqigwJEks4qMuFeNieMJ//6leD9suLiFxLXPC2oUTPGjKpsZD X+3BqSUjH9syhAsRX+i9Nq0/ZLhnUIYI2uaO3QsFU2AHWgsd13slkSqQ3YsqDcIv2JfN A2bg== 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=RaElRZ3C2rVedDYAoglpyqsYIt9BKIV3ONES8nazEK4=; b=Y8JkpKRCvAXpHEIn3VQZxzn8zmeLL62BD7uY0KlNQ21OVho5NLHatRqpqP9zI93d7+ 4yyprPRqVKbZvYF5mYGnFLBm0m16PuhPoLJD/0QFH6RuH/PGky/VLEZFGIECf9wcr35k IZzn6zC1J4bYBvuxhY69JMBe9r6lt4BVz2evHWYoebSJk3fEoOZWoittBc7Bi3BEdoMf 5cmjS2NiWJhzOT3WiWxjXEzZpDK+un30KKjf4JyNiTUjhmKide/fZS0VgC6PjrPY3d3e DStctH/q5AF8beLvUrms68NG3Pb7nXr3Le9F0gKM3eYXRiaTfJyp6UE3Yim6mnEbfoSs BkGg== X-Gm-Message-State: APt69E0KoXLca+rf/qDBpeWQFIzOo+CeHaGXNz3imJxcW+xcYXGmDhnD LzgU81pf2v9IPiovtRFaXBr9+w== X-Google-Smtp-Source: AAOMgpdsRjs5JcwcwgNYxW0GgGz2ugy9m8yNJjxINX4U2rt2UrWqGuFDp/+B8clqlToKlfWtCAs5kQ== X-Received: by 2002:adf:b297:: with SMTP id g23-v6mr4840697wrd.218.1529768193297; Sat, 23 Jun 2018 08:36:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jun 2018 08:36:32 -0700 (PDT) From: Daniel Scheller To: mchehab@kernel.org, mchehab@s-opensource.com Cc: linux-media@vger.kernel.org Subject: [PATCH 17/19] [media] ddbridge/sx8: disable automatic PLS code search Date: Sat, 23 Jun 2018 17:36:13 +0200 Message-Id: <20180623153615.27630-18-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 The SX8 cards by default do an automatic search for the PLS code. This is not necessarily wanted as this can eventually be detected wrong, so disable this. Picked up from the upstream dddvb GIT. Signed-off-by: Daniel Scheller --- drivers/media/pci/ddbridge/ddbridge-sx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-sx8.c b/drivers/media/pci/ddbridge/ddbridge-sx8.c index 1a12f2105490..c87cefa10762 100644 --- a/drivers/media/pci/ddbridge/ddbridge-sx8.c +++ b/drivers/media/pci/ddbridge/ddbridge-sx8.c @@ -292,7 +292,7 @@ static int start(struct dvb_frontend *fe, u32 flags, u32 modmask, u32 ts_config) cmd.dvbs2_search.frequency = p->frequency * 1000; cmd.dvbs2_search.symbol_rate = p->symbol_rate; cmd.dvbs2_search.scrambling_sequence_index = - p->scrambling_sequence_index; + p->scrambling_sequence_index | 0x80000000; cmd.dvbs2_search.input_stream_id = (p->stream_id != NO_STREAM_ID_FILTER) ? p->stream_id : 0; cmd.tuner = state->mci.tuner;