From patchwork Sun Jan 25 21:07:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Lasnier X-Patchwork-Id: 12699 Received: from yx-out-2324.google.com ([74.125.44.30]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LRCCp-00080l-W9 for vdr@linuxtv.org; Sun, 25 Jan 2009 22:07:48 +0100 Received: by yx-out-2324.google.com with SMTP id 8so2432926yxg.41 for ; Sun, 25 Jan 2009 13:07:42 -0800 (PST) Received: by 10.65.83.1 with SMTP id k1mr2508222qbl.128.1232917662164; Sun, 25 Jan 2009 13:07:42 -0800 (PST) Received: from ?192.168.0.101? ([72.11.181.142]) by mx.google.com with ESMTPS id p6sm23813612qbp.34.2009.01.25.13.07.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 13:07:41 -0800 (PST) Message-ID: <497CD49B.8070200@fepg.org> Date: Sun, 25 Jan 2009 16:07:39 -0500 From: Alex Lasnier User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: vdr@linuxtv.org X-LSpam-Score: -2.2 (--) X-LSpam-Report: No, score=-2.2 required=5.0 tests=AWL=0.433, BAYES_00=-2.599 autolearn=ham Subject: [vdr] [PATCH] ATSC for VDR 1.7.4 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2009 21:07:49 -0000 Status: O X-Status: X-Keywords: X-UID: 19369 Hi all, This patch adds ATSC support to VDR 1.7.4. Klaus, would you consider adding this to VDR? Regards, Alex Lasnier diff -u vdr-1.7.4.orig/dvbdevice.c vdr-1.7.4/dvbdevice.c --- vdr-1.7.4.orig/dvbdevice.c 2009-01-10 05:07:33.000000000 -0500 +++ vdr-1.7.4/dvbdevice.c 2009-01-25 15:23:21.000000000 -0500 @@ -319,6 +319,16 @@ tuneTimeout = DVBT_TUNE_TIMEOUT; lockTimeout = DVBT_LOCK_TIMEOUT; } + else if (frontendType == SYS_ATSC) { + // ATSC + SETCMD(DTV_DELIVERY_SYSTEM, frontendType); + SETCMD(DTV_FREQUENCY, FrequencyToHz(channel.Frequency())); + SETCMD(DTV_INVERSION, channel.Inversion()); + SETCMD(DTV_MODULATION, channel.Modulation()); + + tuneTimeout = DVBT_TUNE_TIMEOUT; + lockTimeout = DVBT_LOCK_TIMEOUT; + } else { esyslog("ERROR: attempt to set channel with unknown DVB frontend type"); return false; @@ -856,7 +866,7 @@ return type == cSource::stNone || type == cSource::stCable && (frontendType == SYS_DVBC_ANNEX_AC || frontendType == SYS_DVBC_ANNEX_B) || type == cSource::stSat && (frontendType == SYS_DVBS || frontendType == SYS_DVBS2) - || type == cSource::stTerr && (frontendType == SYS_DVBT); + || type == cSource::stTerr && (frontendType == SYS_DVBT || frontendType == SYS_ATSC); } bool cDvbDevice::ProvidesTransponder(const cChannel *Channel) const