diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 4801c4aa35..a7bff746d8 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c @@ -407,7 +407,7 @@ void codec_init_codec_api(void) { ci.dsp = (struct dsp_config *)dsp_configure(NULL, DSP_MYDSP, CODEC_IDX_AUDIO); - ci.codec_get_buffer = codeclib_get_buffer; + ci.codec_get_buffer = codec_get_buffer_callback; ci.pcmbuf_insert = codec_pcmbuf_insert_callback; ci.set_elapsed = audio_codec_update_elapsed; ci.read_filebuf = codec_filebuf_callback; diff --git a/apps/codecs.c b/apps/codecs.c index 0fe848ecd3..ec566dba06 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -174,7 +174,7 @@ void codec_get_full_path(char *path, const char *codec_root_fn) } /* Returns pointer to and size of free codec RAM. Aligns to CACHEALIGN_SIZE. */ -void *codeclib_get_buffer(size_t *size) +void *codec_get_buffer_callback(size_t *size) { void *buf = &codecbuf[codec_size]; *size = CODEC_SIZE - codec_size; diff --git a/apps/codecs.h b/apps/codecs.h index 07b8cd5d4f..e24081128f 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -275,7 +275,7 @@ extern unsigned char plugin_end_addr[]; void codec_get_full_path(char *path, const char *codec_root_fn); /* Returns pointer to and size of free codec RAM */ -void *codeclib_get_buffer(size_t *size); +void *codec_get_buffer_callback(size_t *size); /* defined by the codec loader (codec.c) */ int codec_load_buf(int hid, struct codec_api *api);