From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Zoz Date: Thu, 01 May 2003 06:14:48 +0000 Subject: Re: Hotplug loads USB audio before local audio MIME-Version: 1 Content-Type: multipart/mixed; boundary="OwLcNYc0lM97+oe1" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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) ----- --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=blacklist # # 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 --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="alsasound.usermap" # 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 --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=alsasound #!/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 --OwLcNYc0lM97+oe1-- ------------------------------------------------------- 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