summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/audio/xduoolinux_codec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/audio/xduoolinux_codec.c b/firmware/drivers/audio/xduoolinux_codec.c
index 2151d1c2e5..b114b1bbc9 100644
--- a/firmware/drivers/audio/xduoolinux_codec.c
+++ b/firmware/drivers/audio/xduoolinux_codec.c
@@ -84,12 +84,12 @@ int xduoo_get_outputs(void){
const char * const sysfs_bal_switch = "/sys/class/switch/balance/state";
#endif
- sysfs_get_int(sysfs_hs_switch, &status);
- if (status) ps = 2; // headset
-
sysfs_get_int(sysfs_lo_switch, &status);
if (status) ps = 1; // lineout
+ sysfs_get_int(sysfs_hs_switch, &status);
+ if (status) ps = 2; // headset
+
#if defined(XDUOO_X20)
sysfs_get_int(sysfs_bal_switch, &status);
if (status) ps = 3; // balance