summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-22alsa-api-streams: code & log cleanupThierry Bultel1-27/+103
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-22sinks: fixed index mismatch when multiple sound cards are declaredThierry Bultel1-6/+6
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-22pcm: return volume value with null set requestThierry Bultel1-4/+18
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-16Use correct chanel number when creating PCMhal-rc2-sandboxJonathan Aillet1-2/+2
Use correct chanel number when creating PCM. Change-Id: I17ac0273f9a6eec1d3b49845f579495f2cdcf9d7 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-14smixer-4a-default.json: add target runtime path for plugin lookupStephane Desneux1-1/+1
Change-Id: I760e1a1b30db924babe5def22c8984719c607d1b Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-06-14config.cmake: adjust paths (CONTROL_*_PATH)Stephane Desneux1-3/+3
At runtime, the controller should search paths inside ${CMAKE_INSTALL_PREFIX}/${PROJECt_NAME}, typically: /usr/libexec/agl/smixer Change-Id: I499cdc068d663797568e64b904c4f4b4e5a07c32 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-06-13Minor changes in 4a mixer default configurationJonathan Aillet1-2/+2
Minor changes in 4a mixer default configuration tu authorise more volume ramps. Change-Id: If02e11cafc752ea8d83aa0817d6007a55f18f908 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-13Revert "bump app-templates to lastest version"Jonathan Aillet1-0/+0
This reverts commit 02124becdcda965757d84bdb180bbef2e0e6baaa.
2018-06-13Replace verb prefix separatorJonathan Aillet1-2/+2
When adding a stream , instead of using a ':' to separate prefix and verb, use a '#'. Change-Id: I2cbb467a85c52dddd4714cfe644dcdf3a35df5d3 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-12bump app-templates to lastest versionThierry Bultel1-0/+0
Changes of app-templates: (9b17efe - Thierry Bultel) Added -D_FORTIFY_SOURCE=2 to CFLAGS Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-11Correct issues when calling info verbJonathan Aillet1-7/+4
Correct issues when calling info verb : - Two 'AFB_ReqFail' was called when an error was detected on info call reqsuest json (generating an application framework error). - The error messages wasn't up to date. Change-Id: Ifbb94854bc8a9d13ddf702defa94eaa6cf87e9ba Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-11Fixed latest commitThierry Bultel1-2/+2
Wrong test on asprintf return code broke the app Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-11Fixed compilation warning with _FORTIFY_SOURCE=2Thierry Bultel6-37/+84
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-11Remove yocto compilation errorsJonathan Aillet2-2/+2
Remove yocto compilation errors concerning : - An unitialized variable in 'alsa-api-pcm.c' - A wrong use of asprintf in 'alsa-api-streams.c' Change-Id: I170993d060a7a1d1a1c20979da0645c5ef2b1b91 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-11Correct a conversion into ramp processingJonathan Aillet1-1/+1
The conversion from ms to us wasn't done correctly, it is fixed now. Change-Id: I004e2e42c9b6d9da4f7089d34406bef57ab21d9e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-11Autorize direct zone to point on sndcardfulup10-681/+152
2018-06-10Add default configuration of softmmixerJonathan Aillet1-0/+55
Add default configuration of softmmixer when using in 4a. Change-Id: I53df4f57b8f77366117c32e1f4ff70d83253fdef Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-10Authorize new section at mixer initializationJonathan Aillet1-1/+2
Authorize the new section 'mixerapi' to be present into the json sent to initialize mixer. Change-Id: I7feed818f19f2d93566f6e1634933462828dbdf0 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-10Correct a warning when using snd_output_printf functionJonathan Aillet1-1/+1
Instead of passing directly a 'const char *' to snd_output_printf function use a "%s" format. Change-Id: I46cd0fc6e5d139a6241dc3aa224b707d97a68125 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-10Move cmake install prefixJonathan Aillet2-2/+2
Move cmake install prefix from config.cmake to distrib osconfig.cmake. Change-Id: I0e89e9b2a63941eced787ccd77313e441b0132f8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-10Change afb binding versionJonathan Aillet1-1/+1
Change afb binding version to avoid compilation warnings. Change-Id: Ia8c8d8b5da04fba397a8e1e0879c433607e237d9 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-10Documentation/cleanupfulup1-1/+2
2018-06-10Added cardid+verb return for capture+playback sndcardfulup4-124/+494
2018-06-10Added stream/ramp return to fit HAL attach requestfulup3-90/+157
2018-06-10Cleanup and added return of previous volume when setting new valuefulup21-465/+498
2018-06-07Added more configuration examplesThierry Bultel3-1/+485
Added lua file for the simple 'radio + USB 2ch output' test case. Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-07Added log for card lookup diagnosticThierry Bultel3-2/+7
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-07renamed project name, and added lua dependencyThierry Bultel1-1/+2
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-07code cleanupThierry Bultel1-2/+2
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-07Code cleanup and fixed some typosThierry Bultel3-36/+48
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-06Move PCM write to synchronous write to remove XRUNfulup3-19/+234
2018-06-06Merge branch 'master' of github.com:iotbzh/4a-softmixerfulup1-30/+16
2018-06-06Move smixer API create+attach into controller onload sectionfulup6-352/+65
2018-06-06Move smixer API create+attach into controller onload sectionfulup6-347/+76
2018-06-06Fixed the buffer copy size in read callbackThierry Bultel1-3/+5
Fixes the UNDERRUN issue (seen while playing radio, for instance) Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-06Fixed the MixerInfoAction replyThierry Bultel2-9/+5
Make it robust to empty source, and set the source when input is a direct capture device. Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-05Fix alsa URI within attach responsefulup2-19/+230
2018-06-05Use attach info verb to build attach response.fulup4-310/+60
2018-06-05Added per sink/source API for master controlfulup3-13/+23
2018-06-05Update info command and move HTML5 to new APIfulup11-240/+684
2018-06-04Rename project to smixer-4aThierry Bultel1-1/+1
Changed the project name, and renamed the default config file accordingly to solve the search issues when using the development launcher
2018-06-04Fixed compilation issues with gcc >= 7.2Thierry Bultel4-5/+5
Fixed some warnings about uninitialized variables
2018-06-04Fixed json parsing format errorsThierry Bultel2-4/+5
The expected format did not match the parameters Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-04Update submodulesFulup Ar Foll1-0/+0
2018-06-04Update to new submodulesFulup Ar Foll2-0/+0
2018-06-04Move to Dynamic Mixer API (work in progress)Fulup Ar Foll28-1762/+2268
2018-05-18Update to last controller fixFulup Ar Foll4-3/+3
2018-05-18Added create/close mixer APIFulup Ar Foll5-131/+281
2018-05-18Implements volume rampingFulup Ar Foll16-203/+505
2018-05-18Added relative volume setting per audio-streamFulup Ar Foll2-31/+72