From 823d59f573d9b0f9c97247cd9b388b99f19e3c00 Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Sun, 26 Aug 2012 20:58:54 +0800 Subject: [PATCH] Tweaks --- libs/spandsp/src/t31.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/libs/spandsp/src/t31.c b/libs/spandsp/src/t31.c index b1c46206f7..84923ad4e3 100644 --- a/libs/spandsp/src/t31.c +++ b/libs/spandsp/src/t31.c @@ -2493,25 +2493,8 @@ SPAN_DECLARE_NONSTD(int) t31_rx_fillin(t31_state_t *s, int len) at_put_response_code(&s->at_state, AT_RESPONSE_CODE_ERROR); restart_modem(s, FAX_MODEM_SILENCE_TX); } - /* Call the fillin function of the current modem (if there is one). */ - switch (s->modem) - { - case FAX_MODEM_V21_RX: - len = fsk_rx_fillin(&s->audio.modems.v21_rx, len); - break; - case FAX_MODEM_V27TER_RX: - /* TODO: what about FSK in the early stages */ - len = v27ter_rx_fillin(&s->audio.modems.fast_modems.v27ter_rx, len); - break; - case FAX_MODEM_V29_RX: - /* TODO: what about FSK in the early stages */ - len = v29_rx_fillin(&s->audio.modems.fast_modems.v29_rx, len); - break; - case FAX_MODEM_V17_RX: - /* TODO: what about FSK in the early stages */ - len = v17_rx_fillin(&s->audio.modems.fast_modems.v17_rx, len); - break; - } + + s->audio.modems.rx_fillin_handler(s->audio.modems.rx_fillin_user_data, len); return 0; } /*- End of function --------------------------------------------------------*/