summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-24 16:42:32 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-24 16:42:32 +0000
commitd56999890f2aacf197d9ae4383313271499509a9 (patch)
tree76a0177e2cf19bb15a065199b812ef20158422e1 /apps/plugin.c
parent6688988ec42aa2254c8e370ec1932033a258b6fa (diff)
downloadrockbox-d56999890f2aacf197d9ae4383313271499509a9.zip
rockbox-d56999890f2aacf197d9ae4383313271499509a9.tar.gz
rockbox-d56999890f2aacf197d9ae4383313271499509a9.tar.bz2
rockbox-d56999890f2aacf197d9ae4383313271499509a9.tar.xz
Make PCM->driver interface about as simple as it will get. Registered callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b45220a..83f27ea 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -177,6 +177,9 @@ static const struct plugin_api rockbox_api = {
&button_queue,
#endif
bidi_l2v,
+#ifdef HAVE_LCD_BITMAP
+ is_diacritic,
+#endif
font_get_bits,
font_load,
font_get,
@@ -461,6 +464,9 @@ static const struct plugin_api rockbox_api = {
sound_max,
sound_unit,
sound_val2phys,
+#ifdef AUDIOHW_HAVE_EQ
+ sound_enum_hw_eq_band_setting,
+#endif
#ifndef SIMULATOR
mp3_play_data,
mp3_play_pause,
@@ -491,7 +497,6 @@ static const struct plugin_api rockbox_api = {
pcm_init_recording,
pcm_close_recording,
pcm_record_data,
- pcm_record_more,
pcm_stop_recording,
pcm_calculate_rec_peaks,
audio_set_recording_gain,
@@ -630,7 +635,12 @@ static const struct plugin_api rockbox_api = {
codec_thread_do_callback,
codec_load_file,
get_codec_filename,
+ find_array_ptr,
+ remove_array_ptr,
+#if defined(HAVE_RECORDING) && (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN))
+ round_value_to_list32,
#endif
+#endif /* CONFIG_CODEC == SWCODEC */
get_metadata,
mp3info,
count_mp3_frames,
@@ -711,24 +721,6 @@ static const struct plugin_api rockbox_api = {
appsversion,
/* new stuff at the end, sort into place next time
the API gets incompatible */
-
-#ifdef HAVE_LCD_BITMAP
- is_diacritic,
-#endif
-
-#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && \
- (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN))
- round_value_to_list32,
-#endif
-
-#ifdef AUDIOHW_HAVE_EQ
- sound_enum_hw_eq_band_setting,
-#endif
-
-#if CONFIG_CODEC == SWCODEC
- find_array_ptr,
- remove_array_ptr,
-#endif
};
int plugin_load(const char* plugin, const void* parameter)