* Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
@ 2010-11-15 11:27 Richard Zidlicky
2010-11-15 11:55 ` Anca Emanuel
2010-11-15 12:35 ` Andy Walls
0 siblings, 2 replies; 7+ messages in thread
From: Richard Zidlicky @ 2010-11-15 11:27 UTC (permalink / raw)
To: linux-media, mchehab; +Cc: stefano.pompa
Hi,
for some users (thats at least one user in Italy and me) the following is required:
--- linux-2.6.36/drivers/media/dvb/siano/sms-cards.c.rz 2010-11-15 11:16:56.000000000 +0100
+++ linux-2.6.36/drivers/media/dvb/siano/sms-cards.c 2010-11-15 11:54:25.000000000 +0100
@@ -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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 11:27 Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH] Richard Zidlicky
@ 2010-11-15 11:55 ` Anca Emanuel
2010-11-15 12:05 ` Richard Zidlicky
2010-11-15 12:35 ` Andy Walls
1 sibling, 1 reply; 7+ messages in thread
From: Anca Emanuel @ 2010-11-15 11:55 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: linux-media, mchehab, stefano.pompa
On Mon, Nov 15, 2010 at 1:27 PM, Richard Zidlicky <rz@linux-m68k.org> wrote:
> Hi,
<snip>
> 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)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 11:55 ` Anca Emanuel
@ 2010-11-15 12:05 ` Richard Zidlicky
0 siblings, 0 replies; 7+ messages in thread
From: Richard Zidlicky @ 2010-11-15 12:05 UTC (permalink / raw)
To: Anca Emanuel; +Cc: linux-media, mchehab, stefano.pompa
On Mon, Nov 15, 2010 at 01:55:00PM +0200, Anca Emanuel wrote:
> On Mon, Nov 15, 2010 at 1:27 PM, Richard Zidlicky <rz@linux-m68k.org> wrote:
> > Hi,
> <snip>
> > 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]
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 11:27 Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH] Richard Zidlicky
2010-11-15 11:55 ` Anca Emanuel
@ 2010-11-15 12:35 ` Andy Walls
2010-11-15 15:09 ` Richard Zidlicky
1 sibling, 1 reply; 7+ messages in thread
From: Andy Walls @ 2010-11-15 12:35 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: linux-media, mchehab, stefano.pompa
On Mon, 2010-11-15 at 12:27 +0100, Richard Zidlicky wrote:
> Hi,
>
> for some users (thats at least one user in Italy and me) the following is required:
>
> --- linux-2.6.36/drivers/media/dvb/siano/sms-cards.c.rz 2010-11-15 11:16:56.000000000 +0100
> +++ linux-2.6.36/drivers/media/dvb/siano/sms-cards.c 2010-11-15 11:54:25.000000000 +0100
> @@ -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?
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 12:35 ` Andy Walls
@ 2010-11-15 15:09 ` Richard Zidlicky
2010-11-15 21:59 ` Andy Walls
0 siblings, 1 reply; 7+ messages in thread
From: Richard Zidlicky @ 2010-11-15 15:09 UTC (permalink / raw)
To: Andy Walls; +Cc: linux-media, mchehab, stefano.pompa
On Mon, Nov 15, 2010 at 07:35:06AM -0500, Andy Walls wrote:
> 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?
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 15:09 ` Richard Zidlicky
@ 2010-11-15 21:59 ` Andy Walls
2010-11-15 22:57 ` Richard Zidlicky
0 siblings, 1 reply; 7+ messages in thread
From: Andy Walls @ 2010-11-15 21:59 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: linux-media, mchehab, stefano.pompa
On Mon, 2010-11-15 at 16:09 +0100, Richard Zidlicky wrote:
> On Mon, Nov 15, 2010 at 07:35:06AM -0500, Andy Walls wrote:
> > 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
> Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH]
2010-11-15 21:59 ` Andy Walls
@ 2010-11-15 22:57 ` Richard Zidlicky
0 siblings, 0 replies; 7+ messages in thread
From: Richard Zidlicky @ 2010-11-15 22:57 UTC (permalink / raw)
To: Andy Walls; +Cc: linux-media, mchehab, stefano.pompa
On Mon, Nov 15, 2010 at 04:59:24PM -0500, Andy Walls wrote:
> On Mon, 2010-11-15 at 16:09 +0100, Richard Zidlicky wrote:
> > On Mon, Nov 15, 2010 at 07:35:06AM -0500, Andy Walls wrote:
> > > 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.
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-15 22:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 11:27 Hauppauge WinTV MiniStick IR in 2.6.36 - [PATCH] Richard Zidlicky
2010-11-15 11:55 ` Anca Emanuel
2010-11-15 12:05 ` Richard Zidlicky
2010-11-15 12:35 ` Andy Walls
2010-11-15 15:09 ` Richard Zidlicky
2010-11-15 21:59 ` Andy Walls
2010-11-15 22:57 ` Richard Zidlicky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox