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

@ -52,7 +52,7 @@ struct pa_card {
bool use_eld_channels;
uint32_t rate;
uint32_t pro_channels;
float volume_range[2];
float hard_volume_limit[2];
pa_alsa_ucm_config ucm;
pa_alsa_profile_set *profile_set;