1 Apr 2005 17:09
mixerctl -q
Daniel Cavanagh <danielcavanagh <at> aanet.com.au>
2005-04-01 15:09:22 GMT
2005-04-01 15:09:22 GMT
the provided patches implement -q for mixerctl as specified by the man
page, and remove a few superfluous commands in /etc/rc
--- src/usr.bin/mixerctl/mixerctl.c.orig Thu Feb 10 17:55:42 2005
+++ src/usr.bin/mixerctl/mixerctl.c Sat Apr 2 00:51:01 2005
<at> <at> -71,6 +71,8 <at> <at>
mixer_ctrl_t *values;
mixer_devinfo_t *infos;
+int qflag;
+
void
catstr(char *p, char *q, char *out)
{
<at> <at> -221,7 +223,7 <at> <at>
if (ioctl(fd, AUDIO_MIXER_WRITE, p->valp) < 0) {
warn("AUDIO_MIXER_WRITE");
- } else {
+ } else if (!qflag) {
*p->valp = oldval;
prfield(p, ": ", 0);
if (ioctl(fd, AUDIO_MIXER_READ, p->valp) < 0) {
<at> <at> -238,7 +240,7 <at> <at>
main(int argc, char **argv)
{
int fd, i, j, ch, pos;
- int aflag = 0, qflag = 0, vflag = 0;
+ int aflag, vflag;
char *file;
(Continue reading)
RSS Feed