From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1614 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755809Ab0HCNcD (ORCPT ); Tue, 3 Aug 2010 09:32:03 -0400 Message-ID: <4C581A5F.5020403@redhat.com> Date: Tue, 03 Aug 2010 10:32:15 -0300 From: Mauro Carvalho Chehab MIME-Version: 1.0 To: Richard Zidlicky CC: linux-media@vger.kernel.org, udia@siano-ms.com, Michael Krufky Subject: Re: [PATCH 3/6] V4L/DVB: smsusb: enable IR port for Hauppauge WinTV MiniStick References: <20100801171718.5ad62978@pedra> <20100802072711.GA5852@linux-m68k.org> <4C577888.30408@redhat.com> <20100803130552.GA9954@linux-m68k.org> In-Reply-To: <20100803130552.GA9954@linux-m68k.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Em 03-08-2010 10:05, Richard Zidlicky escreveu: > Hi, > >> Em 02-08-2010 04:27, Richard Zidlicky escreveu: >>> On Sun, Aug 01, 2010 at 05:17:18PM -0300, Mauro Carvalho Chehab wrote: >>>> Add the proper gpio port for WinTV MiniStick, with the information provided >>>> by Michael. >>>> >>>> Thanks-to: Michael Krufky >>>> Signed-off-by: Mauro Carvalho Chehab >>>> >>>> diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c >>>> index cff77e2..dcde606 100644 >>>> --- a/drivers/media/dvb/siano/sms-cards.c >>>> +++ b/drivers/media/dvb/siano/sms-cards.c >>>> @@ -67,6 +67,7 @@ static struct sms_board sms_boards[] = { >>>> .board_cfg.leds_power = 26, >>>> .board_cfg.led0 = 27, >>>> .board_cfg.led1 = 28, >>>> + .board_cfg.ir = 9, >>> ^^^^ >>> >>> are you sure about this? >>> >>> I am using the value of 4 for the ir port and it definitely works.. confused. >> >> I got this from a reliable source, and that worked perfectly my with a Model 55009 >> LF Rev B1F7. What's the model of your device? > > mine says > > Aug 3 14:58:10 localhost kernel: [149778.591862] usb 5-5: New USB device found, idVendor=2040, idProduct=5500 > Aug 3 14:58:10 localhost kernel: [149778.591865] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > Aug 3 14:58:10 localhost kernel: [149778.591868] usb 5-5: Product: WinTV MiniStick > Aug 3 14:58:10 localhost kernel: [149778.591870] usb 5-5: Manufacturer: Hauppauge Computer Works > Aug 3 14:58:10 localhost kernel: [149778.591872] usb 5-5: SerialNumber: f069684c > > not sure what else to report. The model number is on a label at the back of the stick (at least, mine have it). > I will compile and try a new kernel tonight. > > Wondering - is this > http://git.sliepen.org/browse?p=inputlirc > usefull to feed the input events to LIRC when trying the new driver with a slightly older > LIRC based distro? The in-kernel lirc support need a new version of LIRC since a few ioctls numbers were changed, to avoid needing to write a code in kernel to handle compatibility between 32 and 64 bit kernels. If you're running a 32 bits kernel, it may work. Btw, you don't need to use lirc if all you want is to replace the IR keycodes. You can use, instead, the ir-keycode program, available at http://git.linuxtv.org/v4l-utils.git. There are several keycode tables already mapped there. Of course, lirc offers some extra features. Cheers, Mauro.