Skip to content

multimedia/audio: improve minimal-build handling for playback and record#334

Open
smuppand wants to merge 3 commits intoqualcomm-linux:mainfrom
smuppand:audio
Open

multimedia/audio: improve minimal-build handling for playback and record#334
smuppand wants to merge 3 commits intoqualcomm-linux:mainfrom
smuppand:audio

Conversation

@smuppand
Copy link
Contributor

@smuppand smuppand commented Mar 8, 2026

This PR improves audio test behavior on minimal builds where systemctl may exist but managed audio services such as PipeWire/PulseAudio are not available.

Changes

  • update audio_common.sh with shared helpers for backend management detection and ALSA probing
  • update AudioPlayback/run.sh to fall back cleanly to direct ALSA playback on minimal builds
  • update AudioRecord/run.sh to probe ALSA capture and report a clear SKIP when no usable capture profile is available
  • add minimal-build LAVA YAMLs for AudioPlayback and AudioRecord
  • keep existing full-build behavior unchanged

Expected behavior

  • full builds continue to use the existing managed backend flow
  • minimal builds can run AudioPlayback through ALSA fallback
  • minimal builds will SKIP AudioRecord with a clear reason until the capture path is enabled on the image

smuppand added 3 commits March 8, 2026 06:33
Introduce shared helpers for backend management detection and ALSA playback/capture probing.
Improve audio fallback behavior for images without pipewire/pulseaudio services.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Handle minimal images without managed audio services by falling back to direct ALSA playback.
Keep full-build behavior unchanged while improving minimal-build execution and logging.
Add a dedicated AudioPlayback LAVA YAML for minimal images using direct ALSA playback and custom clip path support.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Try direct ALSA capture on minimal images and report a clear SKIP when no usable capture profile is available.
Preserve existing full-build backend flow and logging.
Add a dedicated AudioRecord LAVA YAML for minimal images using ALSA capture probing and clear skip behavior.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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.

1 participant