From patchwork Sat Nov 2 21:05:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 3131681 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 89B17BEEB2 for ; Sat, 2 Nov 2013 21:06:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D70F20320 for ; Sat, 2 Nov 2013 21:06:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 155442031A for ; Sat, 2 Nov 2013 21:06:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754480Ab3KBVGH (ORCPT ); Sat, 2 Nov 2013 17:06:07 -0400 Received: from forward9l.mail.yandex.net ([84.201.143.142]:45687 "EHLO forward9l.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426Ab3KBVGF (ORCPT ); Sat, 2 Nov 2013 17:06:05 -0400 Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 4E83DE60D9B for ; Sun, 3 Nov 2013 01:06:03 +0400 (MSK) Received: from smtp19.mail.yandex.net (localhost [127.0.0.1]) by smtp19.mail.yandex.net (Yandex) with ESMTP id 113E7BE02FB for ; Sun, 3 Nov 2013 01:06:02 +0400 (MSK) Received: from 46-211-183-212-gprs.kyivstar.net (46-211-183-212-gprs.kyivstar.net [46.211.183.212]) by smtp19.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 93ar8pEE8P-61UeE0tg; Sun, 3 Nov 2013 01:06:02 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1383426362; bh=giv/q4/OmaUbXjVpPcaTXmPZEljU/ayR4bg97NhnwhA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=FRRzFRJrrA6A1ixUwYA24CY/6/HvR3L5yb074GULYUXAJBhSGtHfYX/BAVtEFURc/ Ph9848aKGPEhI2NwtSesFHTJtBw73P/7qbfs8yfc2be+I+bjIquuAt8eub0OC3MMYa ivPqdShLCG5JQLQnzpVtrNQj8RhHiocv8bb9I684= Authentication-Results: smtp19.mail.yandex.net; dkim=pass header.i=@narod.ru Message-ID: <5275690A.3080108@narod.ru> Date: Sat, 02 Nov 2013 23:05:14 +0200 From: CrazyCat User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22 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=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_WEB,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 --- 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: tda_warn("modulation type not supported!\n");