snd-usb-audio driver (Was Re: udev: rules using multiple sysfs
Quoted 3 lines · Greg KH
You can do this, as you get two different hotplug events. This is because usb drivers bind to the USB inteface, not the main device itself.
As an unrelated note this is actually not true for snd-usb-audio driver
[davidz@daxter hal]$ ls -l /sys/class/sound/pcmC2D0c/
total 0
-r--r--r-- 1 root root 4096 Apr 29 16:57 dev
lrwxrwxrwx 1 root root 0 Apr 29 16:57 device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2
[davidz@daxter hal]$ ls -l /sys/class/sound/pcmC2D0c/device/
total 0
drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.0
drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.1
drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.2
drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.3Well, sort of, as
[davidz@daxter hal]$ tree /sys/bus/usb/drivers/snd-usb-audio/
/sys/bus/usb/drivers/snd-usb-audio/
|-- 3-2:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0
|-- 3-2:1.1 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1
|-- 3-2:1.2 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.2
`-- module -> ../../../../module/snd_usb_audioThat's a bug, right? Is this the right place to report it?
Cheers,
David
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: snd-usb-audio driver (Was Re: udev: rules using multiple sysfs directories)
Quoted 11 lines · David Zeuthen
Quoted 3 lines · Greg KH
You can do this, as you get two different hotplug events. This is because usb drivers bind to the USB inteface, not the main device itself.
As an unrelated note this is actually not true for snd-usb-audio driver
[davidz@daxter hal]$ ls -l /sys/class/sound/pcmC2D0c/ total 0 -r--r--r-- 1 root root 4096 Apr 29 16:57 dev lrwxrwxrwx 1 root root 0 Apr 29 16:57 device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2
This should point to the interface, not the device, you are correct.
Quoted 9 lines
[davidz@daxter hal]$ ls -l /sys/class/sound/pcmC2D0c/device/ total 0 drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.0 drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.1 drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.2 drwxr-xr-x 3 root root 0 Apr 29 16:57 3-2:1.3Well, sort of, as
Quoted 8 lines
[davidz@daxter hal]$ tree /sys/bus/usb/drivers/snd-usb-audio/ /sys/bus/usb/drivers/snd-usb-audio/ |-- 3-2:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0 |-- 3-2:1.1 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1 |-- 3-2:1.2 -> ../../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.2 `-- module -> ../../../../module/snd_usb_audioThat's a bug, right? Is this the right place to report it?
Bug in the alsa driver, I suggest reporting it to them. Should be a one line fix.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Greg KH
Bug in the alsa driver, I suggest reporting it to them. Should be a one line fix.
I've filed it here
https://bugtrack.alsa-project.org/alsa-bug/view.php?id93
Cheers,
David
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel