From patchwork Sun May 31 12:41:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Walls X-Patchwork-Id: 27110 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 n4VCeFqT013705 for ; Sun, 31 May 2009 12:40:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752750AbZEaMkI (ORCPT ); Sun, 31 May 2009 08:40:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752832AbZEaMkI (ORCPT ); Sun, 31 May 2009 08:40:08 -0400 Received: from mail1.radix.net ([207.192.128.31]:56773 "EHLO mail1.radix.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752750AbZEaMkI (ORCPT ); Sun, 31 May 2009 08:40:08 -0400 Received: from [192.168.1.2] (02-164.155.popsite.net [66.217.132.164]) (authenticated bits=0) by mail1.radix.net (8.13.4/8.13.4) with ESMTP id n4VCdxuJ013026; Sun, 31 May 2009 08:40:00 -0400 (EDT) Subject: [PATCH] xc2028: Add support for Taiwan 6 MHz DVB-T From: Andy Walls To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Terry Wu Date: Sun, 31 May 2009 08:41:43 -0400 Message-Id: <1243773703.3133.24.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 This is a patch with changes provided by Terry Wu to support 6 MHz DVB-T as is deployed in Taiwan. I took quick look at the changes and they look OK to me, but I'm no expert on the XC2028/XC3028 deivces. My one observation is that the change assumes all COFDM frontends can support QAM (FE_CAN_QAM..). This is apparently the case looking through all the Linux supported FE_OFDM frontends, and it seems like a reasonable assumption to me. Terry, Please check the diff below, to make sure I captured all your changes. For inclusion into the kernel, you will need to provide a "Signed-off-by:" in a rely to this patch list posting. Please see: http://www.linuxtv.org/wiki/index.php/Development:_Submitting_Patches#Developer.27s_Certificate_of_Origin_1.1 Regards, Andy --- 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 8291f6042c9a linux/drivers/media/common/tuners/tuner-xc2028.c --- a/linux/drivers/media/common/tuners/tuner-xc2028.c Fri May 29 21:19:25 2009 -0400 +++ b/linux/drivers/media/common/tuners/tuner-xc2028.c Sun May 31 08:29:32 2009 -0400 @@ -925,6 +925,9 @@ rc = send_seq(priv, {0x00, 0x00}); } else if (priv->cur_fw.type & ATSC) { offset = 1750000; + } else if (priv->cur_fw.type & DTV6) { + /* For Taiwan DVB-T 6 MHz bandwidth - Terry Wu */ + offset = 1750000; } else { offset = 2750000; /* @@ -1026,6 +1029,11 @@ switch(fe->ops.info.type) { case FE_OFDM: bw = p->u.ofdm.bandwidth; + /* For Taiwan DVB-T 6 MHz bandwidth - Terry Wu */ + if (bw == BANDWIDTH_6_MHZ) { + type |= (DTV6|QAM|D2633); + priv->ctrl.type = XC2028_D2633; + } break; case FE_QAM: tuner_info("WARN: There are some reports that "