From 5f377c2613b54acc752902fa7531b9d25b03863e Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Mon, 29 Apr 2024 20:33:26 -0500 Subject: Eros Q Native: Add Stereo SW behavior setting Hopefully this should cover our bases so we can change the behavior of the stereo switch to keep line out working when they change the hardware on us! Change-Id: Ic36bcb3778d5681a5f3f158c689df9c1420c1d7e --- firmware/drivers/audio/eros_qn_codec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/audio/eros_qn_codec.c') diff --git a/firmware/drivers/audio/eros_qn_codec.c b/firmware/drivers/audio/eros_qn_codec.c index 095b3b5305..1d6753eb3a 100644 --- a/firmware/drivers/audio/eros_qn_codec.c +++ b/firmware/drivers/audio/eros_qn_codec.c @@ -51,10 +51,14 @@ int eros_qn_get_volume_limit(void) void eros_qn_switch_output(int select) { - if (select == 0) + /* normal operation 0, reverse operation 1, or always 0 */ + if ((select == 0 && global_settings.stereosw_mode == 0) \ + || (select == 1 && global_settings.stereosw_mode == 1) \ + || global_settings.stereosw_mode == 2) { gpio_set_level(GPIO_STEREOSW_SEL, 0); } + /* normal operation 1, reverse operation 0, or always 1 */ else { gpio_set_level(GPIO_STEREOSW_SEL, 1); -- cgit v1.2.3