diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/volume.c | 3 | ||||
-rw-r--r-- | src/volume.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/volume.c b/src/volume.c index 501791016..c5c1e83b2 100644 --- a/src/volume.c +++ b/src/volume.c @@ -36,6 +36,7 @@ #define VOLUME_MIXER_TYPE_SOFTWARE 0 #define VOLUME_MIXER_TYPE_HARDWARE 1 +#define VOLUME_MIXER_TYPE_DISABLED 2 #define VOLUME_MIXER_SOFTWARE_DEFAULT "" #define SW_VOLUME_STATE "sw_volume: " @@ -131,6 +132,8 @@ void volume_init(void) if (param) { if (strcmp(param->value, VOLUME_MIXER_SOFTWARE) == 0) { volume_mixer_type = VOLUME_MIXER_TYPE_SOFTWARE; + } else if (strcmp(param->value, VOLUME_MIXER_DISABLED) == 0) { + volume_mixer_type = VOLUME_MIXER_TYPE_DISABLED; } else if (strcmp(param->value, VOLUME_MIXER_HARDWARE) == 0) { //nothing to do } else { diff --git a/src/volume.h b/src/volume.h index fbf86df89..950f26e7a 100644 --- a/src/volume.h +++ b/src/volume.h @@ -25,6 +25,7 @@ #define VOLUME_MIXER_ALSA "alsa" #define VOLUME_MIXER_SOFTWARE "software" #define VOLUME_MIXER_HARDWARE "hardware" +#define VOLUME_MIXER_DISABLED "disabled" void volume_init(void); |