From 3836768bb8b95188e6657ab69027d1d9e4b13a77 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 3 Apr 2023 14:06:30 +1000 Subject: new pipeline working(?), but the dac eludes me --- src/drivers/include/dac.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/include') 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, -- cgit v1.2.3