From 0b5692b38a885a5cbf6d77fa648740f3202ffd56 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 22 Jul 1999 22:23:42 +0000 Subject: [PATCH] More mixer updates (GUS), OSS API emulation.. --- amixer/amixer.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/amixer/amixer.c b/amixer/amixer.c index 970302b..916e350 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -780,19 +780,19 @@ int show_group(void *handle, snd_mixer_gid_t *gid, const char *space) printf(" mute"); if (group.caps & SND_MIXER_GRPCAP_JOINTLY_MUTE) printf(" jointly-mute"); - if (group.caps & SND_MIXER_GRPCAP_RECORD) { - printf(" record"); + if (group.caps & SND_MIXER_GRPCAP_CAPTURE) { + printf(" capture"); } else { - group.record = 0; + group.capture = 0; } - if (group.caps & SND_MIXER_GRPCAP_JOINTLY_RECORD) - printf(" jointly-record"); - if (group.caps & SND_MIXER_GRPCAP_EXCL_RECORD) - printf(" exclusive-record"); + if (group.caps & SND_MIXER_GRPCAP_JOINTLY_CAPTURE) + printf(" jointly-capture"); + if (group.caps & SND_MIXER_GRPCAP_EXCL_CAPTURE) + printf(" exclusive-capture"); printf("\n"); - if ((group.caps & SND_MIXER_GRPCAP_RECORD) && - (group.caps & SND_MIXER_GRPCAP_EXCL_RECORD)) - printf("%sRecord exclusive group: %i\n", space, group.record_group); + if ((group.caps & SND_MIXER_GRPCAP_CAPTURE) && + (group.caps & SND_MIXER_GRPCAP_EXCL_CAPTURE)) + printf("%sCapture exclusive group: %i\n", space, group.capture_group); printf("%sChannels: ", space); if (group.channels == SND_MIXER_CHN_MASK_MONO) { printf("Mono"); @@ -816,7 +816,7 @@ int show_group(void *handle, snd_mixer_gid_t *gid, const char *space) snd_mixer_channel_name(chn), get_percent(group.volume.values[chn], group.min, group.max), group.mute & (1<