summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/eros_qn_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/eros_qn_codec.c')
-rw-r--r--firmware/drivers/audio/eros_qn_codec.c6
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
52void eros_qn_switch_output(int select) 52void 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);