From e1c289cc6b9f9399f9626304dcd3a2c1aca668a7 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 17 Mar 2011 12:23:41 +0200 Subject: 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. --- src/modules/alsa/alsa-mixer.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/alsa/alsa-mixer.h') diff --git a/src/modules/alsa/alsa-mixer.h b/src/modules/alsa/alsa-mixer.h index c24a8965..a29aed1c 100644 --- a/src/modules/alsa/alsa-mixer.h +++ b/src/modules/alsa/alsa-mixer.h @@ -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; -- cgit