From patchwork Sun Jul 3 16:53:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Endriss X-Patchwork-Id: 361 Return-path: Envelope-to: mchehab@pedra Delivery-date: Sun, 03 Jul 2011 13:58:53 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1QdQ0S-0000d9-MZ for mchehab@pedra; Sun, 03 Jul 2011 13:58:53 -0300 Received: from mail.corp.redhat.com [10.5.5.51] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Sun, 03 Jul 2011 13:58:52 -0300 (BRT) Received: from zmta01.collab.prod.int.phx2.redhat.com (LHLO zmta01.collab.prod.int.phx2.redhat.com) (10.5.5.31) by mail05.corp.redhat.com with LMTP; Sun, 3 Jul 2011 12:57:43 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zmta01.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 46ED591B51 for ; Sun, 3 Jul 2011 12:57:43 -0400 (EDT) Received: from zmta01.collab.prod.int.phx2.redhat.com ([127.0.0.1]) by localhost (zmta01.collab.prod.int.phx2.redhat.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10ghy79Ap++z for ; Sun, 3 Jul 2011 12:57:43 -0400 (EDT) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by zmta01.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 3509291B48 for ; Sun, 3 Jul 2011 12:57:43 -0400 (EDT) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p63Gvh0p004674 for ; Sun, 3 Jul 2011 12:57:43 -0400 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.redhat.com (8.14.4/8.14.4) with SMTP id p63GvfHf010473 for ; Sun, 3 Jul 2011 12:57:42 -0400 Received: (qmail invoked by alias); 03 Jul 2011 16:57:40 -0000 Received: from p5DE56C0C.dip.t-dialin.net (HELO charon.escape-edv.de) [93.229.108.12] by mail.gmx.net (mp007) with SMTP; 03 Jul 2011 18:57:40 +0200 X-Authenticated: #476490 X-Provags-ID: V01U2FsdGVkX19dqWgcM+Bd8aCJKRR7wJYBDneRh8bb+Wlb8jlade kMm90/jEir+meL Received: from orion.escape-edv.de (192.168.1.10) by charon.escape-edv.de (192.168.1.9) with esmtp ; Sun, 03 Jul 2011 18:56:26 +0200 From: Oliver Endriss Organization: ESCAPE GmbH EDV-Loesungen To: linux-media@vger.kernel.org Subject: [PATCH 07/16] get_dvb_firmware: Get DRX-K firmware for Digital Devices DVB-CT cards Date: Sun, 3 Jul 2011 18:53:50 +0200 User-Agent: KMail/1.9.6 Cc: Mauro Carvalho Chehab References: <201107031831.20378@orion.escape-edv.de> In-Reply-To: <201107031831.20378@orion.escape-edv.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201107031853.51404@orion.escape-edv.de> X-Y-GMX-Trusted: 0 X-RedHat-Spam-Score: 0.001 (FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.17 Sender: Get DRX-K firmware for Digital Devices DVB-CT cards Signed-off-by: Oliver Endriss --- Documentation/dvb/get_dvb_firmware | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 3348d31..224d9e6 100644 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware @@ -27,7 +27,7 @@ use IO::Handle; "or51211", "or51132_qam", "or51132_vsb", "bluebird", "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", "af9015", "ngene", "az6027", "lme2510_lg", "lme2510c_s7395", - "lme2510c_s7395_old"); + "lme2510c_s7395_old", "drxk"); # Check args syntax() if (scalar(@ARGV) != 1); @@ -634,6 +634,24 @@ sub lme2510c_s7395_old { $outfile; } +sub drxk { + my $url = "http://l4m-daten.de/files/"; + my $zipfile = "DDTuner.zip"; + my $hash = "f5a37b9a20a3534997997c0b1382a3e5"; + my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1); + my $drvfile = "DDTuner.sys"; + my $fwfile = "drxk_a3.mc"; + + checkstandard(); + + wgetfile($zipfile, $url . $zipfile); + verify($zipfile, $hash); + unzip($zipfile, $tmpdir); + extract("$tmpdir/$drvfile", 0x14dd8, 15634, "$fwfile"); + + "$fwfile" +} + # --------------------------------------------------------------- # Utilities