Skip to contentSkip to conversation

alsa es1371's joystick functionality broken in 2.6.11-mm4

DISCUSSION Patrick McFarland 7 participants 29 messages Mar 20, 2005 – May 11, 2005

lore
Share & tools
lore
#0 lore raw

It seems that the es1371 driver (which provides its own joystick port driver) is broken in at least 2.6.11-mm4. I don't know when it broke, but it used to work around in the 2.6.8/9 days (I haven't used the joystick in awhile). The hardware and joystick still both work (tested in Windows).

Where do I go from here?

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#1 lore raw
Quoted 6 lines · Patrick McFarland

It seems that the es1371 driver (which provides its own joystick port driver) is broken in at least 2.6.11-mm4. I don't know when it broke, but it used to work around in the 2.6.8/9 days (I haven't used the joystick in awhile). The hardware and joystick still both work (tested in Windows).

Please define "broken". I assume that audio still comes out, but that the joystick doesn't work?

#2 lore raw
Quoted 9 lines · Andrew Morton
Quoted 5 lines · Patrick McFarland

It seems that the es1371 driver (which provides its own joystick port driver) is broken in at least 2.6.11-mm4. I don't know when it broke, but it used to work around in the 2.6.8/9 days (I haven't used the joystick in awhile). The hardware and joystick still both work (tested in Windows).

Please define "broken". I assume that audio still comes out, but that the joystick doesn't work?

Yup, audio works fine, this is why I never noticed. Also, the external midi interface also works fine. Digging around, /proc/asound/card0/audiopci says "Joystick enable: off, Joystick port: 0x200".

I've also been looking through alsa's cvs for alsa-kernel, and I can't see any changes that might have broken it.

Also, I have a usb gamepad that currently works fine.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#3 lore raw
Quoted 11 lines · Patrick McFarland
Quoted 9 lines · Andrew Morton
Quoted 5 lines · Patrick McFarland

It seems that the es1371 driver (which provides its own joystick port driver) is broken in at least 2.6.11-mm4. I don't know when it broke, but it used to work around in the 2.6.8/9 days (I haven't used the joystick in awhile). The hardware and joystick still both work (tested in Windows).

Please define "broken". I assume that audio still comes out, but that the joystick doesn't work?

Quoted 7 lines

Yup, audio works fine, this is why I never noticed. Also, the external midi interface also works fine. Digging around, /proc/asound/card0/audiopci says "Joystick enable: off, Joystick port: 0x200".

I've also been looking through alsa's cvs for alsa-kernel, and I can't see any changes that might have broken it.

I could have broken it during my gameport sysfs integration... Although I can't see anything that could cause the breakage. Can I please see your .config?

Signature · 1 line
Dmitry
#4 lore raw
Quoted 3 lines · Dmitry Torokhov

I could have broken it during my gameport sysfs integration... Although I can't see anything that could cause the breakage. Can I please see your .config?

Here.

For the curious, what was the first kernel to be released that had your sysfs stuff in it?

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#5 lore raw
Quoted 7 lines · Patrick McFarland
Quoted 3 lines · Dmitry Torokhov

I could have broken it during my gameport sysfs integration... Although I can't see anything that could cause the breakage. Can I please see your .config?

Here.

Looks good, I was wondering if you had GAMEPORT=m and SND_ENS1371=y.

Quoted 3 lines

For the curious, what was the first kernel to be released that had your sysfs stuff in it?

2.6.11-mm and 2.6.12-rc1. Vanilla 2.6.11 does not have it.

Could you verify that you enabled joystick port on card? What does "cat /sys/module/snd_ens1371/parameters/joystick_port" show?

Signature · 1 line
Dmitry
#6 lore raw
Quoted 1 line · Dmitry Torokhov

Looks good, I was wondering if you had GAMEPORT=m and SND_ENS1371=y.

Yes, that would be quite silly. ;)

Quoted 4 lines
Quoted 2 lines

For the curious, what was the first kernel to be released that had your sysfs stuff in it?

2.6.11-mm and 2.6.12-rc1. Vanilla 2.6.11 does not have it.

I'll go compile 2.6.11 to see if it works there.

Quoted 2 lines

Could you verify that you enabled joystick port on card? What does "cat /sys/module/snd_ens1371/parameters/joystick_port" show?

