Commit Graph
1260 Commits
Author SHA1 Message Date
jacqueline f1992fc856 Removed some old, unused assets 2024-06-12 10:45:39 +10:00
ailuruxandjacqueline 7c107e739a Add basic bluetooth queue controls 2024-06-11 08:52:31 +10:00
ailuruxandcooljqln 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>
2024-06-06 04:52:00 +00:00
jacqueline 1242a199e3 log db update time-per-track 2024-06-04 09:00:08 +10:00
jacqueline 72344b5777 no more acquire_spi :) 2024-06-04 08:09:40 +10:00
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.
2024-06-03 21:02:24 +10:00
jacqueline 9457f9021a u didnt see shit 2024-06-03 20:12:03 +10:00
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
2024-06-03 19:59:18 +10:00
jacqueline 41d15a831b version bump 2024-05-31 13:02:28 +10:00
jacqueline 661cc976a1 Remove now redudantant 'Iterator.next()' care in TrackIterator
With Daniel's fix, this is no longer needed! Hooray!
2024-05-31 12:03:01 +10:00
jacqueline 23a5d26e8a Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-31 11:52:45 +10:00
jacqueline f84474d94d Introduce a PcmBuffer abstraction for handling source draining 2024-05-31 11:52:19 +10:00
ailurux 9dbcd6a5c8 Fix prev/next behaviour on database iterator
Fixes issue with apparent duplicated tracks in the infinite list
2024-05-30 13:49:56 +10:00
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"
2024-05-29 14:45:49 +10:00
ailurux ef812a53e5 Minor formatting fix 2024-05-29 08:18:31 +10:00
ailurux 9d67ddcf6e Fix issue where failing to connect bt device initially won't retry 2024-05-29 08:14:07 +10:00
jacqueline c846146c2f Lowercase BT device name for better auto-reading 2024-05-28 12:53:02 +10:00
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.
2024-05-24 15:12:41 +10:00
jacqueline fb6b0ed49c Fix counting empty stream cues as the current stream 2024-05-24 14:31:32 +10:00
jacqueline d948585b00 add a lua binding for playing a sine wave 2024-05-17 11:40:43 +10:00
jacqueline 51bbb6a495 Add a stream source that generates a sine wave 2024-05-16 12:21:05 +10:00
jacqueline c1f7adf227 Add a 'decoder' for streams already in our native format 2024-05-16 12:20:50 +10:00
jacqueline e8f5e73b1a Handle tracks with no duration in the playback screen 2024-05-16 12:20:15 +10:00
jacqueline ddc03204e1 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-15 15:58:03 +10:00
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
2024-05-15 15:57:16 +10:00
ailurux e7272af4ae Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-14 16:36:46 +10:00
ailurux e06a096194 Minor improvements to infinite list widget 2024-05-14 16:34:37 +10:00
jacqueline 00d6c2eca2 save lra calibration data to nvs 2024-05-14 15:21:21 +10:00
jacqueline defe838ab0 Use LRA motors in an auto-calibrated closed-loop mode 2024-05-14 13:14:10 +10:00
jacqueline f991ac9866 version bump 2024-05-10 14:28:44 +10:00
jacqueline 41426151a1 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-10 14:28:03 +10:00
jacqueline 1d0ad4cbf9 stop writing the erm bit 2024-05-10 14:27:42 +10:00
ailurux 35c6125b25 Merge pull request 'file-browser' (#71) from file-browser into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/71
Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
2024-05-10 04:20:00 +00:00
ailurux ce9861260d Remove unused local var 2024-05-10 14:18:04 +10:00
ailurux e06610f3a6 Minor fixes before PR 2024-05-10 13:27:01 +10:00
ailurux 0062eb9a9e Rename widget to InfiniteList 2024-05-10 13:16:29 +10:00
ailurux ee5657cb44 Fix imports after merge 2024-05-10 13:07:12 +10:00
ailurux 3f177cdb88 Merge branch 'main' into file-browser 2024-05-10 13:06:20 +10:00
ailurux e4ce7c4ac2 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-10 12:20:51 +10:00
ailurux 5b109ed327 Tweaks to default d-pad controls 2024-05-10 12:20:25 +10:00
jacqueline 2afeb2989b use long-press shortcuts again, but make them a bit harder to trigger accidentally 2024-05-09 17:05:54 +10:00
cooljqln b720ba42a0 Merge pull request 'Factor gapless handling out of audio_fsm and into the audio pipeline' (#69) from jqln/audio-pipeline into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/69
Reviewed-by: ailurux <ailurux@noreply.codeberg.org>
2024-05-09 06:24:14 +00:00
jacqueline 690c64c151 Fix playback after restoring queue on boot 2024-05-09 10:59:49 +10:00
jacqueline 265049c519 Count samples going in and out of the drain buffer
This is a more accurate way of knowing which track is playing when, and
also simplifies a lot of fragile logic in audio_fsm
2024-05-08 16:03:03 +10:00
jacqueline b242ba9986 Improve decoder's interface to accept streams 2024-05-07 14:19:19 +10:00
ailurux 8019c76918 File browser and track browser bug fixes 2024-05-06 15:48:04 +10:00
ailurux eeb3f2d406 WIP: File browser, needs bug fixes 2024-05-06 12:36:16 +10:00
jacqueline 344a46d066 Respond to sd card mounts and unmounts within lua
Includes no longer blocking the main menu on an sd card being inserted!!
2024-05-03 16:40:39 +10:00
cooljqln 3ceb8025ee Merge pull request 'Break dependency cycles with our components by merging co-dependent components together' (#68) from jqln/component-merge into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/68
2024-05-03 04:48:17 +00:00
jacqueline 964da15a0b Add the collation partition to the build
Includes a small linux-only bash script to generate locale partitions
2024-05-03 12:37:23 +10:00