handle enumerated playback/capture routes.

This commit is contained in:
Takashi Iwai 2002-09-13 17:36:44 +00:00
parent 677b0f60d6
commit cabf841f4e

View file

@ -872,6 +872,10 @@ static int simple_add1(snd_mixer_class_t *class, const char *name,
case CTL_CAPTURE_ROUTE:
{
unsigned int n;
if (info.type == SND_CTL_ELEM_TYPE_ENUMERATED) {
type = CTL_ENUMLIST;
break;
}
if (info.type != SND_CTL_ELEM_TYPE_BOOLEAN)
return 0;
n = sqrt((double)info.count);