All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
       [not found] <200611131711.46626.j.suarez.agapito@gmail.com>
@ 2006-11-13 16:32 ` Michael Krufky
  2006-11-13 16:44   ` Linus Torvalds
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Krufky @ 2006-11-13 16:32 UTC (permalink / raw)
  To: José Suárez
  Cc: linux-dvb, Mauro Carvalho Chehab, Linus Torvalds, linux-kernel,
	pasky@ucw.cz

José Suárez wrote:
> Hi to everybody.
> 
> I am using an Avermedia 777 DVB-T pci card. It is a very nice card, and it's 
> been working perfectly for the last weeks. However I decided to make an 
> upgrade to the current revision of the v4l-dvb tree which includes support 
> for the remote control. After the upgrade whenever I start the TV (with 
> whatever program: kaffeine, mythtv,...) it happens just as if the TV card 
> kept sending keyboard events all the time and as a result, the volume mutes, 
> unmutes, amarok is launched,... (that's because I have a multimedia keyboard 
> and some keys are mapped to do that). For example, when I launch mythbackend 
> in a konsole window, the application starts, opens the TV card and suddenly 
> what happens is like if keys got pressed, so for example there appears 771935 
> in the console window.
> This happens all the time the TV card is open. I suggest that somebody takes a 
> look at the remote control code because there must be the problem, as I have 
> just installed the v4l-dvb revision which existed just before to the remote 
> control commitment.
> 
> All the best, José

The author of that patch had explained that he was unable to test it.  The patch
was merged into the v4l-dvb master development repository over the weekend, and
Mauro sent a pull request for this patch to go to 2.6.19 a few hours ago.  I 
don't know why this was sent to the 2.6.19 tree without first being tested. :-(

Mauro -- that patch needs fixing / more testing before it goes to mainstream...

Could you please remove that changeset from your git tree before Linus pulls it?

The problem changeset:

git commit 450efcfd2e1d941e302a8c89322fbfcef237be98

V4L/DVB (4814): Remote support for Avermedia 777

http://www.kernel.org/git/?p=linux/kernel/git/mchehab/v4l-dvb.git;a=commit;h=450efcfd2e1d941e302a8c89322fbfcef237be98


-- 
Michael Krufky


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
  2006-11-13 16:32 ` [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree Michael Krufky
@ 2006-11-13 16:44   ` Linus Torvalds
  2006-11-13 21:09     ` Michael Krufky
  2006-11-13 21:17     ` Petr Baudis
  0 siblings, 2 replies; 7+ messages in thread
From: Linus Torvalds @ 2006-11-13 16:44 UTC (permalink / raw)
  To: Michael Krufky
  Cc: José Suárez, linux-dvb, Mauro Carvalho Chehab,
	linux-kernel, pasky@ucw.cz

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1025 bytes --]



On Mon, 13 Nov 2006, Michael Krufky wrote:
> 
> Mauro -- that patch needs fixing / more testing before it goes to mainstream...
> 
> Could you please remove that changeset from your git tree before Linus pulls it?

Too late. Already pulled and pushed out.

Looking at the patch, one obvious bug stands out: the new case statement 
for SAA7134_BOARD_AVERMEDIA_777 doesn't have a "break" at the end.

José, can you test this trivial patch and see if it fixes things?

		Linus

