Fix alsa-lib to regard 3D control - Depth as Playback Controls

This allow those mixer or recording application to find those controls which
are really used for capturing.

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Raymond Yau 2011-02-26 09:24:43 +08:00 committed by Takashi Iwai
parent 02b2006713
commit 886adf664b

View file

@ -937,7 +937,12 @@ static int base_len(const char *name, selem_ctl_type_t *type)
*type = CTL_CAPTURE_ROUTE;
return strlen(name);
}
if (strstr(name, "3D Control") > 0) {
if (strstr(name, "Depth") > 0) {
*type = CTL_PLAYBACK_VOLUME;
return strlen(name);
}
}
return 0;
}