summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-04-03 14:06:30 +1000
committerjacqueline <me@jacqueline.id.au>2023-04-19 10:29:40 +1000
commit3836768bb8b95188e6657ab69027d1d9e4b13a77 (patch)
treee4330202da1375a6f49d959a7b839643adccd3ca /src/drivers/include
parent7c6fd654f50e6665efa4226c6b927f9762734182 (diff)
downloadtangara-fw-3836768bb8b95188e6657ab69027d1d9e4b13a77.tar.gz
new pipeline working(?), but the dac eludes me
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/dac.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/include/dac.hpp b/src/drivers/include/dac.hpp
index 4a1b2a5b..6849d92c 100644
--- a/src/drivers/include/dac.hpp
+++ b/src/drivers/include/dac.hpp
@@ -83,6 +83,7 @@ class AudioDac {
private:
GpioExpander* gpio_;
i2s_chan_handle_t i2s_handle_;
+ bool i2s_active_;
i2s_std_clk_config_t clock_config_;
i2s_std_slot_config_t slot_config_;
@@ -97,9 +98,13 @@ class AudioDac {
PAGE_SELECT = 0,
RESET = 1,
POWER_MODE = 2,
+ PLL_ENABLE = 4,
DE_EMPHASIS = 7,
+ PLL_CLOCK_SOURCE = 13,
DAC_CLOCK_SOURCE = 14,
+ RESYNC_REQUEST = 19,
CLOCK_ERRORS = 37,
+ INTERPOLATION = 34,
I2S_FORMAT = 40,
DIGITAL_VOLUME_L = 61,
DIGITAL_VOLUME_R = 62,