OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02b2006
)
Fix alsa-lib to regard 3D control - Depth as Playback Controls
author
Raymond Yau
<superquad.vortex2@gmail.com>
Sat, 26 Feb 2011 01:24:43 +0000
(09:24 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 28 Feb 2011 10:15:57 +0000
(11:15 +0100)
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>
src/mixer/simple_none.c
patch
|
blob
|
history
diff --git
a/src/mixer/simple_none.c
b/src/mixer/simple_none.c
index
426f2d7
..
395e4d6
100644
(file)
--- 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;
}