From patchwork Fri Nov 1 19:31:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 3127321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 997F29F432 for ; Fri, 1 Nov 2013 19:37:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C312B20462 for ; Fri, 1 Nov 2013 19:37:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6F392045E for ; Fri, 1 Nov 2013 19:37:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553Ab3KAThs (ORCPT ); Fri, 1 Nov 2013 15:37:48 -0400 Received: from forward9l.mail.yandex.net ([84.201.143.142]:36216 "EHLO forward9l.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055Ab3KAThs (ORCPT ); Fri, 1 Nov 2013 15:37:48 -0400 X-Greylist: delayed 388 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Nov 2013 15:37:48 EDT Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 5BA8EE60C37 for ; Fri, 1 Nov 2013 23:31:16 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 1B6491340266 for ; Fri, 1 Nov 2013 23:31:15 +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 czpzKmr9qF-VFFaJiLs; Fri, 1 Nov 2013 23:31:15 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1383334275; bh=N50O2ALkFEqhGFFBkeUvyCrpLbsxe/f8UR8hV9ig3ls=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=gBo1dG4I/WFi4dUyX0x9uf4kSG8XYR7Nt9XFCvihGIyzuptpbgjVQi5PRKipfgs51 hsrGhYv7IOWACEqCC9xwlBkL8Vrvcn3R8/sWP8ZmfJtwC2F6euE4Jd3/vODuyfV1Kh IjwaOHhmKekiZXw+zhpcuzNkfBHszqDmIFq0W518= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@narod.ru Message-ID: <5274017D.9050204@narod.ru> Date: Fri, 01 Nov 2013 21:31:09 +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] tda18271-fe: Fix dvb-c standard selection 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 dvb-c standard selection - qam8 for ANNEX_AC Signed-off-by: Evgeny Plehov tda_warn("modulation type not supported!\n"); --- 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/tuners/tda18271-fe.c b/drivers/media/tuners/tda18271-fe.c index 4995b89..6a385c8 100644 --- a/drivers/media/tuners/tda18271-fe.c +++ b/drivers/media/tuners/tda18271-fe.c @@ -960,16 +960,12 @@ static int tda18271_set_params(struct dvb_frontend *fe) break; case SYS_DVBC_ANNEX_B: bw = 6000000; - /* falltrough */ + map = &std_map->qam_6; + break; case SYS_DVBC_ANNEX_A: case SYS_DVBC_ANNEX_C: - if (bw <= 6000000) { - map = &std_map->qam_6; - } else if (bw <= 7000000) { - map = &std_map->qam_7; - } else { - map = &std_map->qam_8; - } + bw = 8000000; + map = &std_map->qam_8; break; default: