diff options
| author | Yu-Hsuan Hsu <yuhsuan@chromium.org> | 2026-07-05 12:59:30 +0000 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-08 12:31:06 +0200 |
| commit | bf08a5f698dcb8495efd94f14d863a8e6b123d25 (patch) | |
| tree | 0a215fdccb6874cc1a4c40e985ef7df7bdeb2d2c /tools/perf/scripts/python | |
| parent | 5171dddf10f8ebd62e2eb6dfea40d770f6d70e5f (diff) | |
ALSA: aloop: Add 'hrtimer' option to timer_source
The snd-aloop driver currently defaults to using the system jiffies
timer (struct timer_list). On systems configured with a low timer
interrupt frequency (e.g., CONFIG_HZ=250), the jiffies resolution
(4ms per tick) is insufficient for precise audio timing. For
example, a 10ms audio period requires 2.5 jiffies ticks, causing
timing jitter that leads to capture underruns.
Introduce "hrtimer" as a supported timer_source option. When
timer_source="hrtimer" is set, aloop uses high-resolution timers
(hrtimer) to drive period updates. This provides nanosecond-level
accuracy regardless of CONFIG_HZ and operates independently of other
hardware audio cards.
Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Link: https://patch.msgid.link/20260705125941.1203871-1-yuhsuan@chromium.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
