diff options
author | Dana Conrad <dconrad@fastmail.com> | 2024-04-29 20:33:26 -0500 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2024-05-12 09:42:02 -0400 |
commit | 5f377c2613b54acc752902fa7531b9d25b03863e (patch) | |
tree | 052a94254c9057f1b11a64a665f0c33b9e7476a7 /firmware/drivers | |
parent | d0758c5330aac0cdee7b94b7b29e196b53b2e362 (diff) | |
download | rockbox-5f377c2613b54acc752902fa7531b9d25b03863e.tar.gz rockbox-5f377c2613b54acc752902fa7531b9d25b03863e.zip |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/audio/eros_qn_codec.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
51 | 51 | ||
52 | void eros_qn_switch_output(int select) | 52 | void eros_qn_switch_output(int select) |
53 | { | 53 | { |
54 | if (select == 0) | 54 | /* normal operation 0, reverse operation 1, or always 0 */ |
55 | if ((select == 0 && global_settings.stereosw_mode == 0) \ | ||
56 | || (select == 1 && global_settings.stereosw_mode == 1) \ | ||
57 | || global_settings.stereosw_mode == 2) | ||
55 | { | 58 | { |
56 | gpio_set_level(GPIO_STEREOSW_SEL, 0); | 59 | gpio_set_level(GPIO_STEREOSW_SEL, 0); |
57 | } | 60 | } |
61 | /* normal operation 1, reverse operation 0, or always 1 */ | ||
58 | else | 62 | else |
59 | { | 63 | { |
60 | gpio_set_level(GPIO_STEREOSW_SEL, 1); | 64 | gpio_set_level(GPIO_STEREOSW_SEL, 1); |