From 610991455d335663de1dd6c0c6a3e0247ffd46df Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 7 Jun 2023 09:50:25 +1000 Subject: R4 pre-emptive bringup Includes stripping out the IC-specific I2S stuff, and doing more manual volume control using pots --- src/drivers/include/gpio_expander.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/drivers/include/gpio_expander.hpp') diff --git a/src/drivers/include/gpio_expander.hpp b/src/drivers/include/gpio_expander.hpp index da682848..8231e140 100644 --- a/src/drivers/include/gpio_expander.hpp +++ b/src/drivers/include/gpio_expander.hpp @@ -56,12 +56,12 @@ class GpioExpander { static const uint8_t kPortADefault = 0b10111110; // Port B: - // 0 - trs output enable - // 1 - 3.5mm jack detect (active low) - // 2 - NC - // 3 - NC - // 4 - NC - // 5 - NC + // 0 - 3.5mm jack detect (active low) + // 1 - trs output enable + // 2 - volume zero-cross detection + // 3 - volume direction + // 4 - volume left channel + // 5 - volume right channel // 6 - NC // 7 - NC // Default input high, trs output low @@ -118,12 +118,12 @@ class GpioExpander { SD_CARD_POWER_ENABLE = 7, // Port B - AMP_EN = 8, - PHONE_DETECT = 9, - // UNUSED = 10, - // UNUSED = 11, - // UNUSED = 12, - // UNUSED = 13, + PHONE_DETECT = 8, + AMP_EN = 9, + VOL_Z_CROSS = 10, + VOL_UP_DOWN = 11, + VOL_LEFT = 12, + VOL_RIGHT = 13, // UNUSED = 14, // UNUSED = 15, }; -- cgit v1.2.3