aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/cmake/config.cmake
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-02 16:33:03 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-02 16:41:06 +0200
commitfea205f5eabfb224ce2c9c2c58fe0e4a0ba0befd (patch)
tree8e2bc99811359178264d43a3d87af09d0fc66648 /conf.d/cmake/config.cmake
parent1238224125535c8a64615dff006b116d9c78e5b3 (diff)
Add a definition to force status refresh
Add a 'FORCE_STATUS_REFRESH_MS' definition that can be use to force cards/PCM status refresh. Might be used in case of missed events using 'inotify'. BUG-AGL: SPEC-2849 Change-Id: I8de80a95b752e5e4a14ad433460598e371d3a39f Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'conf.d/cmake/config.cmake')
-rw-r--r--conf.d/cmake/config.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index 55dd171..a44371f 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -111,11 +111,12 @@ set(COMPILE_OPTIONS
-fdata-sections
-fPIC
# Personal compilation options
--DMAX_SND_CARD=32 # default ALSA max cards
--DMAX_CARD_DEVICES=32 # 32 devices by sound card should be enough (more investigation needed about this)
--DMAX_DEVICE_SUBDEVICES=8 # 8 subdevices by device should be enough (more investigation needed about this)
--DMAX_LINEAR_DB_SCALE=24 # until 24db volume normalisation use a simple linear scale
--DTLV_BYTE_SIZE=256 # Alsa use 4096 as default but 256 should fit most sndcards
+-DMAX_SND_CARD=32 # default ALSA max cards
+-DMAX_CARD_DEVICES=32 # 32 devices by sound card should be enough (more investigation needed about this)
+-DMAX_DEVICE_SUBDEVICES=8 # 8 subdevices by device should be enough (more investigation needed about this)
+-DMAX_LINEAR_DB_SCALE=24 # until 24db volume normalisation use a simple linear scale
+-DTLV_BYTE_SIZE=256 # Alsa use 4096 as default but 256 should fit most sndcards
+#-DFORCE_STATUS_REFRESH_MS=5000 # Force card/pcm status refresh every X ms (use to be sure to catch every status changes)
-DCONTROL_MAXPATH_LEN=255
CACHE STRING "Compilation flags")
#set(C_COMPILE_OPTIONS "" CACHE STRING "Compilation flags for C language.")