erosqnative: Repurpose stereosw_select setting for output select

Turns out they did not swap the stereo switch lines on us,
so this setting isn't really useful. Repurpose it to allow
the user to force the device into headphone or line output mode.

Note that settings other than "Automatic" will cause jack detection
to not work.

Default Automatic.

Change-Id: If94499fbb8f0d92111811fe51f6107ce213b66ad
This commit is contained in:
Dana Conrad 2024-11-30 21:48:16 +00:00 committed by Solomon Peachy
parent a29b570ac4
commit 5ed0db6e90
7 changed files with 98 additions and 82 deletions

View file

@ -136,7 +136,7 @@ MENUITEM_SETTING(roll_off, &global_settings.roll_off, NULL);
#endif
#ifdef HAVE_EROS_QN_CODEC
MENUITEM_SETTING(stereosw_mode, &global_settings.stereosw_mode,NULL);
MENUITEM_SETTING(hp_lo_select, &global_settings.hp_lo_select,NULL);
#endif
#ifdef AUDIOHW_HAVE_POWER_MODE
@ -258,7 +258,7 @@ MAKE_MENU(sound_settings, ID2P(LANG_SOUND_SETTINGS), NULL, Icon_Audio,
,&roll_off
#endif
#ifdef HAVE_EROS_QN_CODEC
,&stereosw_mode
,&hp_lo_select
#endif
#ifdef AUDIOHW_HAVE_POWER_MODE
,&power_mode