diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-01-02 18:32:35 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-01-02 18:32:35 +0000 |
commit | 5a8da163c842b08c6dbf1df6921507ec2fd5a534 (patch) | |
tree | 559e1704efa126f603411fd71abd99a01c0e6610 /firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c | |
parent | 1f0e6530386e2295d9573f3f9cb7fd75f2e87450 (diff) | |
download | rockbox-5a8da163c842b08c6dbf1df6921507ec2fd5a534.tar.gz rockbox-5a8da163c842b08c6dbf1df6921507ec2fd5a534.zip |
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
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.c | 4 |
1 files changed, 2 insertions, 2 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 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) | |||
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
174 | /* This is called from the mc13783 interrupt thread */ | 174 | /* HP plugged/unplugged event - called from PMIC ISR */ |
175 | void headphone_detect_event(void) | 175 | void headphone_detect_event(void) |
176 | { | 176 | { |
177 | /* Trigger the thread immediately. */ | 177 | /* Trigger the thread immediately. */ |
@@ -197,5 +197,5 @@ void INIT_ATTR headphone_init(void) | |||
197 | 197 | ||
198 | /* Initially poll and then enable PMIC event */ | 198 | /* Initially poll and then enable PMIC event */ |
199 | headphone_detect_event(); | 199 | headphone_detect_event(); |
200 | mc13783_enable_event(MC13783_ONOFD2_EVENT); | 200 | mc13783_enable_event(MC13783_ONOFD2_EVENT, true); |
201 | } | 201 | } |