From patchwork Sun Aug 20 10:29:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9911073 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 E73C0601D4 for ; Sun, 20 Aug 2017 10:29:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D769928764 for ; Sun, 20 Aug 2017 10:29:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC62928776; Sun, 20 Aug 2017 10:29:26 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 B695A28764 for ; Sun, 20 Aug 2017 10:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbdHTK3Y (ORCPT ); Sun, 20 Aug 2017 06:29:24 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:37202 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752516AbdHTK3V (ORCPT ); Sun, 20 Aug 2017 06:29:21 -0400 Received: by mail-wr0-f196.google.com with SMTP id z91so13117695wrc.4 for ; Sun, 20 Aug 2017 03:29:21 -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=dS+6M/dnVaadTEBuT/egqTlJTo7rVhp/MGSe86i9/ow=; b=OIkHbJwJbgpKR5saNUD+dgvteCm7a6HHCtlKE9vjBwkf/QhlfRyAdVdwB66ycSh/Eb hbyhvkCDq4FriOoYTUahdk1qEsfZBX8A6PWXlzTEmmWI/VKjrNX8kfV1WHHMtAtgbCKE XTRLbzhLndtAH2h/4fcwXtqSopgokMeuLy+IcoX4Ii87X+z/6NzymBMUG/UttQdq0FkG EglwA/kPDbaeGyZ42UisJcS93jBERhPSONLoRkP/mQDA5/rNsR1JYCOhk97SHDFZ7qXH h9T+87qZRClwT7FApVMnjZeuOwMnV3x6YwsZSMLkaSvyURV/R8o7vdSq1BFwXaaVTDHt hv9Q== 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=dS+6M/dnVaadTEBuT/egqTlJTo7rVhp/MGSe86i9/ow=; b=X6RW8ti9Zptwc7juIuy1qGHzWXGUoHyI8HCRmprZHOryS8jLPJyhLRhd1MT8cKyMPL OXiFI/x3NSXuSzts9X8l9sfiRYh0IATkgtcgY+pkUPXF/jZD8/JtbLmV3Aj+uQg5zHJp q1fucMM6rjco7R290U37GlM5+6CS6ozHMLGnFAIb3ZM6OPDPOYK5CXdG/8LXuKdfIgEL NjLPHgJnYZZtbC0SzTe6T1m7juN7vthwQao8KLHwIF6oS3Qpqc2cQkqHcjinDtMSd0kQ vseeEvgsNhwa6nrzJQKUmcICxXvfy1slZbOq7D4JN4uVTRjabJ+JCPHXbf5FIthqY4+X lCKA== X-Gm-Message-State: AHYfb5jn7WD3U2bxaH6aWYAB+EGF96EqoKFzsnYV2dGxPUwff+6cl81x myAywae4+EOSfh9I X-Received: by 10.223.177.2 with SMTP id l2mr9806409wra.65.1503224960208; Sun, 20 Aug 2017 03:29:20 -0700 (PDT) Received: from dvbdev.wuest.de (ip-84-118-193-88.unity-media.net. [84.118.193.88]) by smtp.gmail.com with ESMTPSA id 73sm6350341wmo.1.2017.08.20.03.29.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Aug 2017 03:29:19 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at, rjkm@metzlerbros.de Subject: [PATCH 2/2] [media] dvb-frontends/stv0910: fix mask for scramblingcode setup Date: Sun, 20 Aug 2017 12:29:15 +0200 Message-Id: <20170820102915.6196-3-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170820102915.6196-1-d.scheller.oss@gmail.com> References: <20170820102915.6196-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 Signed-off-by: Daniel Scheller --- drivers/media/dvb-frontends/stv0910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index fe25b1778555..d1ae9553f74c 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1021,7 +1021,7 @@ static int start(struct stv *state, struct dtv_frontend_properties *p) write_reg(state, RSTV0910_P2_PLROOT1 + state->regoff, (scrambling_code >> 8) & 0xff); write_reg(state, RSTV0910_P2_PLROOT2 + state->regoff, - (scrambling_code >> 16) & 0x07); + (scrambling_code >> 16) & 0x0f); state->cur_scrambling_code = scrambling_code; }