From patchwork Tue Jul 6 10:23:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: renzo dani X-Patchwork-Id: 110394 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o66AO9mi018503 for ; Tue, 6 Jul 2010 10:24:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754621Ab0GFKXp (ORCPT ); Tue, 6 Jul 2010 06:23:45 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:47399 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754241Ab0GFKXo (ORCPT ); Tue, 6 Jul 2010 06:23:44 -0400 Received: by fxm14 with SMTP id 14so4596173fxm.19 for ; Tue, 06 Jul 2010 03:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=8GJjDNcu4LDVpYsyLqlvqTK0KTmLXSjbkZcb1f1qCMQ=; b=wLz3skeq3FKopoXCY9RQxT287vqJBadXg8ll7Z3dIrEDZ/unfFuqnsVls6CQ/08eLN ZRnXlALX8l5gv6GEvJ0MHLx6PHIQ1Uhcfua+PDFfXLmruQZn1LoqmmehQBEGRjcedHrb xcWEZl95CHPvOTnfmQkFrkPMSht9XlJLZaFXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=IUh5s3UjGo5x4/JBM7Nonq0+aO4ajdYfGOZBllfF79F2GEIVo0uJMqE1jJgqR2aAWk soUu8oLW1BD+cUd88XzBERRCN18TIaNph4Y1B6/wD+fTu6HsclTKhjo3SQhf98Eclp6y tlK4Qfz4827TK/UKhLpU32DkayMPR+kV/iG9c= Received: by 10.223.122.141 with SMTP id l13mr3898179far.25.1278411823100; Tue, 06 Jul 2010 03:23:43 -0700 (PDT) Received: from aronsmini (188-92.60-188.cust.bluewin.ch [188.60.92.188]) by mx.google.com with ESMTPS id 13sm1853915faw.3.2010.07.06.03.23.41 (version=SSLv3 cipher=RC4-MD5); Tue, 06 Jul 2010 03:23:42 -0700 (PDT) From: Renzo Dani To: mchehab@infradead.org Cc: arons7@gmail.com, rdunlap@xenotime.net, o.endriss@gmx.de, awalls@radix.net, crope@iki.fi, manu@linuxtv.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 2/2] Retrieve firmware for az6027 Date: Tue, 6 Jul 2010 12:23:33 +0200 Message-Id: <1278411813-6464-1-git-send-email-arons7@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 06 Jul 2010 10:24:09 +0000 (UTC) diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 239cbdb..9ea94dc 100644 --- a/Documentation/dvb/get_dvb_firmware +++ b/Documentation/dvb/get_dvb_firmware @@ -26,7 +26,7 @@ use IO::Handle; "dec3000s", "vp7041", "dibusb", "nxt2002", "nxt2004", "or51211", "or51132_qam", "or51132_vsb", "bluebird", "opera1", "cx231xx", "cx18", "cx23885", "pvrusb2", "mpc718", - "af9015", "ngene"); + "af9015", "ngene", "az6027"); # Check args syntax() if (scalar(@ARGV) != 1); @@ -567,6 +567,23 @@ sub ngene { "$file1, $file2"; } +sub az6027{ + my $file = "AZ6027_Linux_Driver.tar.gz"; + my $url = "http://linux.terratec.de/files/$file"; + my $firmware = "dvb-usb-az6027-03.fw"; + + wgetfile($file, $url); + + #untar + if( system("tar xzvf $file $firmware")){ + die "failed to untar firmware"; + } + if( system("rm $file")){ + die ("unable to remove unnecessary files"); + } + + $firmware; +} # --------------------------------------------------------------- # Utilities