Skip to contentSkip to conversation

Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]

PATCH Richard Zidlicky 3 participants 7 messages Nov 15, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

for some users (thats at least one user in Italy and me) the following is required:

drivers/media/dvb/siano/sms-cards.c 2010-11-15 11:54:25.000000000 +0100 renamed from drivers/media/dvb/siano/sms-cards.c.rz 2010-11-15 11:16:56.000000000 +0100 +4 -1
@@ -17,6 +17,9 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+//#include <media/ir-kbd-i2c.h>
+//#include <media/ir-core.h>
+
 #include "sms-cards.h"
 #include "smsir.h"
 
@@ -64,7 +67,7 @@
                .type   = SMS_NOVA_B0,
                .fw[DEVICE_MODE_ISDBT_BDA] = "sms1xxx-hcw-55xxx-isdbt-02.fw",
                .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-02.fw",
-               .rc_codes = RC_MAP_RC5_HAUPPAUGE_NEW,
+               .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
                .board_cfg.leds_power = 26,
                .board_cfg.led0 = 27,
                .board_cfg.led1 = 28,

What is the way to achieve the effect without recompiling the kernel - is there any? Could we combine the keymaps - as I understand it all RC5 maps could be combined into one huge map without any problems except memory usage?

Richard

#1 lore raw
Quoted 1 line · Richard Zidlicky

Hi,

<snip>

Quoted 1 line

What is the way to achieve the effect without recompiling the kernel - is there any?

On Ubuntu kernel list Chao Zhang asked the same question. Answer:
[quote]
You might find following links useful:

http://tldp.org/LDP/lkmpg/2.6/html/x181.html
http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html
[/quote]

And I think you will like Greg's presentation:
http://www.youtube.com/watch?v=LLBrBBImJt4
(mentioned for people who do not have time to read docs)

#2 lore raw
Quoted 5 lines · Anca Emanuel
Quoted 1 line · Richard Zidlicky

Hi,

<snip>

Quoted 1 line

What is the way to achieve the effect without recompiling the kernel - is there any?

Quoted 8 lines

On Ubuntu kernel list Chao Zhang asked the same question. Answer:
[quote]
You might find following links useful:

http://tldp.org/LDP/lkmpg/2.6/html/x181.html
http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html
[/quote]

thanks, personally I have no problem with recompiling the kernel and doing it anyways
- I was hoping the new IR framework has something equivalent to a loadkeys. Maybe even loadkeys would work? Not tried yet and it certainly would require some work to define the keymaps and such.

In any case for the average user there must be something better than patching the kernel.

Richard

#3 lore raw
In reply to Richard Zidlicky
Quoted 26 lines · Richard Zidlicky

Hi,

for some users (thats at least one user in Italy and me) the following is required:

drivers/media/dvb/siano/sms-cards.c 2010-11-15 11:54:25.000000000 +0100 renamed from drivers/media/dvb/siano/sms-cards.c.rz 2010-11-15 11:16:56.000000000 +0100 +4 -1
@@ -17,6 +17,9 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+//#include <media/ir-kbd-i2c.h>
+//#include <media/ir-core.h>
+
 #include "sms-cards.h"
 #include "smsir.h"
 
@@ -64,7 +67,7 @@
                .type   = SMS_NOVA_B0,
                .fw[DEVICE_MODE_ISDBT_BDA] = "sms1xxx-hcw-55xxx-isdbt-02.fw",
                .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-02.fw",
-               .rc_codes = RC_MAP_RC5_HAUPPAUGE_NEW,
+               .rc_codes = RC_MAP_DIB0700_RC5_TABLE,
                .board_cfg.leds_power = 26,
                .board_cfg.led0 = 27,
                .board_cfg.led1 = 28,
Quoted 3 lines

What is the way to achieve the effect without recompiling the kernel - is there any? Could we combine the keymaps - as I understand it all RC5 maps could be combined into one huge map without any problems except memory usage?

You apparently can use the keytable program to twiddle sysfs nodes or the /dev/input nodes, I think:

http://git.linuxtv.org/v4l-utils.git?a=tree;f=utils/keytable;h=e599a8b5288517fc7fe58d96f44f28030b04afbc;hb=HEAD

DocBook documentation source is here:

http://git.linuxtv.org/media_tree.git?a=tree;f=Documentation/DocBook/v4l;h=a3e5448a4703ef0bd35fc5910bd990b2a3ca306c;hb=staging/for_v2.6.37-rc1

Human readable documentation is here:

http://linuxtv.org/downloads/v4l-dvb-apis/v4ldvb_common.html

Regards,
Andy

#5 lore raw
Quoted 10 lines · Richard Zidlicky
Quoted 3 lines · Andy Walls

On Mon, 2010-11-15 at 12:27 +0100, Richard Zidlicky wrote:

http://git.linuxtv.org/v4l-utils.git?a=tree;f=utils/keytable;h=e599a8b5288517fc7fe58d96f44f28030b04afbc;hb=HEAD

thanks, that should do the trick.

In addition I am wondering if the maps of the two remotes that apparently get bundled with the MiniStick should not be merged into one map in the kernel sources so the most common cases are covered?

I have a certain case where I would like the maps of two bundled remotes both to be loaded - one an RC-5 and one an RC-6 - for a receiver on the HVR-1850 and friends.

I recall there's something in the works about allowing multiple input devices per remote control receiver. (I haven't been paying as much attention as I should.) So maybe one day...

Regards,
Andy

Quoted 1 line

Richard

#6 lore raw
Quoted 8 lines · Andy Walls
Quoted 7 lines · Richard Zidlicky
Quoted 3 lines · Andy Walls

On Mon, 2010-11-15 at 12:27 +0100, Richard Zidlicky wrote:

http://git.linuxtv.org/v4l-utils.git?a=tree;f=utils/keytable;h=e599a8b5288517fc7fe58d96f44f28030b04afbc;hb=HEAD

thanks, that should do the trick.

Quoted 7 lines
Quoted 3 lines

In addition I am wondering if the maps of the two remotes that apparently get bundled with the MiniStick should not be merged into one map in the kernel sources so the most common cases are covered?

I have a certain case where I would like the maps of two bundled remotes both to be loaded - one an RC-5 and one an RC-6 - for a receiver on the HVR-1850 and friends.

looks a bit more twisted. In the case of the siano reciever it should be simpler. Apparently it has been bundled with 2 different rc5 type remotes and normal users will have either one of them. So technically it is very easy to provide a table that serves both cases.

Richard