Adapted both codec and HFP profile to be able to work together.
Now it's possible to stream 2-way audio via HFP profile, but it
has to be integrated properly with EGD-7405
This refactoring removes invalid interface dependencies of the original
AudioDevice implementation:
- move things characteristic to RT1051AudioCodec to audio::codec
- remove dead methods
- make start/stop optional and codec configuration independent
- add more convenient way to get supported formats
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Replace faulty implementation which produced ambiguous results with one
which is suited for both phone calls and music playback requirements,
including A2DP and HSP Bluetooth profiles.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Audio devices are created in the audio subsystem and it is not possible
to send a device to bt service upon creation.
Introduce hookable audio device factory to allow sharing bluetooth
audio device. Move audio devices from bsp to audio allowing removal of
unwanted bsp -> audio dependency.
Remove Bluetooth proxy device which turned out to be a dead end.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Refactor audio module to use only one callback for communication
with audio service. This also simplifies the logic and removes
necessity to define defaults for audio values in multiple places.
* [EGD-558][fix] change error to info
* [EGD-558] added volume control of currently active audio operation
* [EGD-558] added ringing on incoming call
* [EGD-558] mini clean up in callwindow
* [EGD-558] removed reinterpret_casts and added some logging
* [EGD-558] rewritten methods to increment/decrement volume
* [EGD-558] clean up
* [EGD-558] moved volume control to application class
added nullptr checks
* [EGD-558] fixed types
* [EGD-558] added some audio debug logs
* [EGD-558] left a comment why ringing sound is currently disabled
* [EGD-558] PR fixes
* [EGD-558] PR fix
* [EGD-558] added propper error codes on pointer checking in Audio.cpp