From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: virmidi, hotplug and udev Date: Mon, 29 Nov 2004 12:28:43 +0100 Message-ID: References: <200411281851.29845.carlosjosepita@yahoo.com.ar> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [195.135.220.2]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 0B5E72B9 for ; Mon, 29 Nov 2004 12:28:42 +0100 (MET) In-Reply-To: <200411281851.29845.carlosjosepita@yahoo.com.ar> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Carlos Pita Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 28 Nov 2004 18:51:29 -0300, Carlos Pita wrote: > > Hi! > > I'm using kernel 2.6.8 with hotplug enabled and udev > (distro: debian sarge). > > I need to use the snd-virmidi to create a virtual sound card > with its raw midi devices. > > I do: > modprobe snd-virmidi > > Does this generate a hotplug event? Or at least an udev event? > > I ask it because here the order is somewhat inverted. Normally > a device is cold/hot plugged and modprobe is run in > response to a subsequent hotplug event. But here the device is > added as the effect of a previous modprobe. One thing I see > is that modprobe would be retried as part of the event processing, > that's innocuous but ugly. > > Finally, do you know how to write the udev rules to generate > the OSS raw midi devices. Currently, the only rules related > to ALSA in my /etc/udev/rules.d/udev.rules are: > > # ALSA devices > KERNEL="controlC[0-9]*", NAME="snd/%k" > KERNEL="hw[CD0-9]*", NAME="snd/%k" > KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" > KERNEL="midi[CD0-9]*", NAME="snd/%k" > KERNEL="timer", NAME="snd/%k" > KERNEL="seq", NAME="snd/%k" > > Most of the OSS devices are generated at boot time by > udevstart. But /dev/midi10.../dev/midi13 are missing after > modprobing snd-virmidi. There are no /dev/midi1x devices on OSS. As written in my last post, the OSS device has no concept of "card". It just accepts the device in a serial order. Nevertheless, OSS supports only up to 4 devices for /dev/midi0?. (You can use more 4 devices with /dev/amidi?, too, though.) Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/