Skip to content

audio: fix AudioRecord retry-path variable clobbering in LAVA#443

Merged
bhargav0610 merged 1 commit intoqualcomm-linux:mainfrom
smuppand:audio
May 5, 2026
Merged

audio: fix AudioRecord retry-path variable clobbering in LAVA#443
bhargav0610 merged 1 commit intoqualcomm-linux:mainfrom
smuppand:audio

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented May 5, 2026

audio: fix AudioRecord filename clobbering on PipeWire retry path

This PR addresses #441.

AudioRecord can fail intermittently in LAVA after the PipeWire error path, where status text is accidentally reused as the recording output path and the script aborts with "File name too long" instead of producing a result file.

Fix this by renaming the run.sh output-path variable and by using safer variable names in PipeWire helper functions in audio_common.sh so sourced POSIX sh helpers do not clobber the caller state.

Fixes: #441

Rename generic run.sh output path variables to record_out and
update PipeWire helper functions to use safer local variable names.

This avoids shell variable collisions in POSIX sh that could
overwrite the recording output path and cause LAVA failures

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand requested a review from bhargav0610 May 5, 2026 11:14
@smuppand
Copy link
Copy Markdown
Contributor Author

smuppand commented May 5, 2026

Copy link
Copy Markdown
Contributor

@bhargav0610 bhargav0610 left a comment

Choose a reason for hiding this comment

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

LGTM

@bhargav0610 bhargav0610 merged commit af24610 into qualcomm-linux:main May 5, 2026
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.

AudioRecord fails: qcom-apm GPR CMD timeout; q6apm fails to start APM port 110; ASoC trigger -110 on VA_CODEC_DMA_TX_0

2 participants