Commit Graph

223 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
Maciej Gibowicz
18e9fc0e1a [BH-2033] Add fade in and fade out for relaxation
Relaxation sounds will fade in and out
so that the songs play smoothly.
2024-08-09 14:01:59 +02:00
Lefucjusz
67a24efb29 [BH-2019] Fix crash after deleting WAV alarm sound
Fix of the issue that the device would crash
when entering alarm sound selection list
after deleting selected file during alarm
ringing, but only when file's format was
WAV.
2024-06-27 11:45:17 +02:00
Lefucjusz
4e6ac18238 [BH-2020] Fix double-free in DecoderMP3
Fix of the issue that improper check
of dr_mp3 library initialization
success could result in double-free
of library internals in case
initialization was unsuccessful.
2024-06-26 09:33:36 +02:00
Maciej Gibowicz
10d9658a4a [BH-2005] Add volume setting for focus timer
The user will be able to control the volume of notifications in the
Focus Timer application
2024-06-12 10:38:27 +02:00
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
4ad0f29ab4 [BH-1898] Fix of GUI freeze after intensive volume change
Fix of the issue that GUI would freeze for
several seconds if volume level was being
changed intensively for a while.
2024-03-06 14:05:55 +01:00
Lefucjusz
e46cb3e1a7 [BH-1888] Fix device freezing when changing volume intensively
Fix of the issue that intensive changing
volume in Relaxation app would result in
device freezing after some time of such
activity.
2024-02-27 16:34:03 +01: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
bc4ff20d71 [BH-1836] Increase range of volume adjustment
Extended volume scale from 10 to 15 point scale
Modified volume approximation function for better user experience
2023-12-14 11:00:52 +01:00
Maciej Gibowicz
f7f4adc19f [BH-1264] Add alarm sound fade in
Adding a fade in for the alarm sound (main and power nap) according to
the pattern (V): dt = 30[s] * V/10.
2023-12-13 14:32:28 +01:00
Lefucjusz
b932e06472 [BH-1823] Fix relaxation start delay for specific MP3 files
Fix of the issue that when trying to play
files with large ID3V2 metadata the
playback would start with significant
delay of several seconds. It was also
possible to leave relaxation progress
window without stopping the playback.
2023-11-20 11:07:09 +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
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
Marcin Zieliński
9bf69c652f [MOS-878] Don't break audio playback on file deletion
Since a currently played file is deleted, the player
goes to the next file from the list. A special case:
if the deleted file is the last one, the playback
stops (and can be resumed by the user).
2023-02-22 17:59:14 +01: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
Lefucjusz
1d807644c9 [MOS-882] Fix heap fragmentation issue during playback
Fix of the heap fragmentation issue that caused
phone crash when trying to play music files
while connecting USB cable in a certain order.
Audio stream buffering length was slightly
reduced, so that smaller contiguous block of
heap is required to store audio buffer.
2023-01-25 13:24:36 +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
eeafb5f1be [MOS-783] Moved battery config file to '/user/data'
Moved battery config file from root
directory of user partition to
'data' directory to comply with
new directory layout design.
2023-01-19 16:41:56 +01:00
Lefucjusz
afd7e7bc2c [MOS-783] Working Pure simulator after partition changes
Fixed iosyscalls so that Pure simulator
works after directory structure changes.
2023-01-19 16:41:56 +01:00
Lefucjusz
178fba165e [MOS-783] First part of new dir structure implementation
Works:
    - generating .img for Pure;
    - Pure boots after flashing new image and
    seems to be working fine;

    Not yet:
    - generating update package;
    - generating image for Harmony;
    - simulator;
    - path-related unit tests fail
    due to paths being hardcoded
    in test scenarios.
2023-01-19 16:41:56 +01:00
Lefucjusz
01843fbadd [MOS-814] Fix no sound after BT device connection during call
Fix of the issue that connecting or
disconnecting BT device while call
was in progress resulted in no sound
being heard anywhere due to audio
routing being stopped when HFP device
disconnected.

