summaryrefslogtreecommitdiff
path: root/lib/rbcodec/dsp/tdspeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/dsp/tdspeed.c')
-rw-r--r--lib/rbcodec/dsp/tdspeed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rbcodec/dsp/tdspeed.c b/lib/rbcodec/dsp/tdspeed.c
index 88d057560c..022a8edb6d 100644
--- a/lib/rbcodec/dsp/tdspeed.c
+++ b/lib/rbcodec/dsp/tdspeed.c
@@ -521,8 +521,12 @@ static intptr_t tdspeed_new_format(struct dsp_proc_entry *this,
521 (void)this; 521 (void)this;
522} 522}
523 523
524static void tdspeed_dsp_init(struct tdspeed_state_s *st, unsigned int dsp_id) 524void dsp_timestretch_init(struct dsp_config *dsp, unsigned int dsp_id)
525{ 525{
526 (void)dsp;
527
528 struct tdspeed_state_s *st = &tdspeed_state;
529
526 /* everything is at 100% until dsp_set_timestretch is called with 530 /* everything is at 100% until dsp_set_timestretch is called with
527 some other value and timestretch is enabled at the time */ 531 some other value and timestretch is enabled at the time */
528 if (dsp_id == CODEC_IDX_AUDIO) 532 if (dsp_id == CODEC_IDX_AUDIO)
@@ -541,10 +545,6 @@ static intptr_t tdspeed_configure(struct dsp_proc_entry *this,
541 545
542 switch (setting) 546 switch (setting)
543 { 547 {
544 case DSP_INIT:
545 tdspeed_dsp_init(st, value);
546 break;
547
548 case DSP_FLUSH: 548 case DSP_FLUSH:
549 tdspeed_flush(); 549 tdspeed_flush();
550 break; 550 break;