[pulseaudio-tickets] [PulseAudio] #916: ALSA FireWire devices get wrong name

PulseAudio trac-noreply at tango.0pointer.de
Tue Mar 8 01:32:03 PST 2011


#916: ALSA FireWire devices get wrong name
-----------------------+----------------------------------------------------
  Reporter:  cladisch  |       Owner:  lennart      
      Type:  defect    |      Status:  new          
 Milestone:            |   Component:  module-alsa-*
Resolution:            |    Keywords:               
-----------------------+----------------------------------------------------

Comment(by cladisch):

 The "correct way" would be to get the card's shortname from ALSA.

 The second-best way would be to read the strings from the sysfs
 files.[[BR]]
 The device itself must have a vendor ID (which can be looked up
 [http://standards.ieee.org/develop/regauth/oui/public.html here]), but
 every device should also have a vendor name.[[BR]]
 Both the device (here: fw2) and its units (here: fw2.0) should have the
 model name.
 (There is no database of model IDs.)

 {{{
 $ cat /proc/asound/cards
 17 [AudioFire2     ]: Fireworks - AudioFire2
                       Echo Digital Audio AudioFire2, GUID 0014860b5b6bc934
 at fw2.0, S400
 $ cd /sys/class/sound
 $ ls -l
 lrwxrwxrwx 1 root root 0 2011-03-07 22:11 card17 ->
 ../../devices/pci0000:00/0000:00:09.0/0000:02:00.0/0000:03:00.0/fw2/fw2.0/sound/card17/
 lrwxrwxrwx 1 root root 0 2011-03-07 22:14 controlC17 ->
 ../../devices/pci0000:00/0000:00:09.0/0000:02:00.0/0000:03:00.0/fw2/fw2.0/sound/card17/controlC17/
 lrwxrwxrwx 1 root root 0 2011-03-07 22:18 pcmC17D0p ->
 ../../devices/pci0000:00/0000:00:09.0/0000:02:00.0/0000:03:00.0/fw2/fw2.0/sound/card17/pcmC17D0p/
 lrwxrwxrwx 1 root root 0 2011-03-07 22:18 timer ->
 ../../devices/virtual/sound/timer/
 $ cd card17
 $ ls -l
 drwxr-xr-x 3 root root    0 2011-03-07 22:11 controlC17/
 lrwxrwxrwx 1 root root    0 2011-03-07 22:11 device -> ../../../fw2.0/
 -rw-r--r-- 1 root root 4096 2011-03-07 22:15 id
 -r--r--r-- 1 root root 4096 2011-03-07 22:11 number
 drwxr-xr-x 3 root root    0 2011-03-07 22:11 pcmC17D0p/
 drwxr-xr-x 2 root root    0 2011-03-07 22:14 power/
 lrwxrwxrwx 1 root root    0 2011-03-07 22:11 subsystem ->
 ../../../../../../../../../class/sound/
 -rw-r--r-- 1 root root 4096 2011-03-07 22:11 uevent
 $ cd device
 $ ls -l
 lrwxrwxrwx 1 root root    0 2011-03-07 22:16 driver ->
 ../../../../../../../bus/firewire/drivers/snd_fireworks/
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 modalias
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 model
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 model_name
 drwxr-xr-x 2 root root    0 2011-03-07 22:14 power/
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 rom_index
 drwxr-xr-x 3 root root    0 2011-03-07 22:11 sound/
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 specifier_id
 lrwxrwxrwx 1 root root    0 2011-03-07 22:11 subsystem ->
 ../../../../../../../bus/firewire/
 -rw-r--r-- 1 root root 4096 2011-03-07 22:11 uevent
 -r--r--r-- 1 root root 4096 2011-03-07 22:16 version
 $ cat model model_name
 0x000af2
 AudioFire2
 $ ls -l ..
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 config_rom
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 dev
 drwxr-xr-x 4 root root    0 2011-03-07 22:11 fw2.0/
 -r--r--r-- 1 root root 4096 2011-03-07 22:11 guid
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 model
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 model_name
 drwxr-xr-x 2 root root    0 2011-03-07 22:14 power/
 lrwxrwxrwx 1 root root    0 2011-03-07 22:11 subsystem ->
 ../../../../../../bus/firewire/
 -rw-r--r-- 1 root root 4096 2011-03-07 22:11 uevent
 -r--r--r-- 1 root root 4096 2011-03-07 22:11 units
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 vendor
 -r--r--r-- 1 root root 4096 2011-03-07 22:17 vendor_name
 $ cat ../vendor ../vendor_name ../model ../model_name ../guid
 0x001486
 Echo Digital Audio
 0x000af2
 AudioFire2
 0x0014860b5b6bc934
 }}}

-- 
Ticket URL: <http://pulseaudio.org/ticket/916#comment:3>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list