summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-pcm.c
AgeCommit message (Collapse)AuthorFilesLines
2018-08-31Added bluez sound playback supportThierry Bultel1-4/+5
This adds sound playback for incoming sound from connected bluetooth devices. In this version, the softmixer relies on a modified bluez-alsa version (https://github.com/iotbzh/bluez-alsa), that provides an ioplug PCM bluezalsa connection proxy. The softmixer api has a new verb to dynamically set the device to listen to: afb-client-demo ws://localhost:1234/api?token=\uuid=123 smixer bluezalsa_dev '{"interface":"hci0", "device":"F6:32:15:2A:80:70", "profile":"a2dp"}' In this way it is possible to switch from a bluezalsa audio source to another without any further configuration. For now, only interface hci0 is supported. This commit also migrates the softmixer binding to API v3 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-07-11stops the read/write loop when the stream is mutedThierry Bultel1-1/+3
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-22pcm: return volume value with null set requestThierry Bultel1-4/+18
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-11Fixed compilation warning with _FORTIFY_SOURCE=2Thierry Bultel1-5/+11
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-11Remove yocto compilation errorsJonathan Aillet1-1/+1
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-10Added cardid+verb return for capture+playback sndcardfulup1-2/+3
2018-06-10Cleanup and added return of previous volume when setting new valuefulup1-28/+63
2018-06-07code cleanupThierry Bultel1-2/+2
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-07Code cleanup and fixed some typosThierry Bultel1-33/+43
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-05Added per sink/source API for master controlfulup1-4/+8
2018-06-05Update info command and move HTML5 to new APIfulup1-22/+219
2018-06-04Fixed compilation issues with gcc >= 7.2Thierry Bultel1-1/+1
Fixed some warnings about uninitialized variables
2018-06-04Move to Dynamic Mixer API (work in progress)Fulup Ar Foll1-0/+304