From: Mike Brady Date: Mon, 1 May 2017 07:35:56 +0000 (+0100) Subject: Fix silly bug in volume adjust code X-Git-Tag: 3.1d16~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0c8186b4d3940cf3078ef8ef2ea88b938eb2fcd;p=thirdparty%2Fshairport-sync.git Fix silly bug in volume adjust code --- diff --git a/audio_alsa.c b/audio_alsa.c index b173ccc1..7353a4e3 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -933,7 +933,7 @@ static void parameters(audio_parameters *info) { void do_volume(double vol) { // caller is assumed to have the alsa_mutex when using this function debug(3, "Setting volume db to %f.", vol); set_volume = vol; - if (hardware_mixer && alsa_mix_handle) { + if (hardware_mixer && alsa_mix_handle && volume_set_request) { if (has_softvol) { if (ctl && elem_id) { snd_ctl_elem_value_t *value;