summaryrefslogtreecommitdiffstats
path: root/config.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-11config: fixup type for demo effectYannick Gicquel1-2/+2
this is hardcoded for now, and automatically applied for phone routing group. Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
2016-10-11Fix compilation with json-c on YoctoManuel Bachmann1-1/+1
json-c headers are only provided in the "json-c" directory on Yocto/Poky, so use this as the default path. Change-Id: If7e318673cbe0fd8a63461f8e75cf0f03f89636b Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Implement JSON configuration fileManuel Bachmann1-2/+122
A JSON configuration file can now be read as "/etc/ pulseaudio-agl.cfg", and a sample one is provided by the package. If it exists and is valid, it will override the default configuration. As a result, the module now depends on json-c. Change-Id: I3f5deccc6f9b89cbd54bea7004271b8aec727538 Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Implement routing groups and volume ramp up/downManuel Bachmann1-3/+2
Change-Id: I0e9d3b8b8be4d124907214c165617d86be6906fc Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Map labels to classes, map routing groups to audio adaptersManuel Bachmann1-9/+13
Change-Id: I563aa146eba8de594900c02b44f19f526a5cdc0e Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Finalize basic configuration logicManuel Bachmann1-0/+19
Configuration-related structures and values are now applied everywhere. Change-Id: I5c665a649b8c7c52dd18d214cee6c484f491b584 Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Rename all internal pa_ definitions to agl_Manuel Bachmann1-4/+4
The plugin often uses "pa_" for its internal structures and functions, which is misleading because this prefix is also used by PulseAudio itself. Thus, reading the code can be confusing. Rename everything to "agl_". Change-Id: Iadd03daf528ec0cbed1cb526aeb3bada757a211f Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-10-11Add basic configuration logic, builtin configurationManuel Bachmann1-0/+121
There is now a default routing configuration provided at startup (config file parsing is stubbed, decide if we need it for routing purposes, or just for very basic things). Change-Id: Ib824b63c663355ed80d0e6823d5f9aec8cb093d5 Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>