summaryrefslogtreecommitdiff
path: root/src/tangara/audio/fatfs_source.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tangara/audio/fatfs_source.cpp')
-rw-r--r--src/tangara/audio/fatfs_source.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tangara/audio/fatfs_source.cpp b/src/tangara/audio/fatfs_source.cpp
index fb6a684d..4b517af8 100644
--- a/src/tangara/audio/fatfs_source.cpp
+++ b/src/tangara/audio/fatfs_source.cpp
@@ -29,12 +29,10 @@ FatfsSource::FatfsSource(codecs::StreamType t, std::unique_ptr<FIL> file)
: IStream(t), file_(std::move(file)) {}
FatfsSource::~FatfsSource() {
- auto lock = drivers::acquire_spi();
f_close(file_.get());
}
auto FatfsSource::Read(std::span<std::byte> dest) -> ssize_t {
- auto lock = drivers::acquire_spi();
if (f_eof(file_.get())) {
return 0;
}
@@ -52,7 +50,6 @@ auto FatfsSource::CanSeek() -> bool {
}
auto FatfsSource::SeekTo(int64_t destination, SeekFrom from) -> void {
- auto lock = drivers::acquire_spi();
switch (from) {
case SeekFrom::kStartOfStream:
f_lseek(file_.get(), destination);