Skip to content

audio: add dynamic playback and capture route selection - #613

Open
Srikanth Muppandam (smuppand) wants to merge 5 commits into
qualcomm-linux:mainfrom
smuppand:audio-route-selection
Open

Srikanth Muppandam (smuppand) wants to merge 5 commits into
qualcomm-linux:mainfrom
smuppand:audio-route-selection

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

Add runtime audio-route discovery without hard-coded card, PCM, sink, or source names.

Changes

  • Automatically select playback routes in this order:
    • Speakers
    • Headphones/headset
  • Automatically select capture routes in this order:
    • Built-in microphone
    • Headset microphone
  • Support explicit speaker, headset, mic, and headset-mic overrides.
  • Validate explicit routes against discovered runtime capabilities.
  • Discover routes through PipeWire, PulseAudio, ALSA, and UCM.
  • Apply the same routing model to:
    • AudioPlayback
    • AudioRecord
    • AudioLoopback
  • Improve direct ALSA fallback and diagnostics.
  • Accept valid RIFF chunks following WAV audio data.
  • Preserve portability across Yocto, Debian, Ubuntu, and other supported distributions.

Result handling

  • Explicitly requested unavailable routes report an actionable FAIL.
  • Automatic discovery reports SKIP when no usable physical route is available.
  • Functional playback, recording, and loopback failures remain FAIL.

Fixes #454

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audio test procedures changed for Hamoa ubuntu

1 participant