Additionally minor code cleanup.
2023-01-16 13:36:52 +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
a29306a89a [MOS-743] Workaround for audio config paths
Workaround for the issue that updater
places audio config JSON files in
wrong location. This should be
removed after the updater is fixed.
Additionally update of loudspeaker
routing config.
2022-09-28 14:30:36 +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
Lefucjusz
1dcd285804 [MOS-506] Update fallback audio configs
Updated fallback audio configs with parameters
obtained from R&D in Wrocław.
2022-06-22 15:50:39 +02:00
Adam Dobrowolski
dc9ad45a04 [MOS-53] Not enough stack for audio worker
There were ocasional crashes due to too small stack for audio worker.
These were not caught via stack overflow catching logic most of times
2022-06-03 09:36:06 +02:00
Lucjan Bryndza
523eb6f577 [MOS-513] Fix issues related to the GCC12 gcc
Fix issues related to the GCC 12
Fix paths for ignore license headers
2022-06-02 13:24:09 +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
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
Mateusz Piesta
97e9d7b79f [BH-1449] Fix gui/eink dependencies
* Dependencies between service-gui and service-eink
have been correctly defined.
* System close routine was replaced with the sequential one
which should solve many bell issues.
* It also fixes BH-1406 and BH-1442.
* Fixed some weird CMake issues in module-audio and
several other modules.
* Fixed service-gui closing routine
* Removed unneeded messages/states from service-gui/eink.
* Enhanced app-mgr closing routine. Fixed closing action handling.
2022-04-26 13:47:12 +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
Mateusz Piesta
2c08432049 [BH-1453] Fix audio on the simulator
Replaced PortAudio library with PulseAudio.
Fixed minor issues with the WorkerQueue module.
2022-04-14 14:20:26 +02:00
Mateusz Piesta
2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00
Lefucjusz
d1d311c4c5 [MOS-331] Fix audio resuming after headset unplugging
Fix of the audio playback bug, which
prevented playback resuming after
unplugging the headset when playback
was paused.
2022-03-28 18:42:00 +02:00
Lefucjusz
dd3eeaf1e2 [MOS-240] PVS Studio analysis bugs fix
Fixes to major part of issues found
by PVS Studio static analysis
mainly micro-optimisations
2022-03-28 13:57:08 +02:00
Lefucjusz
3eae770ad3 [MOS-303] Documentation fix
Fix of the gain parameter range
2022-03-24 14:17:23 +01:00
Marcin Lyda
6f257d38db [MOS-303] Add playback path gain params to json
Additional pair of parameters has been added
to current implementation of equalizer to
enable changing playback path gain during
audio path fine-tuning
2022-03-22 09:13:25 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
GravisZro
e59cd4036b [MOS-245] Fix errant spaces
It appears in the past a major edit was made but had used a regex to
change some text which resulted in an errant space between the
enumuneration/struct/class name and the scope resolution operator.
These errant spaces have been removed.
2022-02-24 08:47:20 +01:00
Daniel Karski
81559df275 [EGD-8162] Allow importing audio profile settings from json file
Update Audio/Profiles README.md
2022-02-07 15:17:30 +01:00
Mateusz Piesta
83051c9413 [BH-1340] Fix audio asset tags
Fixed audio asset tags
Fixed formatting issues.
2022-02-01 08:32:35 +01:00
Bartosz Cichocki
81052bbcb1 [EGD-8162] Allow importing audio profile settings from json file
This allows for imporing the audio profile setitngs, including
EQ settings from the json file, thus allowing modification of
those setitngs without the need of recompiling the source code.
2022-01-28 10:32:12 +01:00
Mateusz Piesta
c1391090c6 [BH-1389] Catch2 unit tests optimization
Removed redundant recompilation of catch2 main
resulted in over 20% speed up of unit tests compilation.
2022-01-26 15:04:23 +01:00
Bartosz Cichocki
39124c0b03 [EGD-8159] Change earspeaker EQ
Changed the earspeaker EQ according to the poll
2022-01-12 11:51:21 +01:00
Kuba
28e9e50d3e [EGD-8094] Change mp3 decoder replaced with dr_mp3
Mp3 decoder replaced with dr_mp3.
2021-12-20 16:48:54 +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
Lucjan Bryndza
cbbcbe2a04 [EGD-8076] Replace wav decoder by dr_wav
Replace plain straigh waw decoder by the dr_wav library.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-12-09 15:23:56 +01:00