Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: CVS: alsa-kernel/pci/ymfpci ymfpci.c,1.29,1.30
       [not found] <E1AD2DD-0003SF-00@sc8-pr-cvs1.sourceforge.net>
@ 2003-10-27 11:15 ` Clemens Ladisch
  2003-10-27 11:29   ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Clemens Ladisch @ 2003-10-27 11:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Takashi Iwai wrote:
> Log Message:
> added auto-detection of joystick port.
> ...
> +	if (joystick_port[dev] == 1) {
> +		/* auto-detect */
> +		long p;
> +		for (p = 0x201; p <= 0x205; p++) {
> +			if (p == 0x203) continue;
> +			if ((joystick_res = request_region(p, 1, "YMFPCI gameport")) != NULL)
> +				break;
> +		}
> +		if (joystick_res)
> +			joystick_port[dev] = p;
> +	} else {
> ...

This auto-detection code doesn't set legacy_ctrl2, so the card
wouldn't actually use the port AFAICS.


Regards,
Clemens




-------------------------------------------------------
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] 2+ messages in thread

* Re: CVS: alsa-kernel/pci/ymfpci ymfpci.c,1.29,1.30
  2003-10-27 11:15 ` CVS: alsa-kernel/pci/ymfpci ymfpci.c,1.29,1.30 Clemens Ladisch
@ 2003-10-27 11:29   ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-10-27 11:29 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

At Mon, 27 Oct 2003 12:15:16 +0100 (MET),
Clemens Ladisch wrote:
> 
> Takashi Iwai wrote:
> > Log Message:
> > added auto-detection of joystick port.
> > ...
> > +	if (joystick_port[dev] == 1) {
> > +		/* auto-detect */
> > +		long p;
> > +		for (p = 0x201; p <= 0x205; p++) {
> > +			if (p == 0x203) continue;
> > +			if ((joystick_res = request_region(p, 1, "YMFPCI gameport")) != NULL)
> > +				break;
> > +		}
> > +		if (joystick_res)
> > +			joystick_port[dev] = p;
> > +	} else {
> > ...
> 
> This auto-detection code doesn't set legacy_ctrl2, so the card
> wouldn't actually use the port AFAICS.

you're right.  fixed now.


thanks,

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] 2+ messages in thread

end of thread, other threads:[~2003-10-27 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1AD2DD-0003SF-00@sc8-pr-cvs1.sourceforge.net>
2003-10-27 11:15 ` CVS: alsa-kernel/pci/ymfpci ymfpci.c,1.29,1.30 Clemens Ladisch
2003-10-27 11:29   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox