Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
simplified vol_perc() (and with that config.def.h is super clean)
[slstatus.git]
/
slstatus.c
diff --git
a/slstatus.c
b/slstatus.c
index
f61e987
..
1b45f64
100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-459,7
+459,7
@@
uid(void)
static char *
static char *
-vol_perc(const char *s
nd_
card)
+vol_perc(const char *s
ound
card)
{ /* FIX THIS SHIT! */
long int vol, max, min;
snd_mixer_t *handle;
{ /* 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_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) {
elem = snd_mixer_find_selem(handle, s_elem);
if (elem == NULL) {