linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Zoz <zoz@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hotplug loads USB audio before local audio
Date: Thu, 01 May 2003 06:14:48 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-105176985220653@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-105172715013227@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

On Wed, Apr 30, Pedro Lopez-Cabanillas wrote:
> On Wednesday 30 April 2003 20:24, Joshua Pollak wrote:
> > Short of hacking the system's boot process up, is there a way to ensure
> > that the emu10k1 sound card will always be connected to the primary
> > /dev/mixer devices, while the USB ones will be on the secondary ones?
> 
> Another trick can be to include 'audio' in your '/etc/hotplug/blacklist' file. 
> Add only the word 'audio' without '.o' in an empty line. This will prevent 
> hotplug to load this module. You can do it later, by hand, with 'modprobe 
> audio'.

Yes, this works well. We solved that this way. Have a look at the
attached files.


-- 

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) -----

[-- Attachment #2: blacklist --]
[-- Type: text/plain, Size: 1068 bytes --]

#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first.  Sometimes user
# mode tools can also control driver binding.
#
# Syntax:  driver name alone (without any spaces) on a line. Other
# lines are ignored.
#

# uhci ... usb-uhci handles the same pci class
usb-uhci

# tulip ... de4x5, xircom_tulip_cb, dmfe (...) handle same devices
de4x5
# At least 2.4.3 and later xircom_tulip doesn't have that conflict
# xircom_tulip_cb
dmfe

# Modules for sound devices will be loaded by the alsasound script in
# /etc/hotplug/usb/. They should not be loaded before rcalsasound has started.
audio
snd-usb-audio
usb-midi

# 8139cp.o is listed only once in modules.pcimap. And for exactly this device
# there is also an entry with 8139too. I have one bugreport that 8139cp does
# not work for this card, therefore i add it to the blacklist.
8139cp

# ISDN USB is handled via /etc/hotplug/usb/ISDN.usermap
fcusb
fcusb2
fxusb
fxusb_CZ
fcdslusb

[-- Attachment #3: alsasound.usermap --]
[-- Type: text/plain, Size: 9589 bytes --]

# module             match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
alsasound            0x0003      0x0499   0x1000    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008928
alsasound            0x0003      0x0499   0x1001    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008938
alsasound            0x0003      0x0499   0x1002    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008948
alsasound            0x0003      0x0499   0x1003    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008958
alsasound            0x0083      0x0499   0x1004    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008968
alsasound            0x0003      0x0499   0x1005    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008978
alsasound            0x0003      0x0499   0x1006    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008988
alsasound            0x0003      0x0499   0x1007    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008998
alsasound            0x0003      0x0499   0x1008    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x000089a8
alsasound            0x0003      0x0499   0x1009    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x000089b8
alsasound            0x0083      0x0499   0x100a    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x000089c8
alsasound            0x0003      0x0499   0x100e    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x000089d8
alsasound            0x0003      0x0499   0x100f    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x000089e8
alsasound            0x0003      0x0499   0x1010    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x000089f8
alsasound            0x0003      0x0499   0x1011    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a08
alsasound            0x0003      0x0499   0x1012    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a18
alsasound            0x0003      0x0499   0x1013    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a28
alsasound            0x0003      0x0499   0x1014    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a38
alsasound            0x0003      0x0499   0x5002    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a48
alsasound            0x0003      0x0499   0x5003    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a58
alsasound            0x0003      0x0499   0x5004    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a68
alsasound            0x0003      0x0582   0x0000    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a78
alsasound            0x0003      0x0582   0x0002    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a88
alsasound            0x0003      0x0582   0x0003    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008a98
alsasound            0x0003      0x0582   0x0004    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008aa8
alsasound            0x0003      0x0582   0x0005    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008ab8
alsasound            0x0003      0x0582   0x0007    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008ac8
alsasound            0x0003      0x0582   0x0008    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008ad8
alsasound            0x0003      0x0582   0x0009    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008ae8
alsasound            0x0003      0x0582   0x000b    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008af8
alsasound            0x0003      0x0582   0x000c    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b08
alsasound            0x0003      0x0582   0x0012    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b18
alsasound            0x0003      0x0582   0x0014    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b28
alsasound            0x0003      0x0582   0x0016    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b38
alsasound            0x0003      0x0582   0x0023    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b48
alsasound            0x0083      0x0582   0x0025    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008b58
alsasound            0x0003      0x0582   0x0027    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b68
alsasound            0x0003      0x0582   0x0029    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b78
alsasound            0x0083      0x0582   0x002b    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008b88
alsasound            0x0003      0x0582   0x002d    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008b98
alsasound            0x0003      0x0582   0x0033    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00008ba8
alsasound            0x0083      0x0763   0x1002    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008bb8
alsasound            0x0083      0x0763   0x1011    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008bc8
alsasound            0x0083      0x0763   0x1015    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008bd8
alsasound            0x0083      0x0763   0x1021    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008be8
alsasound            0x0083      0x0763   0x1033    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008bf8
alsasound            0x0083      0x0763   0x1041    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008c08
alsasound            0x0083      0x0763   0x2001    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008c18
alsasound            0x0083      0x0763   0x2003    0x0000       0x0000       0x00         0x00            0x00            0xff            0x00               0x00               0x00008c28
alsasound            0x0180      0x0000   0x0000    0x0000       0x0000       0x00         0x00            0x00            0x01            0x01               0x00               0x00000000

[-- Attachment #4: alsasound --]
[-- Type: text/plain, Size: 512 bytes --]

#!/bin/bash
#
# /etc/hotplug/usb/alsasound
#
# Sets up newly plugged in USB audio/MIDI devices.
#

function add_alsa () {
    # check alsa is already running
    if [ ! -d /proc/asound ]; then
	# start alsasound script, so that static devices are properly loaded
	echo "Starting ALSA..."
	/etc/init.d/alsasound start >/dev/null 2>&1
    fi
    /sbin/modprobe snd-usb-audio
}

function remove_alsa () {
    /sbin/modprobe -r snd-usb-audio
}

case "$ACTION" in
add)
  add_alsa
  ;;
remove)
  remove_alsa
  ;;
esac

  parent reply	other threads:[~2003-05-01  6:14 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 [this message]
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
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-105176985220653@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).