All of lore.kernel.org
 help / color / mirror / Atom feed
* Why gameport port address as control?
@ 2003-06-16  7:24 Clemens Ladisch
  2003-06-17 14:24 ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2003-06-16  7:24 UTC (permalink / raw)
  To: alsa-devel

Both the ymfpci and ens1370 drivers use the control API to enable and
select the address of the gameport. Using module parameters would have
been somewhat easier.

I don't really understand why this has been done. Is there any
situation where the ability to change the gameport parameters at
runtime is actually useful?


Regards,
Clemens




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

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

* Re: Why gameport port address as control?
  2003-06-16  7:24 Why gameport port address as control? Clemens Ladisch
@ 2003-06-17 14:24 ` Jaroslav Kysela
  2003-06-18 12:48   ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2003-06-17 14:24 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel@lists.sourceforge.net

On Mon, 16 Jun 2003, Clemens Ladisch wrote:

> Both the ymfpci and ens1370 drivers use the control API to enable and
> select the address of the gameport. Using module parameters would have
> been somewhat easier.
> 
> I don't really understand why this has been done. Is there any
> situation where the ability to change the gameport parameters at
> runtime is actually useful?

It is possible to change the code. My idea was to use control API, 
because we can create a list of available addresses. It is more
user friendly than module option, but the final result is same.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

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

* Re: Why gameport port address as control?
  2003-06-17 14:24 ` Jaroslav Kysela
@ 2003-06-18 12:48   ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2003-06-18 12:48 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: Clemens Ladisch, alsa-devel@lists.sourceforge.net

At Tue, 17 Jun 2003 16:24:41 +0200 (CEST),
Jaroslav wrote:
> 
> On Mon, 16 Jun 2003, Clemens Ladisch wrote:
> 
> > Both the ymfpci and ens1370 drivers use the control API to enable and
> > select the address of the gameport. Using module parameters would have
> > been somewhat easier.
> > 
> > I don't really understand why this has been done. Is there any
> > situation where the ability to change the gameport parameters at
> > runtime is actually useful?
> 
> It is possible to change the code. My idea was to use control API, 
> because we can create a list of available addresses. It is more
> user friendly than module option, but the final result is same.

i see both merits and demerits by this.

with the control API, we can enable/disable and even configure the
gameport on the fly.  this sounds not bad.

but, it also leads to a danger that the resource changes happening
even after gameport drivers running.  this might be a possible reason
of crashes due to resource conflicts.

thus, from the viewpoint of safety, allocation of the resource at the
initial stage would be better.  in this sense, module parameters look
easier and more straightforward.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

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

end of thread, other threads:[~2003-06-18 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-16  7:24 Why gameport port address as control? Clemens Ladisch
2003-06-17 14:24 ` Jaroslav Kysela
2003-06-18 12:48   ` Takashi Iwai

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.