Commit Graph

263 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
8a25c9e1d2 [BH-2001] Fix debug build with new FSL
* Fixed some issues that have been
caught by asserts in debug build.
* Minor cleanup.
2024-06-04 11:02:17 +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
Dawid Wojtas
54bf8311b0 [BH-1770][BH-1677] Update fsl drivers
Now the system uses 2.14.0 version.
Add only necessary drivers:
- pit
- pmu
- rtwdog
- snvs_hp
- snvs_lp
- src
- trng
- wdog
- gpio
- gpt
- lpi2c
- lpuart
- lpuart_edma
- common
- common_arm
- dmamux
- edma
- flexram
- flexram_allocate
- clock
- cache
- CMSIS
- dcp
- iomuxc

Changed speed of the USDHC clock from ~109MHz to ~81MHz.
Also changed bus timing from kMMC_HighSpeedTiming to
kMMC_HighSpeed200Timing for better efficiency.
2024-02-21 18:58:12 +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
Lefucjusz
9da6579167 [MOS-552] Fix alarm clock input behavior
Fix of multiple issues that manifested in
input fields of alarm clock, i.e. value
not erasing automatically, redundant
double-zero filling of hours field,
lack of zero-filling of minutes field
when navigating to AM/PM field in
12h mode.
2023-09-06 14:11:32 +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
dc48e6c7e7 [CP-1841] Distorted playback and poor device control responsiveness
Fixed problem with an unresponding device after playing specific WAV files.
WAV files encoded with ADPCM are not supported now by the devices.
2023-04-26 16:13:47 +02:00
Adam Wulkiewicz
e16bb031eb [CP-1837] Random crashes while copying files
Use ConstMemoryConstrainedFileRef newly added to taglib
2023-03-31 13:06:57 +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
Mateusz Piesta
ef189d96a1 [MOS-205] Unneeded fs notify events
Fixed problem with fs notification events
being sent one time too many.
2023-02-15 09:51:20 +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
a83f7146ad [MOS-767] Fix full path displayed for invalid audio file
Fix of the issue that whole file path was
displayed instead of just filename in music
player for invalid audio file for which Taglib
failed to obtain tags.
2023-01-17 18:12:42 +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
Bartosz
27cf19317a [MOS-765] Fixed crash on invalid ID3 tag
Bumped taglib version to latest master
Added sanity check for version field in tag parser in taglib
so in case of damaged/invalid tag it returns no tag at all

It was caused by zipped mp3 files and renamed to mp3 again
2022-12-30 17:51:33 +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
Mateusz Piesta
c11867772a [BH-1457] Simulator audio
Switched to the more efficient way of
spawning pulse audio context/stream.
This change fixed rare issues reported by
address sanitizer and accidental freezes.
2022-06-22 23:21:47 +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