aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-02-19 16:46:03 +0100
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-02-19 16:46:03 +0100
commitb8af262e1377072e4091a1a3196e1a739d671975 (patch)
tree6c2cd39d741b10ee666022c21f5c8a4befa985c5 /conf.d
parent4eb02cc449f51343bd5a08b76d92e4099f9ddf54 (diff)
Rework ALSA card get info function
Rework ALSA card get info function to : - Be able to probe an ALSA card depending on multiple parameters (card number, card path, card id, card short name, card long name, card driver, card mixer name, card components). If several parameters are requested, all should be true to find a corresponding card. - Be able to add parameters about a playback device depending on multiple parameters (device number, device id, device name). The combination of all card parameters and all device parameters should be true to find a corresponding card/device. - If a corresponding card/device is found, information about it will be returned as a json object. - If multiple card/device are corresponding to the request, all cards information will be returned in a json array. - If no request json is available, all cards information will be returned (using a json array). - Add the possibility to ask for multiple card/device in one verb call using a json array in request json. Each case will be handled as an individual request. The response will be an array of the same length as the request json, with each response case corresponding to the request case. Change-Id: Ia71e40ce10c8bb10d51099832748c5621d202647 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/cmake/config.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index 3f6facc..cad98ee 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -75,6 +75,7 @@ set (PKG_REQUIRED_LIST
libmicrohttpd>=0.9.55
libafbwsc
alsa>=1.1.2
+ afb-helpers
)
# Prefix path where will be installed the files
@@ -109,7 +110,8 @@ set(COMPILE_OPTIONS
-fdata-sections
-fPIC
# Personal compilation options
--DMAX_SND_CARD=16 # should be more than enough even in luxury vehicule
+-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_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
-DCONTROL_MAXPATH_LEN=255