Skip to content

audio: make recording watchdog monotonic - #581

Open
Srikanth Muppandam (smuppand) wants to merge 1 commit into
qualcomm-linux:mainfrom
smuppand:fix/audiorecord-monotonic-timeout
Open

Srikanth Muppandam (smuppand) wants to merge 1 commit into
qualcomm-linux:mainfrom
smuppand:fix/audiorecord-monotonic-timeout

Conversation

@smuppand

@smuppand Srikanth Muppandam (smuppand) commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #580

  • use monotonic uptime for audio command deadlines and AudioRecord elapsed-time reporting
  • prevent RTC or NTP corrections from prematurely terminating pw-record
  • add configurable recorder startup headroom through --start-grace and AUDIO_RECORD_START_GRACE
  • report detected wall-clock corrections with an AUDIO-CLOCK diagnostic
  • align all AudioRecord LAVA definitions and documentation

Lava job with these changes - https://lava.infra.foundries.io/scheduler/job/426073

Use the shared monotonic clock for audio command deadlines and elapsed-time reporting so RTC or NTP corrections cannot terminate an active capture early.

Add recorder startup headroom for duration-driven watchdogs, expose it through the AudioRecord CLI and LAVA definitions, and log detected wall-clock corrections for target diagnosis.

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.

Intermittantly observing AudioRecord failure

1 participant