* Re: bug in ens1371/ens1370 joystick driver
@ 2003-10-23 19:23 Juan Linietsky
2003-10-24 10:53 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Juan Linietsky @ 2003-10-23 19:23 UTC (permalink / raw)
To: alsa-devel
On Thursday 23 October 2003 04:14, you wrote:
> Juan Linietsky wrote:
> > The ens1371 driver takes a joystick_port parameter with range 1..8
> > but that same parameter is them put into a switch to detect io port
> > values like 0x200, 0x208, etc. so the joystick will never be detected.
>
> ens1370.c says:
> MODULE_PARM(joystick_port, "1-" __MODULE_STRING(SNDRV_CARDS) "i");
> MODULE_PARM_DESC(joystick_port, "Joystick port address.");
> MODULE_PARM_SYNTAX(joystick_port, SNDRV_ENABLED
> ",allows:{{0},{0x200},{0x208},{0x210},{0x218}},dialog:list");
>
> The range 1..8 means that it's possible to specify a parameter value
> for each of the up to 8 cards (SNDRV_CARDS is defined as 8). The
> parameter itself takes the correct values.
>
>
> Regards,
> Clemens
this is still not very helpful, as modinfo -p only returns:
joystick_port int array (min = 1, max = 8), description "Joystick port
address."
how are you supposed to know that you can only enter 0x200,0x208,etc?
Specially when in the OSS driver you do:
modprobe es1371 joystick=1
and it works flawlessly
Regards
Juan Linietsky
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: bug in ens1371/ens1370 joystick driver
2003-10-23 19:23 bug in ens1371/ens1370 joystick driver Juan Linietsky
@ 2003-10-24 10:53 ` Takashi Iwai
2003-10-24 16:49 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2003-10-24 10:53 UTC (permalink / raw)
To: Juan Linietsky; +Cc: alsa-devel
At Thu, 23 Oct 2003 16:23:26 -0300,
Juan Linietsky wrote:
>
> On Thursday 23 October 2003 04:14, you wrote:
> > Juan Linietsky wrote:
> > > The ens1371 driver takes a joystick_port parameter with range 1..8
> > > but that same parameter is them put into a switch to detect io port
> > > values like 0x200, 0x208, etc. so the joystick will never be detected.
> >
> > ens1370.c says:
> > MODULE_PARM(joystick_port, "1-" __MODULE_STRING(SNDRV_CARDS) "i");
> > MODULE_PARM_DESC(joystick_port, "Joystick port address.");
> > MODULE_PARM_SYNTAX(joystick_port, SNDRV_ENABLED
> > ",allows:{{0},{0x200},{0x208},{0x210},{0x218}},dialog:list");
> >
> > The range 1..8 means that it's possible to specify a parameter value
> > for each of the up to 8 cards (SNDRV_CARDS is defined as 8). The
> > parameter itself takes the correct values.
> >
> >
> > Regards,
> > Clemens
>
> this is still not very helpful, as modinfo -p only returns:
>
> joystick_port int array (min = 1, max = 8), description "Joystick port
> address."
>
> how are you supposed to know that you can only enter 0x200,0x208,etc?
RTFM :)
alsa-kernel/Documentation/Joystick.txt.
> Specially when in the OSS driver you do:
>
> modprobe es1371 joystick=1
>
> and it works flawlessly
ok, i'll add more code...
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: bug in ens1371/ens1370 joystick driver
2003-10-24 10:53 ` Takashi Iwai
@ 2003-10-24 16:49 ` Takashi Iwai
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2003-10-24 16:49 UTC (permalink / raw)
To: Juan Linietsky; +Cc: alsa-devel
At Fri, 24 Oct 2003 12:53:36 +0200,
I wrote:
>
> > Specially when in the OSS driver you do:
> >
> > modprobe es1371 joystick=1
> >
> > and it works flawlessly
>
> ok, i'll add more code...
committed to cvs now.
the new version accepts like
modprobe snd-ens1371 joystick_port=1
for auto-detection of the joystick port.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug in ens1371/ens1370 joystick driver
@ 2003-10-23 2:59 Juan Linietsky
2003-10-23 7:14 ` Clemens Ladisch
0 siblings, 1 reply; 5+ messages in thread
From: Juan Linietsky @ 2003-10-23 2:59 UTC (permalink / raw)
To: alsa-devel
I apologize for not being able to send patches, but I dont know
how to proper fix this.
The ens1371 driver takes a joystick_port parameter with range 1..8
but that same parameter is them put into a switch to detect io port
values like 0x200, 0x208, etc. so the joystick will never be detected.
I somewhat fixed this myself by forcing 0x200 as parameter
and it worked well afterwards.
I hope this report is of any help
regards
Juan Linietsky
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bug in ens1371/ens1370 joystick driver
2003-10-23 2:59 Juan Linietsky
@ 2003-10-23 7:14 ` Clemens Ladisch
0 siblings, 0 replies; 5+ messages in thread
From: Clemens Ladisch @ 2003-10-23 7:14 UTC (permalink / raw)
To: Juan Linietsky; +Cc: alsa-devel
Juan Linietsky wrote:
> The ens1371 driver takes a joystick_port parameter with range 1..8
> but that same parameter is them put into a switch to detect io port
> values like 0x200, 0x208, etc. so the joystick will never be detected.
ens1370.c says:
MODULE_PARM(joystick_port, "1-" __MODULE_STRING(SNDRV_CARDS) "i");
MODULE_PARM_DESC(joystick_port, "Joystick port address.");
MODULE_PARM_SYNTAX(joystick_port, SNDRV_ENABLED
",allows:{{0},{0x200},{0x208},{0x210},{0x218}},dialog:list");
The range 1..8 means that it's possible to specify a parameter value
for each of the up to 8 cards (SNDRV_CARDS is defined as 8). The
parameter itself takes the correct values.
Regards,
Clemens
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-10-24 16:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 19:23 bug in ens1371/ens1370 joystick driver Juan Linietsky
2003-10-24 10:53 ` Takashi Iwai
2003-10-24 16:49 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2003-10-23 2:59 Juan Linietsky
2003-10-23 7:14 ` Clemens Ladisch
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.