diff options
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r-- | apps/codec_thread.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 7cf45c3490..4801c4aa35 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c | |||
@@ -208,19 +208,6 @@ void codec_thread_do_callback(void (*fn)(void), unsigned int *id) | |||
208 | 208 | ||
209 | /** --- codec API callbacks --- **/ | 209 | /** --- codec API callbacks --- **/ |
210 | 210 | ||
211 | static void * codec_get_buffer(size_t *size) | ||
212 | { | ||
213 | ssize_t s = CODEC_SIZE - codec_size; | ||
214 | void *buf = &codecbuf[codec_size]; | ||
215 | ALIGN_BUFFER(buf, s, CACHEALIGN_SIZE); | ||
216 | |||
217 | if (s <= 0) | ||
218 | return NULL; | ||
219 | |||
220 | *size = s; | ||
221 | return buf; | ||
222 | } | ||
223 | |||
224 | static void codec_pcmbuf_insert_callback( | 211 | static void codec_pcmbuf_insert_callback( |
225 | const void *ch1, const void *ch2, int count) | 212 | const void *ch1, const void *ch2, int count) |
226 | { | 213 | { |
@@ -420,7 +407,7 @@ void codec_init_codec_api(void) | |||
420 | { | 407 | { |
421 | ci.dsp = (struct dsp_config *)dsp_configure(NULL, DSP_MYDSP, | 408 | ci.dsp = (struct dsp_config *)dsp_configure(NULL, DSP_MYDSP, |
422 | CODEC_IDX_AUDIO); | 409 | CODEC_IDX_AUDIO); |
423 | ci.codec_get_buffer = codec_get_buffer; | 410 | ci.codec_get_buffer = codeclib_get_buffer; |
424 | ci.pcmbuf_insert = codec_pcmbuf_insert_callback; | 411 | ci.pcmbuf_insert = codec_pcmbuf_insert_callback; |
425 | ci.set_elapsed = audio_codec_update_elapsed; | 412 | ci.set_elapsed = audio_codec_update_elapsed; |
426 | ci.read_filebuf = codec_filebuf_callback; | 413 | ci.read_filebuf = codec_filebuf_callback; |