From patchwork Fri Jan 20 04:34:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Denilson_Figueiredo_de_S=C3=A1?= X-Patchwork-Id: 9573 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro6Bg-000692-FI for patchwork@linuxtv.org; Fri, 20 Jan 2012 05:34:52 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-2) with esmtp for id 1Ro6Bf-0005PT-HY; Fri, 20 Jan 2012 05:34:51 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751175Ab2ATEea (ORCPT ); Thu, 19 Jan 2012 23:34:30 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:46376 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750938Ab2ATEe3 convert rfc822-to-8bit (ORCPT ); Thu, 19 Jan 2012 23:34:29 -0500 Received: by iagf6 with SMTP id f6so322342iag.19 for ; Thu, 19 Jan 2012 20:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=YGEHkMYZnAUTdtlMShqLEsAaLir9OwsaZKm3JTfknF4=; b=Xt1pI50Ul3memPUAHN9xKRCixkxZmicWty5zPWPfSaa8YvZ0ZJ0KlYRPtNXKsXoed0 VerZr8qqHBlqCAAp0nA2coqrDWGJnF7ZyPQnMm0hQL2gUCLSbumUZSIcd7v5+Chc1aBm XOyt6IKkNUsAXl9LARPH/4ilN+ITjaWEIczPU= Received: by 10.43.131.196 with SMTP id hr4mr24492788icc.55.1327034069293; Thu, 19 Jan 2012 20:34:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.67.136 with HTTP; Thu, 19 Jan 2012 20:34:08 -0800 (PST) In-Reply-To: <4F182BCF.60303@redhat.com> References: <4F182BCF.60303@redhat.com> From: =?UTF-8?Q?Denilson_Figueiredo_de_S=C3=A1?= Date: Fri, 20 Jan 2012 02:34:08 -0200 Message-ID: Subject: Re: Siano DVB USB device called "Smart Plus" To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.1.20.42115 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FORGED_FROM_GMAIL 0.1, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, FROM_NAME_PHRASE 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS ' On Thu, Jan 19, 2012 at 12:42, Mauro Carvalho Chehab wrote: > > From the product page, it is a 1-seg device. So, it likely uses a sms1xxx > chip. Correct, Siano SMS1140. > You'll likely need to add a new board entry there for it, and discover > the GPIO pins linked to the leds and infrared (the numbers for .board_cfg > and .led* on the above data structure). You can do it by either sniffing > the USB board traffic or by opening the device and carefully examining the > board tracks. I've added two photos of the circuit here: http://linuxtv.org/wiki/index.php/Smart_Plus Considering there are these lines at sms-usb.c: { USB_DEVICE(0x187f, 0x0202), .driver_info = SMS1XXX_BOARD_SIANO_NICE }, I thought I didn't need to add a new board entry, just update the current one. Then I added a few lines, as shown below, but it seems the driver still tries to load "dvb_nova_12mhz_b0.inp" instead of "isdbt_nova_12mhz_b0.inp". If I rename (or symlink) the firmware file, the driver loads the firmware. After smsdvb module gets loaded, then there is a /dev/dvb/ entry for my device, but still the programs I tried (w_scan and vlc) don't find any channels. About the GPIO pins: even on Windows, the only LED from this device does not blink. So I don't care about LED feedback. Also, right now I'm not worried about IR remote, so I'm leaving that out. Anyway, I can supply some usb logs if they would help debugging this. --- sms-cards.c.orig 2012-01-20 00:42:47.000000000 -0200 +++ sms-cards.c 2012-01-20 01:05:11.000000000 -0200 @@ -92,6 +92,8 @@ /* 11 */ .name = "Siano Nice Digital Receiver", .type = SMS_NOVA_B0, + .fw[DEVICE_MODE_ISDBT_BDA] = "isdbt_nova_12mhz_b0.inp", + .rc_codes = RC_MAP_HAUPPAUGE, }, [SMS1XXX_BOARD_SIANO_VENICE] = { /* 12 */ @@ -299,6 +301,7 @@ case SMS1XXX_BOARD_HAUPPAUGE_WINDHAM: case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD: case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2: + case SMS1XXX_BOARD_SIANO_NICE: request_module("smsdvb"); break; default: