Home | History | Annotate | Download | only in other

Lines Matching refs:channel

12    usage: mix [-d DEV] [-c CHANNEL] [-l VOL] [-r RIGHT]
16 -c CHANNEL Set/show volume of CHANNEL (default first channel found)
19 -r RIGHT Volume of right stereo channel (with -r, -l sets left volume)
36 int mask, channel = -1, level, fd;
42 for (channel = 0; channel < SOUND_MIXER_NRDEVICES; channel++) {
43 if ((1<<channel) & mask) {
45 if (!strcmp(channels[channel], TT.chan)) break;
47 else printf("%s\n", channels[channel]);
52 else if (channel == SOUND_MIXER_NRDEVICES) error_exit("bad -c '%s'", TT.chan);
55 xioctl(fd, MIXER_READ(channel), &level);
58 TT.dev, channels[channel], level>>8, level & 0xFF);
59 else xprintf("%s:%s = %d\n", TT.dev, channels[channel], level);
64 xioctl(fd, MIXER_WRITE(channel), &level);