summaryrefslogtreecommitdiff
path: root/src/drivers/i2s_dac.cpp
diff options
context:
space:
mode:
authorcooljqln <cooljqln@noreply.codeberg.org>2024-05-03 04:48:17 +0000
committercooljqln <cooljqln@noreply.codeberg.org>2024-05-03 04:48:17 +0000
commit3ceb8025ee4330c177101ed30ec17dfb0002f41e (patch)
tree58350210f15df7d00d967cac6f30eeceeb031a3c /src/drivers/i2s_dac.cpp
parent964da15a0b84f8e5f00e8abac2f7dfda0bf60488 (diff)
parent9fafd797a5504f458b5fcae4a1d28a68da936315 (diff)
downloadtangara-fw-3ceb8025ee4330c177101ed30ec17dfb0002f41e.tar.gz
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
Diffstat (limited to 'src/drivers/i2s_dac.cpp')
-rw-r--r--src/drivers/i2s_dac.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/drivers/i2s_dac.cpp b/src/drivers/i2s_dac.cpp
index 7fe5547d..a271fce0 100644
--- a/src/drivers/i2s_dac.cpp
+++ b/src/drivers/i2s_dac.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-#include "i2s_dac.hpp"
+#include "drivers/i2s_dac.hpp"
#include <cmath>
#include <cstdint>
@@ -25,11 +25,11 @@
#include "hal/gpio_types.h"
#include "hal/i2c_types.h"
-#include "gpios.hpp"
+#include "drivers/gpios.hpp"
+#include "drivers/i2c.hpp"
+#include "drivers/wm8523.hpp"
#include "hal/i2s_types.h"
-#include "i2c.hpp"
#include "soc/clk_tree_defs.h"
-#include "wm8523.hpp"
namespace drivers {
@@ -142,8 +142,9 @@ auto I2SDac::SetPaused(bool paused) -> void {
static volatile bool sSwapWords = false;
-auto I2SDac::Reconfigure(Channels ch, BitsPerSample bps, SampleRate rate)
- -> void {
+auto I2SDac::Reconfigure(Channels ch,
+ BitsPerSample bps,
+ SampleRate rate) -> void {
std::lock_guard<std::mutex> lock(configure_mutex_);
if (i2s_active_) {