diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-13 21:08:44 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-13 21:08:44 +0200 |
commit | 87c1377b08a9001a16943942e9d67458d8d19c33 (patch) | |
tree | 73bbc23b91fee7fdf629619092cbe66d8340bdd0 /slstatus.c | |
parent | 74b6e340f2be27f82b4dcfc95fab47cbc0a5843b (diff) |
simplified vol_perc() (and with that config.def.h is super clean)
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -459,7 +459,7 @@ uid(void) static char * -vol_perc(const char *snd_card) +vol_perc(const char *soundcard) { /* FIX THIS SHIT! */ long int vol, max, min; snd_mixer_t *handle; @@ -471,7 +471,7 @@ vol_perc(const char *snd_card) snd_mixer_selem_register(handle, NULL, NULL); snd_mixer_load(handle); snd_mixer_selem_id_malloc(&s_elem); - snd_mixer_selem_id_set_name(s_elem, ALSA_CHANNEL); + snd_mixer_selem_id_set_name(s_elem, "Master"); elem = snd_mixer_find_selem(handle, s_elem); if (elem == NULL) { |