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

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>
if [ -z "${__INIT_ENV_LOADED:-}" ]; then
# shellcheck disable=SC1090
. "$INIT_ENV"
__INIT_ENV_LOADED=1
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the spacing removed?

Copy link
Contributor Author

@smuppand smuppand Mar 15, 2026

Choose a reason for hiding this comment

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

why is the spacing removed?

There is no functional reason for the spacing change — that was unintended during the edit.

SEARCH="$SCRIPT_DIR"

while [ "$SEARCH" != "/" ]; do
if [ -f "$SEARCH/init_env" ]; then
Copy link
Contributor

@vnarapar vnarapar Mar 13, 2026

Choose a reason for hiding this comment

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

Any reason why spacing is removed? If so these should be in different commit

Copy link
Contributor Author

@smuppand smuppand Mar 15, 2026

Choose a reason for hiding this comment

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

Any reason why spacing is removed? If so these should be in different commit

There is no functional reason for the spacing change — that was unintended during the edit.

@smuppand smuppand force-pushed the audio branch 6 times, most recently from c188be1 to 739ed38 Compare March 15, 2026 02:15
@smuppand smuppand requested a review from vnarapar March 15, 2026 02:19
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>
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