acp: add support for soft volume

Add a set_soft_volume/mute event.
If we can't configure the hardware volume completely, notify
the remainder with the soft_volume/mute events.
This commit is contained in:
Wim Taymans 2020-07-06 17:22:42 +02:00
parent 4db6e0e2b3
commit d80d593271
4 changed files with 87 additions and 10 deletions

View file

@ -127,6 +127,10 @@ struct acp_card_events {
void (*volume_changed) (void *data, struct acp_device *dev);
void (*mute_changed) (void *data, struct acp_device *dev);
void (*set_soft_volume) (void *data, struct acp_device *dev,
const float *volume, uint32_t n_volume);
void (*set_soft_mute) (void *data, struct acp_device *dev, bool mute);
};
struct acp_port {