All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Duncan Sands <baldrick@wanadoo.fr>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: init script with hotplug & usb audio
Date: Thu, 26 Sep 2002 13:49:43 +0200	[thread overview]
Message-ID: <s5hr8fhm0mg.wl@alsa2.suse.de> (raw)
In-Reply-To: <200209261020.25769.baldrick@wanadoo.fr>

At Thu, 26 Sep 2002 10:20:25 +0200,
Duncan Sands wrote:
> 
> I have a usb webcam with audio plugged into my computer,
> and a cs46xx sound card inside.
> 
> When I boot the following sequence occurs:
> 
> (1) the hotplug subsytem is started.  This automatically
> loads the snd-usb-audio module and the modules it
> depends on.  In particular /proc/asound/ is created.
> 
> (2) the alsasound init script is run.  It detects that
> /proc/asound/ exists, and exits at once.  In particular
> it does not restore mixer levels for the cs46xx card.
> 
> I solved this by commenting out the check for /proc/asound/
> in the init script.  The problem goes deeper though, especially
> when things like usb audio devices are around, which can be
> hotplugged: maybe sound card modules should really be calling
> the hotplug subsystem when they are initialize.  The hotplug
> script would then restore mixer settings etc...
> 
> Thoughts?

i solved like the following:

- add snd-usb-* (and oss audio module) to hotplug's blacklist
  to avoid to load them from the modules.usermap.
- add a usermap for the usb audio devices to call its own start-up
  script.  the script starts the alsasound init script inside before
  loading the snd-usb-audio module (if no /proc/asound exists), so
  that it asssures that the normal PCI devices are assigned prior to
  usb devices. 


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  parent reply	other threads:[~2002-09-26 11:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26  8:20 init script with hotplug & usb audio Duncan Sands
2002-09-26 10:40 ` Tim Goetze
2002-09-27  7:11   ` Duncan Sands
2002-09-26 11:49 ` Takashi Iwai [this message]
2002-09-27  7:08   ` Duncan Sands
2002-09-27 17:53     ` Takashi Iwai
2002-09-30  7:55       ` Duncan Sands
2002-09-30 10:04         ` Takashi Iwai
2002-10-01  6:46           ` Duncan Sands

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=s5hr8fhm0mg.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=baldrick@wanadoo.fr \
    /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.