From patchwork Mon Jun 28 09:57:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: renzo dani X-Patchwork-Id: 108325 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 o5S9wDvW022719 for ; Mon, 28 Jun 2010 09:58:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108Ab0F1J6L (ORCPT ); Mon, 28 Jun 2010 05:58:11 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:59752 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960Ab0F1J6J (ORCPT ); Mon, 28 Jun 2010 05:58:09 -0400 Received: by fxm14 with SMTP id 14so486681fxm.19 for ; Mon, 28 Jun 2010 02:58:06 -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=FV1OrK+WcqIT3DfClJ2yBzEP+byceVSB54tweSxtATY=; b=jnG8diLZCWtAE4q3TQoPM+tToC0hwAsDxSs2RRr0uwhQrjiLU/ZuR/2lHz7Przpwbn FBCLEJc2O6jDxrPzC4iMAG6M6SOcqz97n0U+YXvSGmdKSbN2q1xrL4JLc4JysmaxiqBh pjsww+sVpzFA8I15pX8U99hvigzZjXvqhcGZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ONpErAGRhYZwlFEEaEKm/BtAVinSzJMfFhYkUhVkaNovCEniqRSUrX7uM/diVyeEAL nctFlrvHsdAKzzHInarl+/zXmXClbDqCzrRuB2AGOkOfeigigCffqIvEJe2hmRJT6hUk nSDt6JlZ+ZY5fdYTzmXS//8ToVF2JI3XWccMo= Received: by 10.204.81.23 with SMTP id v23mr3365931bkk.57.1277719085964; Mon, 28 Jun 2010 02:58:05 -0700 (PDT) Received: from aronsmini (188-92.60-188.cust.bluewin.ch [188.60.92.188]) by mx.google.com with ESMTPS id u9sm17862893bkz.7.2010.06.28.02.58.04 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 02:58:05 -0700 (PDT) From: Renzo Dani To: adams.xu@azwave.com.cn Cc: arons7@gmail.com, mchehab@infradead.org, 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 1/1] Added Technisat Skystar USB HD CI Date: Mon, 28 Jun 2010 11:57:35 +0200 Message-Id: <1277719055-14585-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]); Mon, 28 Jun 2010 09:58:14 +0000 (UTC) diff --git a/Documentation/dvb/get_dvb_firmware b/Documentation/dvb/get_dvb_firmware index 239cbdb..c203e94 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")){ + die "failed to untar firmware"; + } + if( system("rm -rf AZ6027_Linux_Driver; rm $file")){ + die ("unable to remove unnecessary files"); + } + + $firmware; +} # --------------------------------------------------------------- # Utilities diff --git a/drivers/media/dvb/dvb-usb/az6027.c b/drivers/media/dvb/dvb-usb/az6027.c index d7290b2..891ae04 100644 --- a/drivers/media/dvb/dvb-usb/az6027.c +++ b/drivers/media/dvb/dvb-usb/az6027.c @@ -1103,13 +1103,23 @@ static struct dvb_usb_device_properties az6027_properties = { .rc_query = az6027_rc_query, .i2c_algo = &az6027_i2c_algo, - .num_device_descs = 1, + .num_device_descs = 2, .devices = { { .name = "AZUREWAVE DVB-S/S2 USB2.0 (AZ6027)", .cold_ids = { &az6027_usb_table[0], NULL }, .warm_ids = { NULL }, }, + { + .name = " Terratec DVB 2 CI", + .cold_ids = { &az6027_usb_table[1], NULL }, + .warm_ids = { NULL }, + }, + { + .name = "TechniSat SkyStar USB 2 HD CI (AZ6027)", + .cold_ids = { &az6027_usb_table[2], NULL }, + .warm_ids = { NULL }, + }, { NULL }, } }; @@ -1118,7 +1128,7 @@ static struct dvb_usb_device_properties az6027_properties = { static struct usb_driver az6027_usb_driver = { .name = "dvb_usb_az6027", .probe = az6027_usb_probe, - .disconnect = az6027_usb_disconnect, + .disconnect = az6027_usb_disconnect, .id_table = az6027_usb_table, };