mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
4db6e0e2b3
commit
d80d593271
4 changed files with 87 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue