mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:36:30 +01:00
Abramo Bagnara <abramo@alsa-project.org>
Tue, 07 Dec 1999 08:44:05 +0100 - pcm mixer elements splitted for subchannel handling - small fix to pcm device element
This commit is contained in:
parent
d162b1026f
commit
8bb1860bf2
1 changed files with 16 additions and 7 deletions
|
@ -49,8 +49,10 @@ struct mixer_types {
|
||||||
struct mixer_types mixer_types[] = {
|
struct mixer_types mixer_types[] = {
|
||||||
{ SND_MIXER_ETYPE_INPUT, "Input" },
|
{ SND_MIXER_ETYPE_INPUT, "Input" },
|
||||||
{ SND_MIXER_ETYPE_OUTPUT, "Output" },
|
{ SND_MIXER_ETYPE_OUTPUT, "Output" },
|
||||||
{ SND_MIXER_ETYPE_CAPTURE, "Capture" },
|
{ SND_MIXER_ETYPE_CAPTURE1, "Capture Channel" },
|
||||||
{ SND_MIXER_ETYPE_PLAYBACK, "Playback" },
|
{ SND_MIXER_ETYPE_CAPTURE2, "Capture Subchannel" },
|
||||||
|
{ SND_MIXER_ETYPE_PLAYBACK1, "Playback Channel" },
|
||||||
|
{ SND_MIXER_ETYPE_PLAYBACK2, "Playback Subchannel" },
|
||||||
{ SND_MIXER_ETYPE_ADC, "ADC" },
|
{ SND_MIXER_ETYPE_ADC, "ADC" },
|
||||||
{ SND_MIXER_ETYPE_DAC, "DAC" },
|
{ SND_MIXER_ETYPE_DAC, "DAC" },
|
||||||
{ SND_MIXER_ETYPE_SWITCH1, "Switch1" },
|
{ SND_MIXER_ETYPE_SWITCH1, "Switch1" },
|
||||||
|
@ -508,15 +510,22 @@ int show_element_info(void *handle, snd_mixer_eid_t *eid, const char *space)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SND_MIXER_ETYPE_CAPTURE:
|
case SND_MIXER_ETYPE_CAPTURE1:
|
||||||
case SND_MIXER_ETYPE_PLAYBACK:
|
case SND_MIXER_ETYPE_PLAYBACK1:
|
||||||
for (idx = 0; idx < info.data.pcm.devices; idx++) {
|
for (idx = 0; idx < info.data.pcm1.devices; idx++) {
|
||||||
printf("%sPCM device %i %i\n",
|
printf("%sPCM device %i: %i\n",
|
||||||
space,
|
space,
|
||||||
idx,
|
idx,
|
||||||
info.data.pcm.pdevices[idx]);
|
info.data.pcm1.pdevices[idx]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SND_MIXER_ETYPE_CAPTURE2:
|
||||||
|
case SND_MIXER_ETYPE_PLAYBACK2:
|
||||||
|
printf("%sPCM subdevice %i %i\n",
|
||||||
|
space,
|
||||||
|
info.data.pcm2.device,
|
||||||
|
info.data.pcm2.subdevice);
|
||||||
|
break;
|
||||||
case SND_MIXER_ETYPE_ADC:
|
case SND_MIXER_ETYPE_ADC:
|
||||||
case SND_MIXER_ETYPE_DAC:
|
case SND_MIXER_ETYPE_DAC:
|
||||||
printf("%sResolution %i-bits\n", space, info.data.converter.resolution);
|
printf("%sResolution %i-bits\n", space, info.data.converter.resolution);
|
||||||
|
|
Loading…
Reference in a new issue