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 <aaronyu@google.com>
This commit is contained in:
Li-Yu Yu 2023-06-21 10:43:30 +08:00
parent b7389e2e2e
commit c228b946af

View file

@ -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