From mboxrd@z Thu Jan 1 00:00:00 1970 From: Attid@yandex.ru Date: Wed, 11 Feb 2009 06:29:50 +0000 Subject: How to write rule sound card? Message-Id: <531951234333790@webmail22.yandex.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org i have 3 sound card one internal and two external identical with FM tuner after reboot there change name. i have some experiment with serial port\touchscreen\lan, but can do it =( Linux rl-adm 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686 GNU/Linux ls -li /dev/audio* 11534 crw-rw----+ 1 root audio 14, 4 2009-02-03 18:40 /dev/audio 11644 crw-rw----+ 1 root audio 14, 20 2009-02-03 18:40 /dev/audio1 11809 crw-rw----+ 1 root audio 14, 36 2009-02-03 18:40 /dev/audio2 find /sys -name dev | grep audio /sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/sound/card0/audio/dev /sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.0/sound/card1/audio1/dev /sys/devices/pci0000:00/0000:00:1f.5/sound/card2/audio2/dev i need simlink for /sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/sound/card0/audio/dev /sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.0/sound/card1/audio1/dev udevinfo -a -p /sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/sound/card0/audio looking at device '/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/sound/card0/audio': KERNEL="audio" SUBSYSTEM="sound" DRIVER="" ATTR{dev}="14:4" looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/sound/card0': KERNELS="card0" SUBSYSTEMS="sound" DRIVERS="" ********************************************************************* udevinfo -a -p /sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.0/sound/card1/audio1 looking at device '/devices/pci0000:00/0000:00:1e.0/0000:02:04.0/sound/card1/audio1': KERNEL="audio1" SUBSYSTEM="sound" DRIVER="" ATTR{dev}="14:20" looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:04.0/sound/card1': KERNELS="card1" SUBSYSTEMS="sound" DRIVERS="" ********************************************************************* i try use ATTR{dev}="14:20" but it change after reboot too =( can i use number of pci slot ? or even more ? -- Igor Tolstov