diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-01-03 20:46:54 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-01-04 23:52:42 +0100 |
commit | d24edc605b9b52d3610efbb9cf691c437ea00746 (patch) | |
tree | bd8e6119e4611c6ff83bd316816e0b9534d84deb /firmware/export/button.h | |
parent | 100f4338deea5239423a0b8974784939d520385c (diff) | |
download | rockbox-d24edc605b9b52d3610efbb9cf691c437ea00746.tar.gz rockbox-d24edc605b9b52d3610efbb9cf691c437ea00746.zip |
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
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r-- | firmware/export/button.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 7109c00f97..d9732ebe8b 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -44,7 +44,7 @@ int button_read_device(void); | |||
44 | #ifdef HAS_BUTTON_HOLD | 44 | #ifdef HAS_BUTTON_HOLD |
45 | bool button_hold(void); | 45 | bool button_hold(void); |
46 | #endif | 46 | #endif |
47 | #ifdef HAS_REMOTE_BUTTON_HOLD | 47 | #ifdef HAS_REMOTE_BUTTON_HOLD |
48 | bool remote_button_hold(void); | 48 | bool remote_button_hold(void); |
49 | #endif | 49 | #endif |
50 | 50 | ||
@@ -72,6 +72,9 @@ void set_remote_backlight_filter_keypress(bool value); | |||
72 | #ifdef HAVE_HEADPHONE_DETECTION | 72 | #ifdef HAVE_HEADPHONE_DETECTION |
73 | bool headphones_inserted(void); | 73 | bool headphones_inserted(void); |
74 | #endif | 74 | #endif |
75 | #ifdef HAVE_LINEOUT_DETECTION | ||
76 | bool lineout_inserted(void); | ||
77 | #endif | ||
75 | #ifdef HAVE_WHEEL_POSITION | 78 | #ifdef HAVE_WHEEL_POSITION |
76 | int wheel_status(void); | 79 | int wheel_status(void); |
77 | void wheel_send_events(bool send); | 80 | void wheel_send_events(bool send); |