summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
index 6fdde32185..cf0a378fc7 100644
--- a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
+++ b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c
@@ -25,7 +25,6 @@
25#include "kernel.h" 25#include "kernel.h"
26#include "thread.h" 26#include "thread.h"
27#include "mc13783.h" 27#include "mc13783.h"
28#include "mc13783-target.h"
29#include "adc.h" 28#include "adc.h"
30#include "button.h" 29#include "button.h"
31 30
@@ -146,7 +145,7 @@ static void NORETURN_ATTR headphone_thread(void)
146} 145}
147 146
148/* HP plugged/unplugged event - called from PMIC ISR */ 147/* HP plugged/unplugged event - called from PMIC ISR */
149void headphone_detect_event(void) 148void MC13783_EVENT_CB_ONOFD2(void)
150{ 149{
151 /* Trigger the thread immediately. */ 150 /* Trigger the thread immediately. */
152 semaphore_release(&headphone_wakeup); 151 semaphore_release(&headphone_wakeup);
@@ -170,5 +169,5 @@ void INIT_ATTR headphone_init(void)
170 IF_COP(, CPU)); 169 IF_COP(, CPU));
171 170
172 /* Enable PMIC event */ 171 /* Enable PMIC event */
173 mc13783_enable_event(MC13783_ONOFD2_EVENT, true); 172 mc13783_enable_event(MC13783_INT_ID_ONOFD2, true);
174} 173}