summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-softmixer.c
AgeCommit message (Collapse)AuthorFilesLines
2018-12-22Implemented the bug cleanup at application exitStephane Desneux1-5/+0
Fixes most memory leaks in softmixer. The concept of 'transaction' for dynamic streams has been generalized to the objects created at startup. The cleanup is done via a handle set through a atexit() call. Also added a missing strdup in alsa-api-loop, that fixes a double free. Warning, the bluez-alsa PCM are not closed in this version. This is intentional due to a BUG in the bluealsa ioplug PCM, that crashes upon close (pthread_cancel is used to terminate the io_thread and things get very bad. I have a pending fix for that, relying on a cancellation pipe, but deeper testing must be done). As an effect, only one phone call can be made, else 4a needs to be restarted Change-Id: Idb84cafe15f17c0ef02fcc70296d541dc55a2dcf Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-07-11stops the read/write loop when the stream is mutedThierry Bultel1-2/+2
when the stream is muted (due to the configuration, or due to a HAL request), the read/write loop is stopped. The benefit is that muting will work with capture devices that do not implement the mute in their driver. The inconvenient of stopping the read loop is that it has made appear an unexpected side-effect: the poll on capture does not trig for further incoming frames. The workaround is to completely close, then reopen and configure the capture PCM. Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-22plugins: code & log cleanupThierry Bultel1-1/+1
2018-05-18Update to last controller fixFulup Ar Foll1-2/+2
2018-05-18Implements volume rampingFulup Ar Foll1-2/+2
2018-05-17Initial version with dynamic APIsFulup Ar Foll1-4/+1
2018-05-14Move to new Romain controller versionfulup1-1/+1
2018-05-13First testable version.Fulup Ar Foll1-82/+0
Mixing with volume and mute per audio role works.
2018-05-13Initial version with softvol,Route,Multi,DmixFulup Ar Foll1-45/+48
2018-05-11Initial version with softvol control and DMIXFulup Ar Foll1-40/+55
2018-05-08Fist AlsaLoop model playing music (work in progress)Fulup Ar Foll1-22/+66
2018-04-30On going effort, now load and support LUA+C pluginFulup Ar Foll1-0/+55