all repos — slstatus @ f9f72a06f11de9ecd1b14811eba63c6e8c7a1165

my build of slstatus (tools.suckless.org/slstatus/)

removed unnecessary typecasts (might be a reason for snd_mixer_selem_get_playback_volume_range bug
Ali H. Fardan raiz@firemail.cc
Tue, 23 Aug 2016 13:27:42 +0300
commit

f9f72a06f11de9ecd1b14811eba63c6e8c7a1165

parent

ff013b5fd4e059ae7c9e07ff2ac0e669b7dac136

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -514,8 +514,8 @@ snd_mixer_selem_id_set_name(mute_info, channel);

pcm_mixer = snd_mixer_find_selem(handle, vol_info); mas_mixer = snd_mixer_find_selem(handle, mute_info); - snd_mixer_selem_get_playback_volume_range((snd_mixer_elem_t *)pcm_mixer, &min, &max); - snd_mixer_selem_get_playback_volume((snd_mixer_elem_t *)pcm_mixer, SND_MIXER_SCHN_MONO, &vol); + snd_mixer_selem_get_playback_volume_range(pcm_mixer, &min, &max); + snd_mixer_selem_get_playback_volume(pcm_mixer, SND_MIXER_SCHN_MONO, &vol); snd_mixer_selem_get_playback_switch(mas_mixer, SND_MIXER_SCHN_MONO, &mute); if (vol_info)