Audio init + Playback/Record hardening: platform logs, network parity, asset checks, and exit codes#190
Merged
abbajaj806 merged 3 commits intoqualcomm-linux:mainfrom Oct 10, 2025
Merged
Conversation
- Add __INIT_ENV_LOADED guard to prevent double sourcing. - Detect ROOT_DIR (CWD or walk-up) and export TOOLS/paths. - Quietly source utils; fail fast if utils/functestlib.sh missing. - Fix empty so platform/network helpers are available. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
…k; improve asset logging & exits - Introduce --ssid/--password (no exports); keep existing flow and names. - Print platform details via detect_platform, no new files/functions. - Align with video: rootfs >=2GiB gate, network status/bring-up with NET_STABILIZE_SLEEP and TOP_LEVEL_RUN. - Before fetching, check for existing clip, log source URL and final size. keep audio_ensure_clip_ready behavior. - Proper exit codes (PASS/SKIP=0, FAIL=1) multi-line refactors, address ShellCheck SC1091/SC2034 without logic changes. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
…, platform log - Return distinct exit codes (0=PASS, 1=FAIL, 2=SKIP) to align with harness. - Fix ShellCheck issues: SC1091 (sourcing), SC1010 (‘; then’), SC2124 (rc=0). - Expand one-liners to multi-line for readability; no behavioral changes. - Log platform details via detect_platform (with safe fallback to ‘unknown’). Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is going to enhance as per the #187
init_env
AudioPlayback
AudioRecord