From patchwork Wed Jun 10 00:14:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Walls X-Patchwork-Id: 29111 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5A0DY3B001543 for ; Wed, 10 Jun 2009 00:13:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719AbZFJAN2 (ORCPT ); Tue, 9 Jun 2009 20:13:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752786AbZFJAN2 (ORCPT ); Tue, 9 Jun 2009 20:13:28 -0400 Received: from mail1.radix.net ([207.192.128.31]:57905 "EHLO mail1.radix.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbZFJAN2 (ORCPT ); Tue, 9 Jun 2009 20:13:28 -0400 Received: from [192.168.1.2] (02-184.155.popsite.net [66.217.132.184]) (authenticated bits=0) by mail1.radix.net (8.13.4/8.13.4) with ESMTP id n5A0DJot024676; Tue, 9 Jun 2009 20:13:20 -0400 (EDT) Subject: [PATCH] tuner-xc2028: Fix 7 MHz DVB-T when used with zl10353 demod From: Andy Walls To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Terry Wu Date: Tue, 09 Jun 2009 20:14:12 -0400 Message-Id: <1244592852.3148.44.camel@palomino.walls.org> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org All, The following is a patch that gets 7 MHz DVB-T working for the Leadtek DVR3100 H. Any comments? Regards, Andy Signed-off-by: Andy Walls Tested-by: Terry Wu --- 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 -r fad35ab59848 linux/drivers/media/common/tuners/tuner-xc2028.c --- a/linux/drivers/media/common/tuners/tuner-xc2028.c Fri Jun 05 08:42:27 2009 -0400 +++ b/linux/drivers/media/common/tuners/tuner-xc2028.c Tue Jun 09 20:10:06 2009 -0400 @@ -1099,8 +1099,13 @@ } /* All S-code tables need a 200kHz shift */ - if (priv->ctrl.demod) + if (priv->ctrl.demod) { demod = priv->ctrl.demod + 200; + /* Terry Wu */ + if (priv->ctrl.demod == XC3028_FE_ZARLINK456 && + bw == BANDWIDTH_7_MHZ) + demod += 500; + } return generic_set_freq(fe, p->frequency, T_DIGITAL_TV, type, 0, demod);