usb audio output device not found

Open
#680 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
raspberry-pi, rust

Research direction

Start with the Linux ALSA device enumeration path and the example mentioned in the report. Reproduce on Linux with ALSA using aplay -L and compare its listed devices with the devices returned by cpal. The issue does not identify a source file or test, so trace enumeration from the example and determine whether USB audio outputs appear; the thread has had no comment for over three years.

Written by the indexing model from the issue text.

Description

host - alsa platform - linux

I cannot enumerate usb audio output devices on linux with alsa, either on an archlinux x86 laptop or a raspberry pi.
aplay -L returns e.g.:

... snip
hdmi:CARD=PCH,DEV=4
    HDA Intel PCH, HDMI 4
    HDMI Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output

and enumeration with example and my own code only shows the last hdmi dev=4 device, e.g.:

  19. "hdmi:CARD=PCH,DEV=4"
    Error getting supported input configs: DeviceNotAvailable
    Default output stream config:
      SupportedStreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Range { min: 8, max: 1048576 }, sample_format: I16 }

is there something I'm missing here?

Dominant language
Rust
Stars
4k
Forks
554
Avg merge
1d 3h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/cpal

All issues in RustAudio/cpal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.