acp: make hard and soft volume limit

Make a hard volume limit property that is configured with the config and
can never be changed.

Make a soft volume limit property that can be changed at runtime.

The used volume limit is a combination of the soft and hard limit.
This commit is contained in:
Wim Taymans 2026-06-08 17:00:40 +02:00
parent 1a534cd907
commit 64d3ed4710
4 changed files with 53 additions and 43 deletions

View file

@ -76,7 +76,8 @@ struct pa_device_port {
pa_direction_t direction;
int64_t latency_offset;
float volume_range[2];
float hard_volume_limit[2];
float soft_volume_limit[2];
pa_proplist *proplist;
pa_hashmap *profiles;