diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-10-31 21:09:34 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-10-31 21:09:34 +0000 |
commit | 56c4e9fa600557242d8b78f5fd8e32c2245b76fc (patch) | |
tree | f8558778a302f89c3e819e66e86577a5e37c3660 /uisimulator | |
parent | 40ed5f57d9be61f1200026e9b0f944a9718111c1 (diff) | |
download | rockbox-56c4e9fa600557242d8b78f5fd8e32c2245b76fc.tar.gz rockbox-56c4e9fa600557242d8b78f5fd8e32c2245b76fc.zip |
Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. FS#11189 by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/stubs.c | 108 |
1 files changed, 107 insertions, 1 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index a9011b9aa5..e0372d2683 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -40,7 +40,113 @@ void audio_set_buffer_margin(int seconds) | |||
40 | { | 40 | { |
41 | (void)seconds; | 41 | (void)seconds; |
42 | } | 42 | } |
43 | #endif | 43 | |
44 | /* firmware/target/sh/archos/audio-archos.c */ | ||
45 | |||
46 | /* list of tracks in memory */ | ||
47 | #define MAX_ID3_TAGS (1<<4) /* Must be power of 2 */ | ||
48 | #define MAX_ID3_TAGS_MASK (MAX_ID3_TAGS - 1) | ||
49 | |||
50 | static bool paused; /* playback is paused */ | ||
51 | static bool playing; /* We are playing an MP3 stream */ | ||
52 | |||
53 | bool audio_is_initialized = false; | ||
54 | |||
55 | void mp3_init(int volume, int bass, int treble, int balance, int loudness, | ||
56 | int avc, int channel_config, int stereo_width, | ||
57 | int mdb_strength, int mdb_harmonics, | ||
58 | int mdb_center, int mdb_shape, bool mdb_enable, | ||
59 | bool superbass) | ||
60 | { | ||
61 | (void)volume; | ||
62 | (void)bass; | ||
63 | (void)treble; | ||
64 | (void)balance; | ||
65 | (void)loudness; | ||
66 | (void)avc; | ||
67 | (void)channel_config; | ||
68 | (void)stereo_width; | ||
69 | (void)mdb_strength; | ||
70 | (void)mdb_harmonics; | ||
71 | (void)mdb_center; | ||
72 | (void)mdb_shape; | ||
73 | (void)mdb_enable; | ||
74 | (void)superbass; | ||
75 | audio_is_initialized = true; | ||
76 | |||
77 | playing = false; | ||
78 | paused = true; | ||
79 | } | ||
80 | |||
81 | void mp3_play_pause(bool play) | ||
82 | { | ||
83 | (void)play; | ||
84 | } | ||
85 | |||
86 | void mp3_play_stop(void) | ||
87 | { | ||
88 | } | ||
89 | |||
90 | unsigned char* mp3_get_pos(void) | ||
91 | { | ||
92 | return NULL; | ||
93 | } | ||
94 | |||
95 | void mp3_play_data(const unsigned char* start, int size, | ||
96 | void (*get_more)(unsigned char** start, size_t* size) /* callback fn */ | ||
97 | ) | ||
98 | { | ||
99 | (void)start; (void)size; (void)get_more; | ||
100 | } | ||
101 | |||
102 | /* firmware/drivers/audio/mas35xx.c */ | ||
103 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | ||
104 | void audiohw_set_loudness(int value) | ||
105 | { | ||
106 | (void)value; | ||
107 | } | ||
108 | |||
109 | void audiohw_set_avc(int value) | ||
110 | { | ||
111 | (void)value; | ||
112 | } | ||
113 | |||
114 | void audiohw_set_mdb_strength(int value) | ||
115 | { | ||
116 | (void)value; | ||
117 | } | ||
118 | |||
119 | void audiohw_set_mdb_harmonics(int value) | ||
120 | { | ||
121 | (void)value; | ||
122 | } | ||
123 | |||
124 | void audiohw_set_mdb_center(int value) | ||
125 | { | ||
126 | (void)value; | ||
127 | } | ||
128 | |||
129 | void audiohw_set_mdb_shape(int value) | ||
130 | { | ||
131 | (void)value; | ||
132 | } | ||
133 | |||
134 | void audiohw_set_mdb_enable(int value) | ||
135 | { | ||
136 | (void)value; | ||
137 | } | ||
138 | |||
139 | void audiohw_set_superbass(int value) | ||
140 | { | ||
141 | (void)value; | ||
142 | } | ||
143 | |||
144 | void audiohw_set_pitch(unsigned long value) | ||
145 | { | ||
146 | (void)value; | ||
147 | } | ||
148 | #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */ | ||
149 | #endif /* CODEC != SWCODEC */ | ||
44 | 150 | ||
45 | int fat_startsector(void) | 151 | int fat_startsector(void) |
46 | { | 152 | { |