0,0,0,0,0,0,0,0

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#7 lore raw
Quoted 8 lines · Patrick McFarland
Quoted 1 line · Dmitry Torokhov

Looks good, I was wondering if you had GAMEPORT=m and SND_ENS1371=y.

Yes, that would be quite silly. ;)

Quoted 3 lines
Quoted 2 lines

For the curious, what was the first kernel to be released that had your sysfs stuff in it?

Quoted 9 lines
Quoted 1 line

2.6.11-mm and 2.6.12-rc1. Vanilla 2.6.11 does not have it.

I'll go compile 2.6.11 to see if it works there.

Quoted 2 lines

Could you verify that you enabled joystick port on card? What does "cat /sys/module/snd_ens1371/parameters/joystick_port" show?

0,0,0,0,0,0,0,0

Ok, it looks like setup problem. Try doing:

modprobe snd-ens1371 joystick_port=1

Signature · 1 line
Dmitry
#8 lore raw
Quoted 13 lines · Dmitry Torokhov
Quoted 12 lines · Patrick McFarland
Quoted 1 line · Dmitry Torokhov

Looks good, I was wondering if you had GAMEPORT=m and SND_ENS1371=y.

Yes, that would be quite silly. ;)

Quoted 4 lines
Quoted 2 lines

For the curious, what was the first kernel to be released that had your sysfs stuff in it?

2.6.11-mm and 2.6.12-rc1. Vanilla 2.6.11 does not have it.

I'll go compile 2.6.11 to see if it works there.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Could you verify that you enabled joystick port on card? What does "cat /sys/module/snd_ens1371/parameters/joystick_port" show?

0,0,0,0,0,0,0,0

Ok, it looks like setup problem. Try doing:

modprobe snd-ens1371 joystick_port=1

