From patchwork Thu May 9 17:10:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Reinhard Nissl X-Patchwork-Id: 2544861 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 27EF7DF24C for ; Thu, 9 May 2013 17:35:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752439Ab3EIRfb (ORCPT ); Thu, 9 May 2013 13:35:31 -0400 Received: from mout.gmx.net ([212.227.17.22]:56711 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821Ab3EIRfb (ORCPT ); Thu, 9 May 2013 13:35:31 -0400 Received: from mailout-de.gmx.net ([10.1.76.16]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MSXbW-1V1xDi17Ho-00RcNt for ; Thu, 09 May 2013 19:35:30 +0200 Received: (qmail invoked by alias); 09 May 2013 17:35:30 -0000 Received: from pD95F5D4E.dip0.t-ipconnect.de (EHLO corei7.home.test) [217.95.93.78] by mail.gmx.net (mp016) with SMTP; 09 May 2013 19:35:30 +0200 X-Authenticated: #527675 X-Provags-ID: V01U2FsdGVkX18SFLABKVsSnDmuZg+sV/Ln/RSO8e41TGHvMK97HN yeRUsEQ99z4a7X Received: by corei7.home.test (Postfix, from userid 0) id 2B71E16DC7; Thu, 9 May 2013 19:11:02 +0200 (CEST) From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= To: linux-media@vger.kernel.org Cc: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Subject: [PATCH] stb0899: sign of CRL_FREQ doesn't depend on inversion Date: Thu, 9 May 2013 19:10:59 +0200 Message-Id: <1368119459-4461-1-git-send-email-rnissl@gmx.de> X-Mailer: git-send-email 1.8.1.4 MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Contrary to CFR (derotator frequency), which changes signedness depending on inversion, CRL_FREQ does not. Signed-off-by: Reinhard Nißl --- drivers/media/dvb-frontends/stb0899_algo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stb0899_algo.c b/drivers/media/dvb-frontends/stb0899_algo.c index a338e06..93596e0 100644 --- a/drivers/media/dvb-frontends/stb0899_algo.c +++ b/drivers/media/dvb-frontends/stb0899_algo.c @@ -1504,9 +1504,7 @@ enum stb0899_status stb0899_dvbs2_algo(struct stb0899_state *state) else internal->inversion = IQ_SWAP_OFF; - offsetfreq *= internal->inversion; - - internal->freq = internal->freq - offsetfreq; + internal->freq = internal->freq + offsetfreq; internal->srate = stb0899_dvbs2_get_srate(state); reg = STB0899_READ_S2REG(STB0899_S2DEMOD, UWP_STAT2);