JiriSko / amixer-webui

Web application for control ALSA volume
MIT License
53 stars 21 forks source link

card names do not always display in the drop down #21

Open gearhead opened 3 years ago

gearhead commented 3 years ago

Ran into this a number of times and reverted to an old version which had been hacked on a bit by another user then, recently, noticed that USB devices do not always show up. We are not using pulse, but only alsa. The recent hack in the display of names is this: https://github.com/gearhead/RuneUI/commit/29fcfe926da0290ec06f9afa56111daa81f9fc48 We made a few attempts and finally got it to be reaosnable. The names display as image Which is more closely aligned with the display in aplay -l

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: J380 [Jabra Link 380], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0 [HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0