Commit 646d0d12 authored by Jan Djärv's avatar Jan Djärv
Browse files

(alsa_configure): Declare vol at beginning of block.

parent 2f9a87f5
......@@ -1105,9 +1105,9 @@ alsa_configure (sd)
{
if (snd_mixer_selem_has_playback_volume (e))
{
long pmin, pmax;
long pmin, pmax, vol;
snd_mixer_selem_get_playback_volume_range (e, &pmin, &pmax);
long vol = pmin + (sd->volume * (pmax - pmin)) / 100;
vol = pmin + (sd->volume * (pmax - pmin)) / 100;
for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++)
snd_mixer_selem_set_playback_volume (e, chn, vol);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment