mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
alsa-mixer: Implement constant volume.
This change makes it possible to configure an arbitrary constant volume for a volume element in the path configuration, which is applied when the path is selected. Note: this is only useful when the exact hardware and driver are known beforehand.
This commit is contained in:
parent
55936640a1
commit
e1c289cc6b
3 changed files with 59 additions and 12 deletions
|
|
@ -62,9 +62,10 @@ typedef enum pa_alsa_switch_use {
|
|||
|
||||
typedef enum pa_alsa_volume_use {
|
||||
PA_ALSA_VOLUME_IGNORE,
|
||||
PA_ALSA_VOLUME_MERGE, /* merge this volume slider into the global volume slider */
|
||||
PA_ALSA_VOLUME_OFF, /* set this volume to minimal unconditionally */
|
||||
PA_ALSA_VOLUME_ZERO /* set this volume to 0dB unconditionally */
|
||||
PA_ALSA_VOLUME_MERGE, /* merge this volume slider into the global volume slider */
|
||||
PA_ALSA_VOLUME_OFF, /* set this volume to minimal unconditionally */
|
||||
PA_ALSA_VOLUME_ZERO, /* set this volume to 0dB unconditionally */
|
||||
PA_ALSA_VOLUME_CONSTANT /* set this volume to a constant value unconditionally */
|
||||
} pa_alsa_volume_use_t;
|
||||
|
||||
typedef enum pa_alsa_enumeration_use {
|
||||
|
|
@ -137,6 +138,8 @@ struct pa_alsa_element {
|
|||
pa_alsa_required_t required_any;
|
||||
pa_alsa_required_t required_absent;
|
||||
|
||||
long constant_volume;
|
||||
|
||||
pa_bool_t override_map:1;
|
||||
pa_bool_t direction_try_other:1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue