From 5a8da163c842b08c6dbf1df6921507ec2fd5a534 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 2 Jan 2012 18:32:35 +0000 Subject: i.MX31 - Dethreading operations continue Dispense with "pmic" thread and process PMIC events directly within ISR. Add sense bit reading as part of the handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31528 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c') 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 6e76615308..4e1792d467 100644 --- a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c @@ -171,7 +171,7 @@ static void headphone_thread(void) } } -/* This is called from the mc13783 interrupt thread */ +/* HP plugged/unplugged event - called from PMIC ISR */ void headphone_detect_event(void) { /* Trigger the thread immediately. */ @@ -197,5 +197,5 @@ void INIT_ATTR headphone_init(void) /* Initially poll and then enable PMIC event */ headphone_detect_event(); - mc13783_enable_event(MC13783_ONOFD2_EVENT); + mc13783_enable_event(MC13783_ONOFD2_EVENT, true); } -- cgit v1.2.3