All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Andy Wingo <wingo@pobox.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Alsa module configuration
Date: Mon, 02 Sep 2002 12:52:56 +0200	[thread overview]
Message-ID: <s5hu1l8ll2v.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020830002648.H1816@cebreiro.nc.rr.com>

At Fri, 30 Aug 2002 00:26:48 -0400,
Andy Wingo wrote:
> 
> Hey alsa kernel wizards,
> 
> Is there any way we can get rid of this?
> 
> On Thu, 29 Aug 2002, frank pirrone wrote to linux-audio-user:
> 
> > *** grab the Alsa 0.9.0rc3 tarball and compile it
> > *** Configure /etc/modules.conf as follows:
> > 
> > # ALSA native device support
> > alias char-major-116 snd
> > options snd snd_major=116 snd_cards_limit=1

these are needed to load alsa modules _dynamically_.
if you're using an init script for loading the alsa, then basically
you don't need them.

> > alias snd-card-0 snd-cs4236

this value is usually referred in alsasound init script.
so this is somehow essential if you use this init script.
also, this alias is called from the alsa itself, if the
corresponding card (in this case #0) is not found.  then the alsa
tries to load the module automatically.

> > options snd-cs4236 snd_id="Crystal Audio" snd_index=0 snd_isapnp=1

this is somehow fundmamental, too, but mostly omissible.
snd_id is not always necessary.  if it's omitted, then the default
name "card0" is set.  this id is used in saving the status into
/etc/asound.state.
snd_index is not always necessary, too, unless you have multiple
cards.  even if you have multiple cards, usually it can be omitted.
the index option ensures the order of the driver loading.
snd_isapnp=1 is the default setting, so you can ommit it safely.


> > # OSS/Free compatibility setup
> > alias char-major-14 soundcore
> > alias sound-service-0-0 snd-mixer-oss
> > alias sound-service-0-1 snd-seq-oss
> > alias sound-service-0-3 snd-pcm-oss
> > alias sound-service-0-8 snd-seq-oss
> > alias sound-service-0-12 snd-pcm-oss
> > alias sound-slot-0 snd-card-0

these stuffs are only for loading OSS emulation modules _dynamically_.
if you load these modules statically prior to the actual use, you
don't need these entries.


> 
> It just struck me how every alsa install has to do this. I am not a
> kernel wiz, but it would be so much nicer if (somehow) this just worked:
> 
> alias snd-card-0 snd-cs4236
> 
> And maybe an options line with the snd_id or something. But it seems
> that these are the only crucial pieces of information. I know, I know,
> alsaconf is supposed to help. Still. Is there any way this can be
> simpler?
 
yes, most of them are NOT necessary.

it depends on your system - you can omit most of the values above.
but setting the configuration above is more safer (i.e. portable on
every system).


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

  reply	other threads:[~2002-09-02 10:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3D6EE68D.44C094B8@localnet.com>
2002-08-30  4:26 ` Alsa module configuration Andy Wingo
2002-09-02 10:52   ` Takashi Iwai [this message]
2002-09-02 12:48     ` Paul Davis
2002-09-02 13:08       ` Takashi Iwai
2002-09-02 13:24         ` Paul Davis
     [not found]         ` <20020902132257.644DF1448F@Cantor.suse.de>
2002-09-02 13:40           ` 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=s5hu1l8ll2v.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=wingo@pobox.com \
    /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 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.