Message ID | CACGt9ymVoDWyG8rt3psCT-PmZ7zeB_8YTjv5ZZQ-2Mx2-pteag@mail.gmail.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) 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 <patchwork@linuxtv.org> 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 <rfc822;patchwork@linuxtv.org>); 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 <rfc822;linux-media@vger.kernel.org>); Thu, 19 Jan 2012 23:34:29 -0500 Received: by iagf6 with SMTP id f6so322342iag.19 for <linux-media@vger.kernel.org>; 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: <CACGt9y=8FzimyQPx7gJQ=gVqDp7cRUojT53gJq2+TNKhH37Wpg@mail.gmail.com> <4F182BCF.60303@redhat.com> From: =?UTF-8?Q?Denilson_Figueiredo_de_S=C3=A1?= <denilsonsa@gmail.com> Date: Fri, 20 Jan 2012 02:34:08 -0200 Message-ID: <CACGt9ymVoDWyG8rt3psCT-PmZ7zeB_8YTjv5ZZQ-2Mx2-pteag@mail.gmail.com> Subject: Re: Siano DVB USB device called "Smart Plus" To: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: linux-media@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> 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 ' |
Commit Message
Denilson Figueiredo de Sá
Jan. 20, 2012, 4:34 a.m. UTC
On Thu, Jan 19, 2012 at 12:42, Mauro Carvalho Chehab <mchehab@redhat.com> 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.
Comments
Em 20-01-2012 02:34, Denilson Figueiredo de Sá escreveu: > On Thu, Jan 19, 2012 at 12:42, Mauro Carvalho Chehab <mchehab@redhat.com> 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. You may need to add it anyway, as the device may not be equal to Siano Nice reference board. > 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". No. there's a parameter for the smsmdtv module to select the right standard: drivers/media/dvb/siano/smscoreapi.c:module_param(default_mode, int, 0644); You need to pass "default_mode=6" for ISDB-T to work. Just renaming the firmware won't work. Of course, the firmware name entry needs to be filled. Btw, adding both firmwares work, as the same device can likely be used in Europe with DVB-T. So, maybe we can add some parameter there to specify the default mode. Not sure if such change would be easy though. > > 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: > > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Jan 20, 2012 at 08:01, Mauro Carvalho Chehab <mchehab@redhat.com> wrote: > >> 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". > > No. there's a parameter for the smsmdtv module to select the right > standard: > > drivers/media/dvb/siano/smscoreapi.c:module_param(default_mode, int, 0644); > > You need to pass "default_mode=6" for ISDB-T to work. Just renaming > the firmware won't work. Of course, the firmware name entry needs to be > filled. Okay, I did: modprobe smsmdtv default_mode=6 Now it loads the correct firmware. But, still, neither vlc nor w_scan can find any channels. I bet it requires deeper debugging and more knowledge than what I have now.
--- 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: