public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@keyaccess.nl>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: Takashi Iwai <tiwai@suse.de>,
	ALSA devel <alsa-devel@alsa-project.org>,
	Adrian Bunk <bunk@stusta.de>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [Alsa-devel] [ALSA] AdLib FM card driver
Date: Mon, 27 Mar 2006 15:15:12 +0200	[thread overview]
Message-ID: <4427E560.4080702@keyaccess.nl> (raw)
In-Reply-To: <20060327083113.GB2521@turing.informatik.uni-halle.de>

Clemens Ladisch wrote:

> Rene Herman wrote:

>> I also stuck a very tiny HOWTO in ALSA-Configuration.txt, assuming
>> quite a few people would have no idea how to operate the thing,
>> even if they do happen across a card. Is it okay there?
> 
> It should probably go into a seperate file below Documentation/.

Probably. Documentation/sound/alsa/adlib.txt is ofcourse okay but I saw 
a few other remark type things in ALSA-Configuration as well. Seeing as 
how it's very small, and given the tendency of Documentation/ to not be 
updated alongside code itself, I thought I'd try to get away with just 
keeping things in the one file...

>> + This module supports multiple cards. It does not support autoprobe, so
>> + the port must be specified. For actual AdLib FM cards it will be 0x388.
> 
> Does it make sense to support more than one card or a non-default port
> address?

Yes. Ofcourse, in a practical sense not many people will desperately 
want to have multiple AdLib cards installed in one machine (and mine 
doesn't actually have a jumper to set it to a different address; maybe 
others do) but this driver could also be used to drive the AdLib part of 
a SoundBlaster for example, which would live at 0x220, 0x240, ...

Sure, not many people will want to do _that_ either, but it is most 
importantly more effort to not support multiple cards than it is 
supporting them. Not so much while writing, but when updating these old, 
largely unused, drivers to new infrastructure work you want things to 
look as alsa-generic as possible.

The only ALSA ISA card driver that does not support multiple cards is 
opti9xx and, sure enough, when changing over to the platform_driver 
interface recently, it came out wrong(-ish). I actually offered to 
update it to the generic form already a while ago (will be getting 
around to that).

> I think at least the port address for the first card should be
> defaulted to 0x388.

No, you never want to autoprobe ISA due to the non-discoverability of 
the old non-PnP ISA bus. If you just start poking at addresses you might 
touch something sensitive. The generic example of this is screwing over 
a Novell NIC and while there are still some ALSA drivers that do ISA 
autoprobing (es1688, es18xx, gus, opti9xx, sb8, sb16) this has been 
verboten in the tree in general for some time now.

Hardcoding addresses and probing there might be a bit more userfriendly 
but people who install an 8-bit ISA AdLib FM in this day and age are 
likely not the type to care deeply about userfriendlyness anyway...

Note lastly that the adlib_card OSS driver also needed the address 
passed in.

Many thanks for the comments though!

Rene.


  reply	other threads:[~2006-03-27 13:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-26 22:07 [ALSA] AdLib FM card driver Rene Herman
2006-03-27  8:31 ` [Alsa-devel] " Clemens Ladisch
2006-03-27 13:15   ` Rene Herman [this message]
2006-03-27 13:49     ` Takashi Iwai
2006-03-27 13:44 ` Takashi Iwai
2006-03-27 16:23   ` Rene Herman
2006-03-27 16:29     ` Rene Herman
2006-03-28 10:49       ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4427E560.4080702@keyaccess.nl \
    --to=rene.herman@keyaccess.nl \
    --cc=alsa-devel@alsa-project.org \
    --cc=bunk@stusta.de \
    --cc=clemens@ladisch.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox