Commit Graph

65 Commits

Author SHA1 Message Date
Hubert Chrzaniuk
bb76fe4080 [EGD-5713] Change volume hardware buttons behaviour
The volume button policy has been redesigned to be less
ambiguous for the user.
2021-03-01 13:54:39 +01:00
Hubert Chrzaniuk
4490d0da7f [EGD-5714] Add phone mode handling for Audio Service
Added separate set of settings for all phone modes along
with basic support for phone mode change.
2021-02-24 13:00:43 +01:00
Hubert Chrzaniuk
e29bd7fb88 [EGD-5717] Add vibration API calls in audio service
Vibration API is utilized to enable physical feedback
for the phone user.
2021-02-23 11:23:03 +01:00
Hubert Chrzaniuk
18f9227fce [EGD-5716] Change sound priorities
Sound API has been extended with new playback types.
2021-02-19 12:37:45 +01:00
Marcin Smoczyński
bda18b5b54 [EGD-5706] Refactor creating audio device
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>
2021-02-17 16:20:59 +01:00
Piotr Tański
65119cb495 [EGD-5027] Services synchronization introduced
Dependencies between services are now supported.
2021-02-10 12:37:42 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Lukasz Skrzypczak
e4462dce33 [EGD-5298] Microphone Adjust
Changed parameters for mic GSM path to get clear voice
2021-02-02 18:31:03 +01:00
Hubert Chrzaniuk
f75c6add56 [EGD-5034] Change gain values to reduce echo during call
Default values of the gain for the build-in and headphones
microphone has been changed. Previously set excessive values
caused echo during call.

Signed-off-by: Lukasz Skrzypczak <lukasz.skrzypczak@mudita.com>
2021-01-14 16:54:58 +01:00
Przemyslaw Brudny
e7b9bcf7e9 [EGD-5133] Fix settings bus add duplications
Changed Bus Channels vector to set to prevent
duplicates and cleaned logging.
2021-01-08 17:33:00 +01:00
Hubert Chrzaniuk
bb6989c2a8 [EGD-4978] Add Bluetooth virtual audio device
Bluetooth audio device requires different handling than other
audio devices. The commit adds proxy device that does not
handle requests itself but instead sends requests too Bluetooth
service.
2020-12-21 13:46:40 +01:00
Hubert Chrzaniuk
6b36d35507 [EGD-5009] Change messy callback logic in audio module
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.
2020-12-18 14:52:57 +01:00
RobertPiet
54bb1d4a7f [EGD-4343] use new settings in ServiceAudio (#997)
* [EGD-4343] ServiceAudio moved to new settings
2020-12-04 14:10:44 +01:00
Hubert Chrzaniuk
d205264c4d [EGD-4491] MMI call forwarding full support (#1069)
* support for Basic Service Group and time
   parameter of call forwarding
 * fix RequestFactory, previously regex
   checking loop may have been left too early
2020-11-26 09:18:45 +01:00
Szymon Mroczek
8d9719e8b9 [EGD-3510] audio codec configuration for headset microphone (#1004)
[EGD-3510] Audio stereo outputs fixed. Microphone bias handling for headset. Headset microphone gain adjusted.
2020-11-13 13:51:30 +01:00
Hubert Chrzaniuk
7ccc52c04c [EGD-4357] Improve error handling in audio (#990)
- error code can be now returned also during
   initialization
 - fixed crash when user requested to playback
   file that does not exist
2020-11-12 16:15:42 +01:00
Radoslaw Wicik
b96313b158 [EGD-4215] Convert service-bluetooth to library 2020-11-10 09:56:06 +01:00
Hubert Chrzaniuk
b7e1a04a12 [EGD-4301] Bluetooth Audio profile support (#984)
- implemented audio sink/source switching
 - reorganized / renamed sound events
 - moved SetBluetoothStreamData and AudioDevice instance to base Operation class
 - added audio profiles RecordingBluetoothHSP, RoutingBluetoothHSP
 - removed unused audio Profiles
 - removed redundant OutputPath and InputPath classes from CodecParamsMAX98090
2020-11-09 17:53:28 +01:00
Radoslaw Wicik
4bdfb00de7 [EGD-4214] Convert service audio to library 2020-11-09 11:56:19 +01:00
Piotr Tanski
22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
Hubert Chrzaniuk
fb69224584 [EGD-4176] Audio state notifications (#937) 2020-10-29 15:17:43 +01:00
jimmorrisson
b033d0ca42 [EGD-4118] Audio doxy cleanup (#856) 2020-10-22 15:37:27 +02:00
Bartosz Cichocki
061479780b [EGD-4011] added BT audio device with A2DP playback (#870)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-10-22 09:59:13 +02:00
Hubert Chrzaniuk
4c22ef5107 [EGD-4099] BT set stream (#846) 2020-10-20 13:43:53 +02:00
Przemyslaw Brudny
e131dae68f [EGD-3743] Removed old doxygen copyright statements from project. 2020-10-20 12:55:10 +02:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Hubert Chrzaniuk
6fda5b475a [EGD-4128] Fix - routing does not start (#866) 2020-10-20 10:32:17 +02:00
Hubert Chrzaniuk
4ad16d7ae2 [EGD-4125] Cumulative set of minor fixes for audio (#861)
* fixed choice of input for recording
* fixed vibration setting getter
* fixed response messages from a HandleStop
* improved style of using AudioMux APIs
2020-10-19 17:16:59 +02:00
Jakub Pyszczak
56c60a1ab9 [EGD-4076] Headphones auto detect fix 2020-10-16 13:20:19 +02:00
Hubert Chrzaniuk
78f075712c [EGD-4023] Vibration - get values from DB (#807) 2020-10-15 10:16:58 +02:00
Hubert Chrzaniuk
ebcef7a692 [EGD-4054] Audio API for setting stream parameters (#826) 2020-10-15 09:27:15 +02:00
Jakub Pyszczak
0744fe979f [EGD-559] Volume popup - audio part 2020-10-13 21:35:12 +02:00
Hubert Chrzaniuk
b6e5969403 [EGD-4024] Fix audio files meta tags parsing (#817) 2020-10-13 19:34:58 +02:00
Hubert Chrzaniuk
c8ddb562ad [EGD-4040] Fix endless ringtone playback (#814) 2020-10-10 12:44:08 +02:00
Hubert Chrzaniuk
9c7e4139db [EGD-3784] Add service audio non blocking API (#789) 2020-10-08 10:15:46 +02:00
Marcin Smoczyński
2cff347326 [EGD-4002] audio: remove phone call recording (#794)
There is no requirement for this functionality and it complicates the
audio subsystem.

Fix includes and cleanup minor flaws in the process of this change.
2020-10-07 15:49:40 +02:00
Jakub Pyszczak
2df98eea48 [EGD-3841] Add audio vibration and enable sound option 2020-10-06 17:06:34 +02:00
Hubert Chrzaniuk
17aa46bb90 [EGD-3871] Add vibration and playback enable/disable logic (#765) 2020-10-05 17:28:29 +02:00
Hubert Chrzaniuk
f38960e1b3 [EDG-3870] Fix audio looping (#769) 2020-10-05 16:56:19 +02:00
Hubert Chrzaniuk
06d9d687bf [EGD-3853] Add AudioMux tests (#751) 2020-10-05 14:44:21 +02:00
Adam
f5f27d642f EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe
* Timers now have consistent API independend of Application (no more c style timers)
* Timers can have either: callback or override onTimer() method - this
  way we can create more complicated timers or just use existing ones
* gui::Timer added via adapter class GuiTimer to decouple sys::Timer
  with gui::Timer
* Fixed race in wrapper
* Updated docs
* fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
2020-10-02 14:04:57 +02:00
hubert-chrzaniuk
70b01e9e6e [EGD-3779] Add sounds looping and merging (#744)
* [EGD-3779] Add sounds looping and merging
2020-09-30 11:44:52 +02:00
hubert-chrzaniuk
b327fc36e2 [EGD-3778] Add priorities and sound mux to audio system (#726) 2020-09-28 11:50:13 +02:00
Jakub Pyszczak
6295751412 [EGD-3818] Audio service cleanup 2020-09-28 10:54:07 +02:00
Jakub Pyszczak
d7617b2f3c [EGD-3487] Volume buttons 2020-09-24 10:53:25 +02:00
jimmorrisson
7b626ce755 [EGD-3098] Add audio volume control per functionality. 2020-09-20 13:41:19 +02:00
jimmorrisson
63685f9247 [EGD-3097] Add storing and updating audio settings in database. 2020-09-11 12:06:03 +02:00
Szymon Mroczek
c994718be3 [EGD-3427] Handling of RoutingHeadset request 2020-08-07 11:32:05 +02:00
Szymon Mroczek
8f3adcb9c6 [EGD-3099] Audio module APIs converted to return RetCode instead of dummy int32_t 2020-07-29 09:08:49 +02:00
Alek Rudnik
09cf520c12 Egd 558 adjust volume during a call (#283)
* [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
2020-04-10 11:00:17 +02:00