---
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 7f62403..dee8355 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -202,6 +202,7 @@ int saa7134_input_init1(struct saa7134_d
 		/* Without this we won't receive key up events */
 		saa_setb(SAA7134_GPIO_GPMODE1, 0x1);
 		saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
+		break;
 	case SAA7134_BOARD_KWORLD_TERMINATOR:
 		ir_codes     = ir_codes_pixelview;
 		mask_keycode = 0x00001f;

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
  2006-11-13 16:44   ` Linus Torvalds
@ 2006-11-13 21:09     ` Michael Krufky
  2006-11-13 21:23       ` Mauro Carvalho Chehab
  2006-11-13 21:17     ` Petr Baudis
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Krufky @ 2006-11-13 21:09 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: José Suárez, linux-dvb, Mauro Carvalho Chehab,
	linux-kernel, pasky@ucw.cz, v4l-dvb maintainer list

Linus Torvalds wrote:
> 
> On Mon, 13 Nov 2006, Michael Krufky wrote:
>> Mauro -- that patch needs fixing / more testing before it goes to mainstream...
>>
>> Could you please remove that changeset from your git tree before Linus pulls it?
> 
> Too late. Already pulled and pushed out.
> 
> Looking at the patch, one obvious bug stands out: the new case statement 
> for SAA7134_BOARD_AVERMEDIA_777 doesn't have a "break" at the end.
> 
> José, can you test this trivial patch and see if it fixes things?
> 
> 		Linus
> 
> ---
> diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
> index 7f62403..dee8355 100644
> --- a/drivers/media/video/saa7134/saa7134-input.c
> +++ b/drivers/media/video/saa7134/saa7134-input.c
> @@ -202,6 +202,7 @@ int saa7134_input_init1(struct saa7134_d
>  		/* Without this we won't receive key up events */
>  		saa_setb(SAA7134_GPIO_GPMODE1, 0x1);
>  		saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1);
> +		break;
>  	case SAA7134_BOARD_KWORLD_TERMINATOR:
>  		ir_codes     = ir_codes_pixelview;
>  		mask_keycode = 0x00001f;


Thanks for the fix, Linus... I see that you've already pushed this into git, so
I've added it to my v4l-dvb hg development tree.

Jose, you can use this tree for testing, if you don't want to apply the patch by hand.

Mauro, please pull from:

http://linuxtv.org/hg/~mkrufky/v4l-dvb

for the following:

- saa7134: Fix missing 'break' for avermedia card case

 saa7134-input.c |    1 +
 1 file changed, 1 insertion(+)

Cheers,

Michael Krufky


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged  into v4l-dvb tree
  2006-11-13 16:44   ` Linus Torvalds
  2006-11-13 21:09     ` Michael Krufky
@ 2006-11-13 21:17     ` Petr Baudis
  1 sibling, 0 replies; 7+ messages in thread
From: Petr Baudis @ 2006-11-13 21:17 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Michael Krufky, José Suárez, linux-dvb,
	Mauro Carvalho Chehab, linux-kernel

On Mon, Nov 13, 2006 at 05:44:16PM CET, Linus Torvalds wrote:
> Looking at the patch, one obvious bug stands out: the new case statement 
> for SAA7134_BOARD_AVERMEDIA_777 doesn't have a "break" at the end.

Oh, sorry about that. :-( I was splitting the patch to multiple ones and
merging it with Jose Alberto's, and apparently this got lost somewhere
in the process...

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
  2006-11-13 21:09     ` Michael Krufky
@ 2006-11-13 21:23       ` Mauro Carvalho Chehab
  2006-11-14  3:45         ` José Suárez
  0 siblings, 1 reply; 7+ messages in thread
From: Mauro Carvalho Chehab @ 2006-11-13 21:23 UTC (permalink / raw)
  To: Michael Krufky, pasky@ucw.cz
  Cc: Linus Torvalds, José Suárez, linux-dvb, linux-kernel,
	v4l-dvb maintainer list

Em Seg, 2006-11-13 às 16:09 -0500, Michael Krufky escreveu:
> Linus Torvalds wrote:
> > 
> > On Mon, 13 Nov 2006, Michael Krufky wrote:
> >> Mauro -- that patch needs fixing / more testing before it goes to mainstream...
> >>
> >> Could you please remove that changeset from your git tree before Linus pulls it?
> > 
> > Too late. Already pulled and pushed out.
> > 
> > Looking at the patch, one obvious bug stands out: the new case statement 
> > for SAA7134_BOARD_AVERMEDIA_777 doesn't have a "break" at the end.
> > 
> > José, can you test this trivial patch and see if it fixes things?
Yes, this should fix the issue. It passed by my eyes :(

> Mauro, please pull from:
> 
> http://linuxtv.org/hg/~mkrufky/v4l-dvb
> 
> for the following:
> 
> - saa7134: Fix missing 'break' for avermedia card case

Ok, I've updated also master development tree at 
http://linuxtv.org/hg/v4l-dvb

Pasky,

Please test it also.

Cheers, 
Mauro.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
  2006-11-13 21:23       ` Mauro Carvalho Chehab
@ 2006-11-14  3:45         ` José Suárez
  2006-11-14  4:28           ` Petr Baudis
  0 siblings, 1 reply; 7+ messages in thread
From: José Suárez @ 2006-11-14  3:45 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Michael Krufky, pasky@ucw.cz, Linus Torvalds, linux-dvb,
	linux-kernel, v4l-dvb maintainer list

El Lunes 13 Noviembre 2006 22:23, Mauro Carvalho Chehab escribió:
> Em Seg, 2006-11-13 às 16:09 -0500, Michael Krufky escreveu:
> > Linus Torvalds wrote:
> > > On Mon, 13 Nov 2006, Michael Krufky wrote:
> > >> Mauro -- that patch needs fixing / more testing before it goes to
> > >> mainstream...
> > >>
> > >> Could you please remove that changeset from your git tree before Linus
> > >> pulls it?
> > >
> > > Too late. Already pulled and pushed out.
> > >
> > > Looking at the patch, one obvious bug stands out: the new case
> > > statement for SAA7134_BOARD_AVERMEDIA_777 doesn't have a "break" at the
> > > end.
> > >
> > > José, can you test this trivial patch and see if it fixes things?
>
> Yes, this should fix the issue. It passed by my eyes :(
>
> > Mauro, please pull from:
> >
> > http://linuxtv.org/hg/~mkrufky/v4l-dvb
> >
> > for the following:
> >
> > - saa7134: Fix missing 'break' for avermedia card case
>
> Ok, I've updated also master development tree at
> http://linuxtv.org/hg/v4l-dvb
>
> Pasky,
>
> Please test it also.
>
> Cheers,
> Mauro.

The Avermedia 777 is working perfectly again with the current v4l-dvb tree. No 
more misbehaviours. Looks like you guys addressed and resolved the issue 
quite fast :)
At the moment I can't give the remote control a try because lirc doesn't 
compile against version 2.6.18 of the kernel. If that lirc issue gets solved, 
I will try to use it as soon as I can.

All the best.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree
  2006-11-14  3:45         ` José Suárez
@ 2006-11-14  4:28           ` Petr Baudis
  0 siblings, 0 replies; 7+ messages in thread
From: Petr Baudis @ 2006-11-14  4:28 UTC (permalink / raw)
  To: José Suárez
  Cc: Mauro Carvalho Chehab, Michael Krufky, Linus Torvalds, linux-dvb,
	linux-kernel, v4l-dvb maintainer list

On Tue, Nov 14, 2006 at 04:45:29AM CET, José Suárez wrote:
> At the moment I can't give the remote control a try because lirc doesn't 
> compile against version 2.6.18 of the kernel. If that lirc issue gets solved, 
> I will try to use it as soon as I can.

  Note that in lircd, you should use the input device driver
("devinput"). The saa7134 driver will create a random input event device
for the events; I use this udev rule to create a /dev/remote symlink
pointing at the right device:

	KERNEL="event*", SYSFS{name}="saa7134 IR*", NAME="input/%k", SYMLINK="remote"

  Furthermore, especially if you have problems with lircd, having the
full-blown daemon for the event interface may not be worth it. There is
a standalone inputlircd package containing a much simpler daemon which
is compatible with lirc client applications but takes the events just
from the input devices. You can run it e.g. like:

	/usr/sbin/inputlircd /dev/remote -g -m 0

  You can find an example mplayer lirc configuration at:

	http://pasky.or.cz/~pasky/dev/v4l/lircrc

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-11-14  4:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200611131711.46626.j.suarez.agapito@gmail.com>
2006-11-13 16:32 ` [linux-dvb] Avermedia 777 misbehaves after remote hack merged into v4l-dvb tree Michael Krufky
2006-11-13 16:44   ` Linus Torvalds
2006-11-13 21:09     ` Michael Krufky
2006-11-13 21:23       ` Mauro Carvalho Chehab
2006-11-14  3:45         ` José Suárez
2006-11-14  4:28           ` Petr Baudis
2006-11-13 21:17     ` Petr Baudis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.