From patchwork Fri Nov 1 20:06:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 3127551 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 81839BEEB2 for ; Fri, 1 Nov 2013 20:07:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6FACD204C9 for ; Fri, 1 Nov 2013 20:07:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B4EA204A2 for ; Fri, 1 Nov 2013 20:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511Ab3KAUHG (ORCPT ); Fri, 1 Nov 2013 16:07:06 -0400 Received: from forward3h.mail.yandex.net ([84.201.187.148]:58071 "EHLO forward3h.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785Ab3KAUHF (ORCPT ); Fri, 1 Nov 2013 16:07:05 -0400 Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward3h.mail.yandex.net (Yandex) with ESMTP id A41F9136283C for ; Sat, 2 Nov 2013 00:07:02 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 768A1134031E for ; Sat, 2 Nov 2013 00:07:02 +0400 (MSK) Received: from 46-211-122-240-gprs.kyivstar.net (46-211-122-240-gprs.kyivstar.net [46.211.122.240]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id RcDfB99pce-71FO4TPp; Sat, 2 Nov 2013 00:07:01 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1383336422; bh=f3VOxoeUZs42alTGQRE4hkQQ+JHy8ozCgCtConhj3fo=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=IEvo79kAWQ4F3jX0nAgJ3RXUrEIOwcm7YUEZ+lJ4ui8MoN2bCzX9IJf/XEJ0e4VJ6 dEOAtA0x7siajealI9G6MkXz3yp8HicSyvBjo7lyn62gC1igkt/IyZWljYnsKxbwhI xxItnU9G9OpK8ah1ZqANO9qCl2+F+Dm7SO0BeWII= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@narod.ru Message-ID: <527409DE.4010606@narod.ru> Date: Fri, 01 Nov 2013 22:06:54 +0200 From: CrazyCat User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH] cxd2820r_c: Fix if_ctl calculation Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix tune for DVB-C. Signed-off-by: Evgeny Plehov --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/dvb-frontends/cxd2820r_c.c b/drivers/media/dvb-frontends/cxd2820r_c.c index 125a440..5c6ab49 100644 --- a/drivers/media/dvb-frontends/cxd2820r_c.c +++ b/drivers/media/dvb-frontends/cxd2820r_c.c @@ -78,7 +78,7 @@ int cxd2820r_set_frontend_c(struct dvb_frontend *fe) num = if_freq / 1000; /* Hz => kHz */ num *= 0x4000; - if_ctl = cxd2820r_div_u64_round_closest(num, 41000); + if_ctl = 0x4000 - cxd2820r_div_u64_round_closest(num, 41000); buf[0] = (if_ctl >> 8) & 0x3f; buf[1] = (if_ctl >> 0) & 0xff;