aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mixer/alsa_mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/alsa_mixer.c b/src/mixer/alsa_mixer.c
index 75321408..6c7476ab 100644
--- a/src/mixer/alsa_mixer.c
+++ b/src/mixer/alsa_mixer.c
@@ -52,8 +52,6 @@ alsa_mixer_init(const struct config_param *param)
am->control = config_get_block_string(param, "mixer_control",
VOLUME_MIXER_ALSA_CONTROL_DEFAULT);
- am->volume_set = -1;
-
return &am->base;
}
@@ -82,6 +80,8 @@ alsa_mixer_open(struct mixer *data)
int err;
snd_mixer_elem_t *elem;
+ am->volume_set = -1;
+
err = snd_mixer_open(&am->handle, 0);
snd_config_update_free_global();
if (err < 0) {