alsa: hook up latencyOffsetNsec in ALSA sink/source

This property is exposed on the device Route and forwarded to the
nodes. It then configured the process_latency.ns field, which
influences the reported port latency.

This makes it possible to change the internal port latency on the
sink and source with pavucontrol and tweak the synchronization to
compensate for internal latencies in the device.
This commit is contained in:
Wim Taymans 2021-08-17 11:57:12 +02:00
parent 391465d1cd
commit c39d374ca8
4 changed files with 125 additions and 18 deletions

View file

@ -225,6 +225,8 @@ struct acp_device {
uint32_t n_ports;
struct acp_port **ports;
int64_t latency_ns;
};
struct acp_card_profile {