From ab979d59674d02961055caeb39a0cdf60d8cb81c Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sat, 7 May 2016 08:01:05 +0000 Subject: [PATCH] Fix warning about redefined function. --- audio_alsa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);