Age | Commit message (Collapse) | Author | Files | Lines |
|
Rework communication with 'alsacore' binding to be able to get current
ALSA controls values.
Bug-AGL: SPEC-1313
Change-Id: If1b4b9bdc49849772075e184768f572ac88fe6c3
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rework halmap ALSA controls volume conversion to be able
to add new types of volume conversions easily.
Bug-AGL: SPEC-1313
Change-Id: I0949f25c24a349e7409233f51b3d5738ebc43a8a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update syntax of a request of an halmap verb :
Use key 'value' instead of 'val'.
Change-Id: Iadbb05f0bf70c689e1657f065a8f3b1ae31a8849
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change-Id: I6bc9ba16ec22a21e43221d335bd61bacae197a14
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct halmap calls request json syntax :
The request json must be a json_object type.
Change-Id: If443b5480678354193c2419a72ffb711fadd416f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
The configuration files should not be shipped with the sources.
Therefore we created a 4a-hal-configs repository as the central place for configs.
Move the configs there but leave and example in 4a-hal-cfg-example.
Bug-AGL: SPEC-2011
Change-Id: If3bed9a05955b9c6458656fabbe3ee12d1c5015b
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
|
|
Use Bluetooth-Manager/media events that signal A2DP transport status to
enable/disable the 4A stream.
Bug-AGL: SPEC-1986
Change-Id: I1c2bffc63d0fd0802c0ea3f8590eab18c15d9f3d
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
|
|
Use 'managed_objects' verb of 'Bluetooth-Manager' api
to get adapter number.
Before this change, some errors were not detected correctly.
Bug-AGL: SPEC-1986
Change-Id: I0f2e697c9b4aef58aa50c3ea85359670961f7d6b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Switch to using media events to detect audio sink transport states for
connected devices.
Bug-AGL: SPEC-1986
Change-Id: I834d5387ccd76d5ec0946f56536840736a7d96e0
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
|
|
Move hal controls actions at the end of hal initialization
to avoid calling halmap controls before handling
controller actions (onload, events).
Change-Id: Id3896b9497985d7a82242d719551a507a0ca74c5
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Force each hal api to have its own controller section data, it is very
usefull if different hals don't have the same onload/events/... actions.
Change-Id: Iaf3c2059a774ef8ec4f7262064d1cfa8d8159d91
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
|
|
Change incorrect lua-5.3>=5.3 check to lua>=5.3
Change-Id: Ib1278b289ecc59b715b83597a73e20c3811e8c71
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
|
|
Add .gitreview to 4a-hal-generic.
Change-Id: Id9b5bc90a2afe4dda0d531641962183ae43af161
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct typo in Intel UpSquared hal.
Change-Id: I75cbb9d2d493a642ef153588ee84481aae32cc7c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update clone commands in README.md.
Change-Id: I4dfdc110565642f7ad32abc727dce04ca213d6d9
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update 'halmap' section of Intel UpSquare hal.
Change-Id: I9acad9635e7e806fcd4ead8c1c6ef9291a05be7a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change-Id: Idadc513749bea65ff8311b9ea16a9e1eb5f9e214
Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
|
|
44100 seems to be the most common sample rate.
Fis is a temporary fix, because the actual sample rate
may differ and depend on the information available at
the bluetooth transport level.
Handing it dynamically means some significant changes in
softmixer:
- instanciate the rate converter on playback in all the cases
- either been able to modify it after creation, or if not possible,
close and restart the output PCM plugin stack.
Change-Id: I6bd900fd539251b60b97bbaf15e1390bf49c13e0
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
|
|
In hal-bluetooth plugin, check that hal is available in plugin
initialization.
Move every data initialization after that everything is checked.
Change-Id: I8055dd17e75099a8009f21a1070d1de293682d4b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use hal-bluetooth plugin name definition in prints instead of plain text.
Change-Id: Idafbead6bdc510115ac0f7ebc06cfad79ceeceed
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Into the controller section array, move hal sections callbacks
after plugin callback so it will be executed before everything else.
Change-Id: Id80063caae3b089e6ccef79a7b54a82b16600375
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Changes of app-controller:
(625ce77 - Jonathan Aillet) Correct an error when no plugins are defined
(0f708ba - Jonathan Aillet) Decrease print level when no onload action
Change-Id: I61110a3a0e8a76e22ec86b1ee816f80dbcb74993
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Enrich 'halmixer' section with bluetooth specific 'source' and 'stream'
during hal-bt plugin initialization.
Some parameters must be passed to plugin using 'params' key in controller
json plugin section.
This allows to get rid of must of the additional configuration when using
bluetooth in a hal.
Change-Id: I5820e75307a3394eca80cf783e7bc4c31c2d7659
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove unnecessary 'onload' and 'events' sections in
hal json configuration files.
The specified onload actions were generating errors in some cases.
Change-Id: I5eb95fe7daecf3b3d15638833142d133ce77e1ff
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Changes of app-controller:
(8d53984 - Jonathan Aillet) Add a 'params' fields for controller plugins
Change-Id: I6be8e2d21232c664e30879f7ee063ed4de79ca0f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
hal-bt: Use plugin name in onload/initialization prints to help
identify startup hal-bt plugin prints.
Change-Id: Ie065a127d0321d44e800828aab1994b35aeb5739
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Disable hal-bt plugin if no bluetooth receiver is connected at plugin
initialization.
To be bale to check if there is no connected bluetooth receiver,
use call to 'power' verb of 'Bluetooth-Manager' api.
Change-Id: Idd301d2106e8b2e79e25969cc2c1a2a4e4194711
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
In hal-bt plugin, move 'Bluetooth-Manager' require into
plugin 'initialization' instead of plugin 'onload'.
Change-Id: I52dab7631674b4139ad74d0de0825633ea5a5b91
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
As the mixer section is obtained during a call of a controller section
callback (during api pre-initilization), 'attach' call to 'mixer'
has been moved in the same callback (called a second time during
api initialization).
Change-Id: I17f54aab1b9616649bfcb183297ba8128621a7c2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Function's names was printed using '__func__' when calling application
framework prints functions.
But, as the application framework prints functions already prints
them, '__func__' has been removed from print calls to avoid
duplicated information.
Change-Id: I0dea49a9d84b7ccdbdaecec67ced6c98b5ed26d6
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Changes of app-controller:
(35398f2 - Jonathan Aillet) Call wasn't done correctly in 'CtlConfigExec'
Change-Id: I9e99bed2febf033244fa840a351723f1387d19fc
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Added the 'radio_stream' to all the HALs. This makes the radio role
work in HighLevelAPI.
Change-Id: I8f34224ec3dbbb1312b65642d89e672716414ac9
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
|
|
There was no point to have 2 separate HALs, the radio
stream and capture is now merged into the main HAL
Change-Id: I0ba974fdcfc17fc9a3964677361dd7509c7e74b3
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
|
|
Add controller events/onloads actions needed by Hal-Bt plugin in
plugin initialization ('CTLP_INIT').
Therefore, these actions can be reomved from json files.
Change-Id: I67391abfc7d3fd0f8b9d4fbd0fe8698497da1393
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Changes of app-controller:
(bc13eef - Romain Forlot) Add ctlPlugins array to the ctlConfig structure
(0176d18 - Romain Forlot) Add an Init step to the plugins load
Change-Id: I27a298c010f78956025b97bbc640de19f043475f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add hal json configuration files with bluetooth plugin specified
for reference boards.
Change-Id: I16055c45b5f59aa192b5948cece1ff8a73edf5a8
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Handle error send by 'Bluetooth-Manager' when no bluetooth devices are
detected by discorvery.
Change-Id: Iadd2ef7dbd5aff59da62e50f99622a9aaf2627dc
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
In Hal-Bt plugin, get bluetooth device 'hci' interface
from 'Path' key send by 'Bluetooth-Manager'.
As, the 'Path' key contains the whole path of the device, some string
manipulations are necessary ...
Change-Id: I320a41fb1589214b0ae6999e1c8b793c7cdd41a7
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct a typo in debug print of Hal-Bt plugin.
Change-Id: I2fd2731853f865fcfa09dbe06d6f495ad449ff98
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Prevent segfault when receiving 'get_connected_bt_a2dp_devices'
and 'get_selected_bt_a2dp_device' requests in Hal-Bt plugin.
Change-Id: I1eb5dcab997ae77d8adc3cf28585c2449ec42a2e
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
just ignore devices that do not have any UUIDs
Change-Id: Ic3cb25d8f8521e8f6c73afa173745a26e9c873ce
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
|
|
Free forgotten application framework call sync json returned object
in Hal-Bt plugin.
Change-Id: Ic9680fd735154b21839fad93b4d13a7609009866
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Improve Hal-Bt print messages by changing the print level of messages,
by adding some messages, and by add information for
some existing messages.
Also improve response of requests.
Change-Id: Icf6dc9f4da1a2ee912dda2850464926c68f2eda6
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Consider an A2DP bluetooth device as connected only if
its seen as 'AVPConnected' by 'Bluetooth-Manager'.
Change-Id: I54511a193ebf64e35a7605723440f3a0fae2b2fd
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Hal-Bt plugin only keeps list of connected bluetooth A2DP devices
instead of a list of all connected bluetooth devices.
Change-Id: I6c06be78a927dcac32ed4683d44431514e7daf06
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use correct file ('ctl-config.h') instead of (''ctl-plugin.h)
to include controller.
Change-Id: I93a1bcb5dab51211532fc59ffd979ea7acad1530
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Improve Hal-Bt plugin event catcher behaviour by :
- avoiding error generation when bluetooth device is changed.
- avoiding calling 'mixer' when the selected device is changed.
Change-Id: Ia7402f865551ff9df418269ac6927b66581bae9a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Prevent Hal-Bt plugin from crashing 4A when 'Bluetooth-Manager' api
is not found.
Change-Id: Id8ecc3efcc36825abbb4a2bb8cf553327c45d173
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct an error in Hal-Bt plugin when calling 'mixer', response was
not correctly analyzed.
Change-Id: I719076c77501a9c6776559cd8acfcea033a26d1b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|