From: Raymond Yau Date: Sat, 26 Feb 2011 01:24:43 +0000 (+0800) Subject: Fix alsa-lib to regard 3D control - Depth as Playback Controls X-Git-Tag: v1.0.25~51 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=886adf664b958aa28ccc6b06c552764069293f83;p=alsa-lib.git 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 Signed-off-by: Takashi Iwai --- diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c index 426f2d71..395e4d60 100644 --- a/src/mixer/simple_none.c +++ b/src/mixer/simple_none.c @@ -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; }