From: Christian Zoz <zoz@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hotplug loads USB audio before local audio
Date: Fri, 02 May 2003 05:06:52 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-105185451505663@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-105172715013227@msgid-missing>
On Thu, May 01, Pedro Lopez-Cabanillas wrote:
> On Thursday 01 May 2003 17:32, Joshua Pollak wrote:
> > Just to clarify, this problem is not particular to ALSA. I don't believe
> > RedHat 9.0 uses ALSA, I think the driver that is being loaded is the stock
> > Linux kernel one.
Yes, then modify the scripts accordingly.
> Yes, 'audio' is the OSS module for USB audio devices. OTOH, i think that your
> problem is not particular to audio, OSS or ALSA. The problem is that you have
> two devices of the same class, one of them supported by hotplug (or both).
>
> For instance: if you get some internal PCI TV card using a V4L driver (as
> bt878), and you have also an USB webcam... How can you know which is your
> webcam /dev/video0 or /dev/video1 ? if you boot with your USB cam plugged,
> then it is /dev/video0, but if you boot with it unplugged the node
> /dev/video0 is your TV card, and /dev/video1 will be the webcam if you plug
> it later. Same for printers, scanners, disks (i guess).
>
> If you have several USB devices of the same class, you can also go into
> troubles with your apps configured to use one device or another, by his
> device node in /dev directory. ALSA driver snd-usb-audio has some support to
> solve this issue, with two params to specify the device order by manufacturer
> and model ids, but i don't know about other drivers.
>
> Of course, you can avoid to use hotplug to load your device driver
> (/etc/hotplug/blacklist) or renounce to use it (alias off in modules.conf).
> The SuSE approach gives you some hotplug support, loading the drivers with
> the classic ALSA startup script. The problem is that you need to maintain the
> alsa.usermap file by hand as the set of devices supported by the
Yes that's the problem. It's a kind of 'works for most users'
solution.
> snd-usb-audio driver grows (and it grows very quickly!). Planet CCRMA
> (stanford.edu) has a set of RPM packages for multimedia Red Hat users, using
> /etc/hotplug/blacklist for audio, too.
>
> David: I think that some kind of general solution for this problem should be
> included in hotplug (if there is one).
For 2.4 kernel:
It would be best, if all services that initialize builtin hardware,
would run before USB, PCMCIA, Firewire is started. Then you always get
the same device names for this builtin hardware.
In SuSE Linux we start e.g. network before hotplug and pcmcia. But
e.g. alsa reads files from /usr/..., which may be mounted via network.
And network may be provided by pcmcia/hotplug (But this is a rare
case). So alsa starts later and therefore needs the blacklist solution.
For 2.6 this problem will hopefully solved with persistent interface
names.
--
ciao, christian
--------------------------------------------------------------------
Verglichen mit jedem x-beliebigen Redmonder Betriebssystem-Clone
ist Linux geradezu eine leuchtende Perle der Datensicherheit.
------ Frank Rennemann (http://www.linux-knowledge-portal.org) -----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2003-05-02 5:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-30 18:24 Hotplug loads USB audio before local audio Joshua Pollak
2003-04-30 18:31 ` Greg KH
2003-04-30 18:32 ` Joshua Pollak
2003-04-30 18:33 ` Bill Nottingham
2003-04-30 18:46 ` Joshua Pollak
2003-04-30 19:02 ` Pedro Lopez-Cabanillas
2003-05-01 6:14 ` Christian Zoz
2003-05-01 15:32 ` Joshua Pollak
2003-05-01 15:38 ` David Brownell
2003-05-01 18:57 ` Pedro Lopez-Cabanillas
2003-05-02 5:06 ` Christian Zoz [this message]
2003-05-02 7:24 ` Oliver Neukum
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=marc-linux-hotplug-105185451505663@msgid-missing \
--to=zoz@suse.de \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).