From 6d1eb880c238dba0b71c820a4bfca673ddfa4625 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Mon, 13 Mar 2017 09:45:47 -0600 Subject: menuselect: Add a new 'options' support type The Binaural Rendering patches in the master branch required menuselect to be updated with a new support type called 'option'. This allows binaural rendering to be turned on or off when bridge_softmix is built. This patch backports the 'option' functionality to the 13 and 14 branches. Here's what it looks like in menuselect: [*] bridge_simple [*] bridge_softmix --- Module Options --- [ ] binaural_rendering_in_bridge_softmix To create an option for a module, you can create (or update) the menuselect-tree xml snippet in the directory where the module resides and add a member element with an 'option' support_level. Example (abbreviated) from bridges/bridges.xml: option bridge_softmix fftw3 no The 'name' will be added or removed from the MENUSELECT_ make variable following the standard module "missing means yes" rules. Example (abbreviated) from bridges/Makefile: ifeq ($(findstring binaural_rendering,$(MENUSELECT_BRIDGES)),) bridge_softmix.o: _ASTCFLAGS+=-DBINAURAL_RENDERING bridge_softmix.so: LIBS+=$(FFTW3_LIB) endif Change-Id: I66d23755ed6e81f8d439cad410f2ffa7c30f25ad --- menuselect/menuselect.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'menuselect/menuselect.h') diff --git a/menuselect/menuselect.h b/menuselect/menuselect.h index bf2bf4c4f..78ae8eff6 100644 --- a/menuselect/menuselect.h +++ b/menuselect/menuselect.h @@ -108,7 +108,8 @@ enum support_level_values { SUPPORT_DEPRECATED = 2, SUPPORT_UNSPECIFIED = 3, SUPPORT_EXTERNAL = 4, - SUPPORT_COUNT = 5, /* Keep this item at the end of the list. Tracks total number of support levels. */ + SUPPORT_OPTION = 5, + SUPPORT_COUNT = 6, /* Keep this item at the end of the list. Tracks total number of support levels. */ }; AST_LIST_HEAD_NOLOCK(support_level_bucket, member); -- cgit v1.2.3