Update of /cvsroot/alsa/alsa-utils/alsamixer
In directory sc8-pr-cvs1:/tmp/cvs-serv25171
Modified Files:
alsamixer.c
Log Message:
show the mute status in the item line, too.
Index: alsamixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/alsamixer/alsamixer.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- alsamixer.c 28 May 2003 09:04:52 -0000 1.66
+++ alsamixer.c 22 Jul 2003 16:38:25 -0000 1.67
@@ -786,6 +786,15 @@
strcat(string, " Capture");
if (snd_mixer_selem_id_get_index(sid) > 0)
sprintf(string + strlen(string), " %i", snd_mixer_selem_id_get_index(sid));
+ if ((mixer_type[elem_index] & MIXER_ELEM_MUTE_SWITCH)
+ && snd_mixer_selem_has_playback_switch(elem)) {
+ snd_mixer_selem_get_playback_switch(elem, chn_left, &swl);
+ swr = 0;
+ if (chn_right != SND_MIXER_SCHN_UNKNOWN)
+ snd_mixer_selem_get_playback_switch(elem, chn_right, &swr);
+ if (! swl && ! swr)
+ sprintf(string + strlen(string), " [Off]");
+ }
string[63] = '\0';
strncpy(string1, string, strlen(string));
addstr(string1);
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog