Commit Graph

125 Commits

Author SHA1 Message Date
Lefucjusz
2e04d268c4 [MOS-1068] Fix A2DP stream not restarting after song changes
Workaround for the issue that A2DP stream
would sometimes not restart when music
player changes song to the next one.
2024-05-29 17:33:30 +02:00
Lefucjusz
9a8ffff654 [BH-1863] Fix deleted file popup showing in Relaxation
* Fix of the issue that 'File has been
deleted' popup would show in Relaxation
app at the end of playback if the
playback was paused at least once,
even though the file wasn't actually
deleted.
* Added very basic audio decoder error
handling and propagation mechanism.
* Minor refactor around several
audio-related parts.
2024-02-01 12:09:32 +01:00
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Lefucjusz
f1f2a7cfc5 [MOS-1038] Fix CPU frequency hanging after SMS received
Fix of the issue that in some cases (e.g. after
text message was received) ServiceAudio would
not release CPU sentinel, what resulted in
quick battery discharge.
2023-09-20 10:06:51 +02:00
Lefucjusz
f1c49a60e5 [MOS-1018] ServiceAudio power management optimizations
Optimized power management strategy used by
ServiceAudio:
* changed minimum CPU frequency from 528MHz to 264MHz;
* added switching to 24MHz when operation active,
but paused;
* minor cleanup in several places.
2023-08-16 16:16:47 +02:00
Lukasz Mastalerz
f7ad63c951 [BH-1412] Fix services dependencies
Changes in dependecy managment
Replacing state flags with states in ServiceGUI
Unifying some parts of code
2023-08-01 17:22:48 +02:00
rrandomsky
4b8543912a [MOS-30] Fix for Alarm not being handled properly during a phone call
During the phone call, the alarm was not displayed and subsequent alarms
after this scenario did not work. This has now been fixed and the alarm
during a phone call will be automatically snooze.
2023-07-12 10:46:44 +02:00
Lukasz Mastalerz
75b531f7e2 [MOS-871] Loudspeaker icon is not updated when audio routing has changed
Fix for the loudspeaker becomes active again when a headset is unplugged
if it was on while the headset was connected to the phone.
Fix typo in Bluetooth in EventType enum.
2023-02-21 15:40:39 +01:00
Lukasz Mastalerz
24f63baf48 [MOS-871] Loudspeaker icon not updated when audio routing has changed
Fix for the loudspeaker icon has not changed while calling with
loudspeaker on and connecting headset to the phone.
2023-02-07 15:59:52 +01:00
Lefucjusz
d28fdb6594 [MOS-882] Fix FLAC file playback with USB cable connected
Fix of the issue that caused system crash when
trying to play 96kHz FLAC file with USB cable
connected. The reason of the issue was the lack
of FreeRTOS heap space left, what caused
pvPortMalloc() to fail when allocating
memory for stream buffer.

Additionally minor code cleanup.
2023-01-20 10:50:06 +01:00
Lefucjusz
9b7d5be07a [MOS-779] Fix music files extensions case sensitivity
Fix of the issue that only files with
extension in lowercase were detected
and listed in the music player's
library.
Additionally code cleanup.
2022-10-25 09:53:24 +02:00
Lefucjusz
d5f84437ca [MOS-92] Fix continuing music playback after BT disconnection
Fix of the issue that after disconnecting
BT A2DP device during music playback
and reconnecting it without leaving
music player app the sound was not
audible anywhere.
Additionally unified behaviour of music
playback on connection/disconnection
of audio devices.
2022-08-29 15:04:52 +02:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Lefucjusz
72b06448e1 [MOS-647][MOS-671] BT volume control fixes
Set of fixes for Bluetooth volume control issues:

* split OS volume from A2DP device volume;
* added translations for additional popup required
to indicate what volume is being set;
* fixed issue that on some devices setting the lowest
volume level would set the highest in reality;
* fixed Bluetooth auto-turnoff functionality;
* minor code cleanup.
2022-08-22 14:11:24 +02:00
Bartosz Cichocki
5d2b8bbbee [MOS-506] Apply new audio config from R&D in Wrocław
After taking measurements and tweaking the audio paths with audio
specialists, we found out pretty good settings which should be
incorporated into the code
2022-05-23 16:14:29 +02:00
Lefucjusz
434a335ef3 [MOS-411] Wired headset audio fix
Fixes non-working wired headset audio
during call
2022-05-16 10:20:48 +02:00
Lefucjusz
09556d41a6 [MOS-442] No vibrations on incoming call with HFP fix
Fix for the problem that phone doesn't vibrate on incoming call
when connected to HFP device.
2022-04-29 10:57:46 +02:00
Lefucjusz
3196d7929e [MOS-422] Incoming call sound both on HFP and Pure fix
Fix of the issue that incoming call sound was played
both in Pure speaker and HFP device while HFP profile
connected.
2022-04-28 16:55:19 +02:00
Bartosz Cichocki
cc32dd30dc [MOS-366] Connect cellular events to HFP
Connected all (?) necessary cellular events to the HFP profile
Fixed audio issues when connected with HFP
Some cleanup
2022-04-28 13:00:39 +02:00
Bartosz Cichocki
d59ac56d51 [MOS-347] Separate A2DP from HFP in ProfileManager
Now, both profiles can operate separately. Additonally, minor
fixes has been applied to allow calling via car audio system.
Some infotainment systems still don't work though.
2022-04-25 10:26:38 +02:00
Alek Rudnik
3e7b94dc05 [EGD-8137] Fix system pre closure procedure
Added some services specific implementations of pre closure procedure.
If one request pre closre, all mesagges (except system ones) recieved
by service are ignored.
2022-01-18 16:28:33 +01:00
Alek Rudnik
055bc5e065 [EGD-8081] Bump up dr_flac version
Bumped up version of dr_flac library to recent version.
Unified decoder API and made sure it is working as expected.
2021-12-10 17:25:22 +01:00
Maciej Gibowicz
7f9bc6bf6f [EGD-7922] Added Permanent Frequency Setting
Added Permanent Frequency setting in Advanced Developer
Mode with simple set window.
2021-12-06 13:57:38 +01:00
Wojtek Rzepecki
a03817ab96 [EGD-7766] Vibration level PWM addition
PWM channels separate control added.
2021-10-20 14:06:39 +03:00
Przemyslaw Brudny
d768eb3665 [EGD-7766] Vibration level PWM addition
Added base PWM settings to vibrations. Added vibration
volume setting.
2021-10-20 14:06:39 +03:00
Przemyslaw Brudny
289316b32d [EGD-7730] Alarm audio calls fixes
Added system sound setting. Refactored Alarm sound settings.
Fixed linux audio device initial volume level. Fixed Alarm
vibrations.
2021-10-06 19:36:02 +03:00
Bartosz Cichocki
80ea3a74e0 [EGD-7405] Add volume control
Added volume control for HFP
2021-09-24 13:25:07 +02:00
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Bartosz Cichocki
e8dd8aacbe [EGD-7404] Adapt & prepare CVSD codec for usage in HFP
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
2021-09-23 10:08:30 +02:00
Marcin Smoczyński
958ce4906c [BH-897] Split module-sys
Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-21 16:11:59 +02:00
Mateusz Piesta
58b8297b99 [BH-660] Alarm tone playback
Implemented tone playback handler.
Added product specific databases.
Fixed minor issues with CMake.
Minor refactor of alarm handlers.
2021-09-07 08:24:22 +02:00
Jakub Pyszczak
200c9b949d [EGD-7432] Tags fetcher
Added tags fetcher as universal audio utility
which can be used without bus overhead
2021-09-03 16:35:59 +02:00
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Alek Rudnik
cf019e3d96 [EGD-6776] Music Player All Songs Window
Full MVP design.
Removed redundant Empty Window.
Added play/pause/resume/stop control.
2021-07-30 10:36:30 +02:00
Jakub Pyszczak
d31e1c2c43 [EGD-7219] Notifications from service audio
Notifications from service audio reworked.
Information about stop/pause state is distributed
to the system. Unnecessary logic removed.
2021-07-29 09:57:22 +02:00
Jakub Pyszczak
689bd3069d [EGD-7206] Fix audio profiles priorities
Audio profiles priorities should be set as stated below:
1. Jack
2. Bluetooth
3. Earspeaker.
Added UT's to cover those requirements.
2021-07-28 13:49:04 +02:00
Jakub Pyszczak
214451ccf1 [EGD-7083] Fixed earspeaker bt HSP
Routing and ringtone are now hearable via earspeaker/jack
while pure is connected to the device that doesn't support HSP.
2021-07-23 13:03:50 +02:00
DariuszSabala
1f0d51d109 [BH-671] Fixed CMake in service-audio
Made service-audio CMake comply to Mudita internal guide
2021-07-22 11:12:42 +02:00
Pawel.Paprocki
3c5649df95 [EGD-6624] Audio support for linux simulator
When using simulator user should hear audio output to test apps like
Music Player.

Co-authored-by: Tomasz Krosnowski <tomasz.krosnowski@mudita.com>
Co-authored-by: Piotr Tański <piotr.tanski@mudita.com>
Co-authored-by: Marcin Smoczyński <marcin.smoczynski@mudita.com>
Tested-by: Marcin Smoczyński <marcin.smoczynski@mudita.com>
2021-07-20 15:42:32 +02:00
Jakub Pyszczak
01e44a7c13 [EGD-5659] Cpu frequency for audio
Set CPU frequency level to the highest for audio tasks.
2021-07-13 12:38:23 +02:00
Jakub Pyszczak
6d61aabbec [EGD-6514] HSP volume control
Bluetooth headset profile volume control
introduced. Small refactor on A2DP volume control
done.
2021-06-25 18:05:01 +02:00
Alek Rudnik
a63976dcb9 [EGD-5011] Set headphones maximal sound level
In order to pass certification IEC 62368-1, set maximal headphones sound
level accordinly to measurements done by certification laboratory.
2021-06-16 09:39:35 +02:00
Marcin Smoczyński
ef3f840a4d [EGD-6049] Add voice call over HSP
Add support for voice calls over HSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-05-28 15:38:56 +02:00
Adam Dobrowolski
b38adceced [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
Removed dependency from freertos in test global file
EntryPath tests updated and compilation slimed
2021-05-18 13:25:54 +02:00
Przemysław Brudny
e71a044bd3 [EGD-6019] Revert of two commits
This reverts commit b6416b15da.
This reverts commit e2f3882d8a.
2021-05-14 09:54:36 +02:00
Adam Dobrowolski
b6416b15da [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
2021-05-13 18:22:44 +02:00
Jakub Pyszczak
afa71c7e53 [EGD-6051] Receiving notifications on bt
Any notification could be heard via bt audio device while
it's connected to the pure.
If any notification is being played and bt device would disconnect,
playback will be stopped.
Disabled bluetooth low power as it was causing issues with the playback.
JIRA for the low power bug
https://appnroll.atlassian.net/browse/EGD-6681 .
2021-05-05 16:11:13 +02:00
Lucjan Bryndza
4a19cc3bfb [EGD-6579] Fix audio crash after playback
Fix phone crash after playback ringtone in new alarm window

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-04-27 13:54:59 +02:00
Jakub Pyszczak
49c132c622 [EGD-6513] Volume control feedback
Added volume control feedback during music playback over Bluetooth.
Changed volume buttons handler logic in service audio to use actions
instead of messages.
2021-04-22 15:30:02 +02:00
Tomasz Krosnowski
64b4849d20 [EGD-6452] Sound selection GUI
Sound selection GUI used to change ringtone, message sound and
notification sound in settings.
2021-04-21 18:00:58 +02:00