I already tried that before I mailed the great and almighty source of all information kernely (aka the lkml). Infact, I tried both joystick=1 and joystick_port=1 (some drivers use one, others use the other, and I wasn't sure at the time which es1371 used).

It didn't work.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#9 lore raw
Quoted 5 lines · Patrick McFarland
Quoted 4 lines · Dmitry Torokhov

On Monday 21 March 2005 22:41, Patrick McFarland wrote:

Ok, it looks like setup problem. Try doing:

Quoted 9 lines
Quoted 1 line

modprobe snd-ens1371 joystick_port=1

I already tried that before I mailed the great and almighty source of all information kernely (aka the lkml). Infact, I tried both joystick=1 and joystick_port=1 (some drivers use one, others use the other, and I wasn't sure at the time which es1371 used).

It didn't work.

Ok, just so I know where we stand: your gameport/joystick does work in plain 2.6.11 but does not in 2.6.11-mm4, correct? When you load the module with "joystick_port=1" is there any messages from ens1371 in dmesg? Have you tried specifying exact port, like "joystick_port=0x200" or "joystick_port=0x218"? Do you see these ports reserved in /proc/ioports? What about /sys/bus/gameport/devices/? Do you see anything in that directory?

Signature · 1 line
Dmitry
#10 lore raw
Quoted 8 lines · Dmitry Torokhov

On Tue, 22 Mar 2005 07:06:07 -0500, Patrick McFarland
Ok, just so I know where we stand: your gameport/joystick does work in plain 2.6.11 but does not in 2.6.11-mm4, correct? When you load the module with "joystick_port=1" is there any messages from ens1371 in dmesg? Have you tried specifying exact port, like "joystick_port=0x200" or "joystick_port=0x218"? Do you see these ports reserved in /proc/ioports? What about /sys/bus/gameport/devices/? Do you see anything in that directory?

I haven't tested it with 2.6.11 yet... real life showed up, and hasn't gone away yet. *stab!* I'll be testing it right after I send this email.

With joystick_port=1 there are no messages from the module, I've tried a bunch of specific ports, and it doesn't work. The ports are not reserved in /proc/ioports. /sys/bus/gameport/devices is empty.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#11 lore raw
Quoted 2 lines · Patrick McFarland

I haven't tested it with 2.6.11 yet... real life showed up, and hasn't gone away yet. *stab!* I'll be testing it right after I send this email.

Nope, 2.6.11 is also broken.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#12 lore raw
Quoted 6 lines · Patrick McFarland
Quoted 2 lines · Patrick McFarland

I haven't tested it with 2.6.11 yet... real life showed up, and hasn't gone away yet. *stab!* I'll be testing it right after I send this email.

Nope, 2.6.11 is also broken.

Ok, so the good news is that I did not break it... Coudl you try 2.6.10 to see when it got broken.

Signature · 1 line
Dmitry
#13 lore raw
Quoted 10 lines · Dmitry Torokhov
Quoted 6 lines · Patrick McFarland
Quoted 3 lines · Patrick McFarland

I haven't tested it with 2.6.11 yet... real life showed up, and hasn't gone away yet. *stab!* I'll be testing it right after I send this email.

Nope, 2.6.11 is also broken.

Ok, so the good news is that I did not break it... Coudl you try 2.6.10 to see when it got broken.

Nope, 2.6.10 is broken too. Now, off to 2.6.9...

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#14 lore raw
Quoted 1 line · Patrick McFarland

Nope, 2.6.10 is broken too. Now, off to 2.6.9...

Hrm, 2.6.9 is also broke. 2.6.8 is next. (I should be coming along a working kernel any time now...)

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#15 lore raw
Quoted 5 lines · Patrick McFarland
Quoted 1 line · Patrick McFarland

Nope, 2.6.10 is broken too. Now, off to 2.6.9...

Hrm, 2.6.9 is also broke. 2.6.8 is next. (I should be coming along a working kernel any time now...)

That whacky real life thing showed up again.

2.6.8 is also fubar. Now to 2.6.7....

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#16 lore raw
Quoted 1 line · Patrick McFarland

2.6.8 is also fubar. Now to 2.6.7....

Nope, 2.6.7 is also fubar. Now to 2.6.6.

BTW, can the ALSA userland in anyway screw me here? I mean,the joystick stuff shouldn't have anything to do with it at all... but....

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#17 lore raw
Quoted 9 lines · Patrick McFarland
Quoted 1 line · Patrick McFarland

2.6.8 is also fubar. Now to 2.6.7....

Nope, 2.6.7 is also fubar. Now to 2.6.6.

BTW, can the ALSA userland in anyway screw me here? I mean,the joystick stuff shouldn't have anything to do with it at all... but....

Any chance the joystick is just broken?

Signature · 3 lines
========================================================================
Ian Pilcher                                        [email protected]
========================================================================
#18 lore raw
Quoted 1 line · Ian Pilcher

Any chance the joystick is just broken?

Nope.

What works:
1) _Both_ joysticks (one that uses the analog driver, the other that uses the sidewinder driver) work fine under Win2k.
2) Sound works under both Linux and Win2k.
3) The analog joystick (I didn't have the sidewinder yet) use to work at some point in the past on this system with a 2.6 kernel.

What doesn't work:
1) Either the analog or sidewinder joysticks using any kernel I've tested so far, loading snd_ens1371 using either joystick=1 or joystick_port=1 (I test both out of habit). (Loaded in the order of snd_ens1371 (which loads gameport), joydev, and then analog or sidewinder. Putting joydev or gameport or both before snd_ens1371 doesn't improve the situation.)

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#19 lore raw
In reply to Patrick McFarland
Quoted 1 line · Patrick McFarland

Nope, 2.6.7 is also fubar. Now to 2.6.6.

I haven't tested 2.6.6 yet, but 2.6.12-rc2-mm3 is broken too.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#20 lore raw
Quoted 5 lines · Patrick McFarland
Quoted 1 line · Patrick McFarland

Nope, 2.6.7 is also fubar. Now to 2.6.6.

I haven't tested 2.6.6 yet, but 2.6.12-rc2-mm3 is broken too.

There's no point in testing newer kernels if you have yet to find an old 2.6 kernel where it works.

Do you have any evidence that it ever worked with ALSA? I suspect it's always been broken, and that 2.6.8 or 2.6.9 system you referred to was using the OSS driver.

Lee

#21 lore raw
Quoted 8 lines · Lee Revell
Quoted 4 lines · Patrick McFarland
Quoted 1 line · Patrick McFarland

Nope, 2.6.7 is also fubar. Now to 2.6.6.

I haven't tested 2.6.6 yet, but 2.6.12-rc2-mm3 is broken too.

There's no point in testing newer kernels if you have yet to find an old 2.6 kernel where it works.

I didn't explicitly test it. I just updated my usual running kernel, and it just happens that it didn't magically start working again.

Quoted 3 lines

