From c228b946af9aebb0b2bf98422e122c9da7983200 Mon Sep 17 00:00:00 2001 From: Li-Yu Yu Date: Wed, 21 Jun 2023 10:43:30 +0800 Subject: [PATCH] use-case: Add new LatencyOffsetMs field Some drivers do not report accurate latencies. Add a LatencyOffsetMs UCM Value allow adding a static offset to the reported latency. Signed-off-by: Li-Yu Yu --- include/use-case.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/use-case.h b/include/use-case.h index e5d4fd68..812f6937 100644 --- a/include/use-case.h +++ b/include/use-case.h @@ -404,6 +404,10 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, * to e.g. automatically mute speakers when headphones are plugged in, * but that's application policy configuration that doesn't belong * to UCM configuration files. + * - LatencyOffsetMs + * The extra latency of the device, in milliseconds. + * This field is meant as a workaround for drivers that do not report + * an accurate latency, but with a constant offset. * - MinBufferLevel * - This is used on platform where reported buffer level is not accurate. * E.g. "512", which holds 512 samples in device buffer. Note: this will