plugin-audio icon indicating copy to clipboard operation
plugin-audio copied to clipboard

USB Sound card does not appear (HA .qcow2 vm)

Open philibertc opened this issue 4 years ago • 2 comments

The problem

When a sound card is connected, it appears well when dmesg is run but does not appear anywhere on HA (Audio Add-ons, ha audio info).

What type of installation are you running?

Home Assistant OS on a virtual machine (qcow2)

Anything in the logs that might be useful for us?

ha audio logs output: https://imgur.com/a/K9nddQg I can't copy the text inside the terminal add-on.

Additional information

Info from dmesg:

image

Card info:

C-Media USB Sound Device The chip is a CM102-A+ From C-Media

Datasheets of the card:

http://www.aqvox.de/download/CM102S-USB-DAC10.pdf https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM102AplusSplus

Infos from @agners:

"The sound card you mentioned is supported by CONFIG_SND_USB_AUDIO, which is enabled in the kernel config. From your dmesg snipped it also seems that the USB sound card driver got loaded correctly. So I assume this is a problem on a higher level (user space). @pvizeli do we have USB audio handled in general in PulseAudio? Maybe something wrong with the PulseAudio configuration/USB audio device not available in the Audio container?"

philibertc avatar May 14 '21 12:05 philibertc

I have a Jabra 410 plugged into the USB port of a Rpi4. dmesg shows

# dmesg | grep  Jabra
25498.922924] usb 1-1.1: Product: Jabra SPEAK 410 USB
[25498.951879] input: Jabra SPEAK 410 USB Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:0B0E:0412.0001/input/input0
[25499.010898] input: Jabra SPEAK 410 USB as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:0B0E:0412.0001/input/input1
[25499.011469] input: Jabra SPEAK 410 USB as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:0B0E:0412.0001/input/input2
[25499.012724] hid-generic 0003:0B0E:0412.0001: input,hiddev96,hidraw0: USB HID v1.11 Device [Jabra SPEAK 410 USB] on usb-0000:01:00.0-1.1/input3
[32959.759573] usb 1-1.4: Product: Jabra SPEAK 410 USB
[32959.974462] input: Jabra SPEAK 410 USB Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.3/0003:0B0E:0412.0002/input/input3
[32960.034965] input: Jabra SPEAK 410 USB as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.3/0003:0B0E:0412.0002/input/input4
[32960.035547] input: Jabra SPEAK 410 USB as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.3/0003:0B0E:0412.0002/input/input5

However, neither mic nor speaker are visible in HA

# ha audio info
audio:
  application: []
  card:
  - driver: module-alsa-card.c
    index: 0
    name: alsa_card.platform-bcm2835_audio
    profiles:
    - active: true
      description: Stereo Output
      name: output:stereo-fallback
    - active: false
      description: Mono Output
      name: output:mono-fallback
    - active: false
      description: Multichannel Output
      name: output:multichannel-output
    - active: false
      description: "Off"
      name: "off"
  input: []
  output:
  - applications: []
    card: 0
    default: true
    description: Built-in Audio Stereo
    index: 0
    mute: false
    name: alsa_output.platform-bcm2835_audio.stereo-fallback
    volume: 0.857696533203125
host: 172.30.32.4
update_available: false
version: 2022.07.0
version_latest: 2022.07.0

My system: HA OS 2022.10.01 on a Rpi4

githubkusi avatar Oct 09 '22 21:10 githubkusi

Same problem here with Proxmox and Calisto 620 speaker over usb... Devise listed as event in hassio and not as audio...

oberlinatgithub avatar Jan 02 '24 11:01 oberlinatgithub

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 18 '24 05:12 github-actions[bot]