Skip to content

audio: make recording watchdog monotonic - #581

Merged
vnarapar merged 1 commit into
qualcomm-linux:mainfrom
smuppand:fix/audiorecord-monotonic-timeout
Sep 17, 2026
Merged

vnarapar merged 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>

@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 3a360e8 into qualcomm-linux:main Sep 17, 2026
14 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.

Intermittantly observing AudioRecord failure

2 participants