From: Attid@yandex.ru
To: linux-hotplug@vger.kernel.org
Subject: How to write rule sound card?
Date: Wed, 11 Feb 2009 06:29:50 +0000 [thread overview]
Message-ID: <531951234333790@webmail22.yandex.ru> (raw)
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
reply other threads:[~2009-02-11 6:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=531951234333790@webmail22.yandex.ru \
--to=attid@yandex.ru \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.