jacqueline
b63e897268
Move the SPI interrupt alloc to the second core
...
We're a bit close to the line on core0 allocs, so this helps balance things out a bit.
10 months ago
jacqueline
11bddb1b1d
add a console command for dumping intr allocations
10 months ago
jacqueline
53798f4a61
Move audio decoder priorities below bluetooth
...
The previous priority was leading to a nasty consistent stutter, as reading samples from the drain suffer would lead to the decoder immediately unblocking and preempting the SBC encoding.
10 months ago
jacqueline
370d1853b5
Break FatfsStreamFactory's dep on ServiceLocator
10 months ago
jacqueline
41e0605f17
Give PcmBuffer pairs a name, and wire them up in the audio stack
10 months ago
jacqueline
f42448d501
WIP start on accepting two streams in out audio output
10 months ago
jacqueline
1b7fb84220
Tweak app console setup to improve companion connections
...
- disable regular log output when entering the console
- disable colour changes for the prompt character
10 months ago
jacqueline
88ac96242f
Load fonts asynchronously on a bg task
...
This saves a second or two from bootup; AFAICT this *mostly* reclaims
the dynamic fonts boot time regression.
10 months ago
jacqueline
984b874d7e
Fix some issues with the splash screen
...
- fix a use-after-free involving the alerts container that was
happening when showing the first screen
- fix some issues where the splash screen wouldn't come up as early as
it needs to when another bootup task was making heavy use of the spi
bus
10 months ago
jacqueline
9204b585ae
show a message if the sd card is unmounted
10 months ago
jacqueline
6fe08ba73d
reapply bindings when showing screens
10 months ago
jacqueline
8695b04a83
Try to print userdata name when dumping lua stack
10 months ago
jacqueline
688fe79471
require a key press before entering the dev console
...
this improves our ability to detect terminals that support line editing
10 months ago
jacqueline
1daa1e9b0f
update catch2 to v3.6.0
10 months ago
jacqueline
bfee3742d3
skip the storage test if there's no sd card
10 months ago
jacqueline
525ed2ae1b
Add a basic overview of writing and running tests
10 months ago
jacqueline
8db57d6dc5
Unbreak the tests build
10 months ago
jacqueline
d75927ff92
Use a curve to estimate battery %
...
This is a bit more accurate than our previous linear relationship,
particularly at lower voltages.
10 months ago
jacqueline
00b1ba58f0
Improve DAC power+mute management to reduce clicks and pops
10 months ago
jacqueline
7f2d56e29a
Load fonts dynamically from /lua
...
This unfortunately slows boot time by a bit, but I think we should be able to reclaim that time eventually.
10 months ago
jacqueline
194f0e6b59
Scroll to 'top/bottom' by only 10 at a time
...
Prevents a nasty device lockup when scrolling infinite lists
10 months ago
jacqueline
82ec765d2d
Fix splash screen background
10 months ago
jacqueline
e58dcf6dc5
WIP fix issues introduced by lvgl version bump
10 months ago
ailurux
7c107e739a
Add basic bluetooth queue controls
10 months ago
ailurux
8de07fe8fa
daniel/bluetooth-avrc ( #80 )
...
Have a squizzy and lemme know if any issues @cooljqln 🐝
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/80
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
11 months ago
jacqueline
1242a199e3
log db update time-per-track
11 months ago
jacqueline
72344b5777
no more acquire_spi :)
11 months ago
jacqueline
39460931d8
Remove spi locking hack + increase max sd frequency
...
These two changes (mostly the former) dramatically increase
responsiveness when doing database updates; previously we were suffering
from some nasty priority inversion.
afaict the underlying need to acquire_spi seems to be fixed? i.e. spi
bus acquisition is working properly. fingers heavily heavily crossed.
11 months ago
jacqueline
9457f9021a
u didnt see shit
11 months ago
jacqueline
4afe9d9b5c
move a bunch of bt callbacks to background tasks
...
we should avoid doing bt state machine stuff from these callbacks, since
espressif calls us whilst holding a lock. ideally we should move all of
them to background threads, but we need to do a deep copy to safely move
a few of them
11 months ago
jacqueline
661cc976a1
Remove now redudantant 'Iterator.next()' care in TrackIterator
...
With Daniel's fix, this is no longer needed! Hooray!
11 months ago
jacqueline
f84474d94d
Introduce a PcmBuffer abstraction for handling source draining
11 months ago
ailurux
9dbcd6a5c8
Fix prev/next behaviour on database iterator
...
Fixes issue with apparent duplicated tracks in the infinite list
11 months ago
jacqueline
2ff8eac022
Start on TTS support by logging the data that will become TTS lines
...
Includes some misc cleanup of haptic double-triggering (or
non-triggering), since those cases all end up being TTS event
double-reporting, which to me crosses the threshold from "annoying" to
"usability issue"
11 months ago
ailurux
ef812a53e5
Minor formatting fix
11 months ago
ailurux
9d67ddcf6e
Fix issue where failing to connect bt device initially won't retry
11 months ago
jacqueline
c846146c2f
Lowercase BT device name for better auto-reading
11 months ago
jacqueline
0da7ead0a8
Simply some I2SDac management to avoid null pointer accesses
...
Fixes #72 ; we were destroying the I2SDac instance, but weren't actually
recording that the output was now in the 'off' state.
11 months ago
jacqueline
fb6b0ed49c
Fix counting empty stream cues as the current stream
11 months ago
jacqueline
d948585b00
add a lua binding for playing a sine wave
11 months ago
jacqueline
51bbb6a495
Add a stream source that generates a sine wave
11 months ago
jacqueline
c1f7adf227
Add a 'decoder' for streams already in our native format
11 months ago
jacqueline
4c9b77ea13
Support setting the samd charge rate
...
We default to the fast one, and do not try setting the charge rate bit
on older samd versions
11 months ago
jacqueline
00d6c2eca2
save lra calibration data to nvs
11 months ago
jacqueline
defe838ab0
Use LRA motors in an auto-calibrated closed-loop mode
11 months ago
jacqueline
1d0ad4cbf9
stop writing the erm bit
12 months ago
ailurux
e06610f3a6
Minor fixes before PR
12 months ago
ailurux
ee5657cb44
Fix imports after merge
12 months ago
ailurux
5b109ed327
Tweaks to default d-pad controls
12 months ago
jacqueline
2afeb2989b
use long-press shortcuts again, but make them a bit harder to trigger accidentally
12 months ago