mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
handle enumerated playback/capture routes.
This commit is contained in:
parent
677b0f60d6
commit
cabf841f4e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue