diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/audio/android.c | 6 | ||||
-rw-r--r-- | firmware/target/hosted/android/system-android.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/firmware/drivers/audio/android.c b/firmware/drivers/audio/android.c index 8bd026320c..ff36ca21d9 100644 --- a/firmware/drivers/audio/android.c +++ b/firmware/drivers/audio/android.c | |||
@@ -60,4 +60,8 @@ void audiohw_set_balance(int balance) | |||
60 | (void)balance; | 60 | (void)balance; |
61 | } | 61 | } |
62 | 62 | ||
63 | void audiohw_close(void) {} | 63 | void audiohw_close(void) |
64 | { | ||
65 | extern void pcm_shutdown(void); | ||
66 | pcm_shutdown(); | ||
67 | } | ||
diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c index e48e910c0c..b3c4cdccb5 100644 --- a/firmware/target/hosted/android/system-android.c +++ b/firmware/target/hosted/android/system-android.c | |||
@@ -38,7 +38,6 @@ uintptr_t *stackend; | |||
38 | 38 | ||
39 | extern int main(void); | 39 | extern int main(void); |
40 | extern void telephony_init_device(void); | 40 | extern void telephony_init_device(void); |
41 | extern void pcm_shutdown(void); | ||
42 | 41 | ||
43 | void system_exception_wait(void) { } | 42 | void system_exception_wait(void) { } |
44 | void system_reboot(void) { } | 43 | void system_reboot(void) { } |
@@ -93,8 +92,6 @@ Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this) | |||
93 | 92 | ||
94 | main(); | 93 | main(); |
95 | } | 94 | } |
96 | |||
97 | pcm_shutdown(); | ||
98 | /* simply return here. this will allow the VM to clean up objects and do | 95 | /* simply return here. this will allow the VM to clean up objects and do |
99 | * garbage collection */ | 96 | * garbage collection */ |
100 | } | 97 | } |