Do you have any evidence that it ever worked with ALSA? I suspect it's always been broken, and that 2.6.8 or 2.6.9 system you referred to was using the OSS driver.

Nope, I haven't used OSS in a very very very very long time. Back when I used 2.4 (which ended when 2.6.1 was released) I used ALSA.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#22 lore raw
In reply to Patrick McFarland
Quoted 1 line · Patrick McFarland

I haven't tested 2.6.6 yet, but 2.6.12-rc2-mm3 is broken too.

I just tested 2.6.6, it seems to be broken too. I wonder if this actually is a kernel issue, I should have found a working kernel by now. I'll continue to 2.6.5.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#23 lore raw
Quoted 3 lines · Patrick McFarland

I just tested 2.6.6, it seems to be broken too. I wonder if this actually is a kernel issue, I should have found a working kernel by now. I'll continue to 2.6.5.

I just tried 2.6.5 and 2.6.4. No go. Only 3 kernels left.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#24 lore raw
Quoted 7 lines · Patrick McFarland
Quoted 3 lines · Patrick McFarland

I just tested 2.6.6, it seems to be broken too. I wonder if this actually is a kernel issue, I should have found a working kernel by now. I'll continue to 2.6.5.

I just tried 2.6.5 and 2.6.4. No go. Only 3 kernels left.

Are you testing with sidewinder?

Signature · 1 line
Dmitry
#25 lore raw
Quoted 9 lines · Dmitry Torokhov
Quoted 6 lines · Patrick McFarland
Quoted 3 lines · Patrick McFarland

I just tested 2.6.6, it seems to be broken too. I wonder if this actually is a kernel issue, I should have found a working kernel by now. I'll continue to 2.6.5.

I just tried 2.6.5 and 2.6.4. No go. Only 3 kernels left.

Are you testing with sidewinder?

I test both my analog and sidewinders. Not that it matters, my analog is the one I had first, I only got the sidewinder recently.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#26 lore raw
Quoted 7 lines · Patrick McFarland
Quoted 6 lines · Dmitry Torokhov
Quoted 5 lines · Patrick McFarland
Quoted 3 lines · Patrick McFarland

I just tested 2.6.6, it seems to be broken too. I wonder if this actually is a kernel issue, I should have found a working kernel by now. I'll continue to 2.6.5.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

I just tried 2.6.5 and 2.6.4. No go. Only 3 kernels left.

Are you testing with sidewinder?

I test both my analog and sidewinders. Not that it matters, my analog is the one I had first, I only got the sidewinder recently.

Ok... I know that sidewinder needs its timeouts increased to about 6ms to work with 2.6. Have you tried OSS driver - to make sure that layer above the soundcard works?

Signature · 1 line
Dmitry
#27 lore raw
Quoted 3 lines · Dmitry Torokhov

Ok... I know that sidewinder needs its timeouts increased to about 6ms to work with 2.6. Have you tried OSS driver - to make sure that layer above the soundcard works?

Well, thats what I've been thinking thats screwing me. Because I've been using ALSA since my 2.4.x days (I switched over to 2.6 and 2.6.1), and I know my analog joystick works with ALSA and 2.6 (I just don't know when the bug appeared) and I've also upgraded my ALSA userland over the years. Infact, I'm almost convinced that the ALSA userland is causing the bug.

Signature · 4 lines
Patrick "Diablo-D3" McFarland || [email protected]
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd 
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." -- Kristian Wilson, Nintendo, Inc, 1989
#28 lore raw

At Wed, 20 Apr 2005 23:03:27 -0400,

Quoted 7 lines · Patrick McFarland

[1 <text/plain; utf-8 (quoted-printable)>]

Quoted 3 lines · Dmitry Torokhov

Ok... I know that sidewinder needs its timeouts increased to about 6ms to work with 2.6. Have you tried OSS driver - to make sure that layer above the soundcard works?

Quoted 5 lines

Well, thats what I've been thinking thats screwing me. Because I've been using ALSA since my 2.4.x days (I switched over to 2.6 and 2.6.1), and I know my analog joystick works with ALSA and 2.6 (I just don't know when the bug appeared) and I've also upgraded my ALSA userland over the years. Infact, I'm almost convinced that the ALSA userland is causing the bug.

Hmm, I'm not sure what you "userland" mean, but ALSA lib and utils have nothing to do with input devices...

Takashi