Skip to content

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

Merged
vnarapar merged 3 commits into
qualcomm-linux:mainfrom
smuppand:audio
Apr 2, 2026
Merged

vnarapar merged 3 commits into
qualcomm-linux:mainfrom
smuppand:audio

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

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

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>
Comment thread Runner/suites/Multimedia/Audio/AudioPlayback/run.sh
Comment thread Runner/suites/Multimedia/Audio/AudioPlayback/run.sh
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.
Fixed shellcheck errors.

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.
Fixed shellcheck reported lint issues.

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

vnarapar commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Can you check the shell check?

@smuppand

Copy link
Copy Markdown
Contributor Author

Can you check the shell check?

These issues are not related to this PR. They need to be checked and resolved separately.

@vnarapar vnarapar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vnarapar
vnarapar merged commit de26162 into qualcomm-linux:main Apr 2, 2026
11 of 12 checks passed
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.

2 participants