forked from len0rd/rockbox
Add HAVE_LINEOUT_DETECTION and associated logic
This allows targets to automatically switch audio settings when the line out is plugged/unplugged. Only hooked up on the xDuoo X3, but there are other potential users. Change-Id: Ic46a329bc955cca2e2ad0335ca16295eab24ad59
This commit is contained in:
parent
100f4338de
commit
d24edc605b
7 changed files with 110 additions and 28 deletions
|
|
@ -44,7 +44,7 @@ int button_read_device(void);
|
|||
#ifdef HAS_BUTTON_HOLD
|
||||
bool button_hold(void);
|
||||
#endif
|
||||
#ifdef HAS_REMOTE_BUTTON_HOLD
|
||||
#ifdef HAS_REMOTE_BUTTON_HOLD
|
||||
bool remote_button_hold(void);
|
||||
#endif
|
||||
|
||||
|
|
@ -72,6 +72,9 @@ void set_remote_backlight_filter_keypress(bool value);
|
|||
#ifdef HAVE_HEADPHONE_DETECTION
|
||||
bool headphones_inserted(void);
|
||||
#endif
|
||||
#ifdef HAVE_LINEOUT_DETECTION
|
||||
bool lineout_inserted(void);
|
||||
#endif
|
||||
#ifdef HAVE_WHEEL_POSITION
|
||||
int wheel_status(void);
|
||||
void wheel_send_events(bool send);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue