xduoox3ii/x20: headphones take precedence over line out
so if both are plugged in, assume headphones (and respect volume) Change-Id: Ia77ae6d484ac61f6a2b4cd51a991f59de239cfa6
This commit is contained in:
parent
6c6642e8d5
commit
4b10aacbc2
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue