From patchwork Fri Nov 1 19:27:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 3127261 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 B7014BEEB2 for ; Fri, 1 Nov 2013 19:34:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E31BA20414 for ; Fri, 1 Nov 2013 19:34:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BADD42045E for ; Fri, 1 Nov 2013 19:34:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229Ab3KATet (ORCPT ); Fri, 1 Nov 2013 15:34:49 -0400 Received: from forward2h.mail.yandex.net ([84.201.187.147]:60474 "EHLO forward2h.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753103Ab3KATet (ORCPT ); Fri, 1 Nov 2013 15:34:49 -0400 X-Greylist: delayed 423 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Nov 2013 15:34:48 EDT Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward2h.mail.yandex.net (Yandex) with ESMTP id AB308702637 for ; Fri, 1 Nov 2013 23:27:42 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 79D1B17015FA for ; Fri, 1 Nov 2013 23:27:42 +0400 (MSK) Received: from 46-211-122-240-gprs.kyivstar.net (46-211-122-240-gprs.kyivstar.net [46.211.122.240]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vCOUBiaQCK-RfoqJUO4; Fri, 1 Nov 2013 23:27:41 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1383334062; bh=u7TFrrbXuufK//AjVwBWf8Z908Z8TvAgiQpQTAUnxI4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=TF6JzduIwlBHwGdmUKEo+I/d/yxuajUfo1DroEZMGpN3h5104bSMHS+sj3ZemadM1 Emg8akIxkL58b6UMDk8T5D2feLirFvHEq8wPto2a3IvedwYRgXIziRSZw/xtrgA7a/ 8BjnIiy3t1YQNoVEpg0FBQh7gG/Gfzv0sQZcvgNI= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@narod.ru Message-ID: <527400A3.7040908@narod.ru> Date: Fri, 01 Nov 2013 21:27:31 +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 > 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; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org