diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:26:41 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:26:41 +0000 |
commit | 5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1 (patch) | |
tree | effe16b48cdae25b0776df1d0ef87f73c36c5267 /firmware/mp3_playback.c | |
parent | 6b8d020876f97a4af01d628ad0de251b103be01c (diff) | |
download | rockbox-5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1.tar.gz rockbox-5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1.zip |
New feature: clean shutdown if you press OFF twice in the file browser, or select "Shut
off" in the main menu. Players only have the menu option, due to lack of keys.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mp3_playback.c')
-rw-r--r-- | firmware/mp3_playback.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/mp3_playback.c b/firmware/mp3_playback.c index 44a7eef666..c6f16262a8 100644 --- a/firmware/mp3_playback.c +++ b/firmware/mp3_playback.c | |||
@@ -1028,6 +1028,20 @@ void mp3_init(int volume, int bass, int treble, int balance, int loudness, | |||
1028 | paused = true; | 1028 | paused = true; |
1029 | } | 1029 | } |
1030 | 1030 | ||
1031 | void mp3_shutdown(void) | ||
1032 | { | ||
1033 | #ifndef SIMULATOR | ||
1034 | #ifdef HAVE_MAS3587F | ||
1035 | unsigned long val = 1; | ||
1036 | mas_writemem(MAS_BANK_D0, 0x7f9, &val, 1); /* Mute */ | ||
1037 | #endif | ||
1038 | |||
1039 | #ifdef HAVE_MAS3507D | ||
1040 | dac_volume(0, 0, false); | ||
1041 | #endif | ||
1042 | |||
1043 | #endif | ||
1044 | } | ||
1031 | 1045 | ||
1032 | /* new functions, to be exported to plugin API */ | 1046 | /* new functions, to be exported to plugin API */ |
1033 | 1047 | ||