From: Mike Brady Date: Sat, 7 May 2016 08:01:05 +0000 (+0000) Subject: Fix warning about redefined function. X-Git-Tag: 2.8.3.5~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab979d59674d02961055caeb39a0cdf60d8cb81c;p=thirdparty%2Fshairport-sync.git Fix warning about redefined function. --- diff --git a/audio_alsa.c b/audio_alsa.c index 85b86fcc..9d25ddd5 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -289,10 +289,10 @@ static int init(int argc, char **argv) { audio_alsa.parameters = ¶meters; // likewise the parameters stuff if (alsa_mix_mindb == SND_CTL_TLV_DB_GAIN_MUTE) { // Raspberry Pi does this - debug(1, "Lowest dB value is a mute."); - //if (snd_mixer_selem_ask_playback_vol_dB( - // alsa_mix_elem, alsa_mix_minv + 1, &alsa_mix_mindb) == 0) - // debug(1, "Can't get dB value corresponding to a \"volume\" of 1."); + debug(1, "Lowest dB value is a mute -- try minimum volume +1"); + if (snd_mixer_selem_ask_playback_vol_dB( + alsa_mix_elem, alsa_mix_minv + 1, &alsa_mix_mindb) != 0) + debug(1, "Can't get dB value corresponding to a minimum volume + 1."); } debug(1, "Hardware mixer has dB volume from %f to %f.", (1.0 * alsa_mix_mindb) / 100.0, (1.0 * alsa_mix_maxdb) / 100.0);