summaryrefslogtreecommitdiff
path: root/main/dsp.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-07-13 13:48:25 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-07-26 17:51:05 -0500
commit003a52fd626563b2d0db3a0d0ffefff2602c0149 (patch)
tree3388e48ef720e39d8045ff6cc8b8f52b08cfd623 /main/dsp.c
parent4c0a0cbe02fe745dfa8cc3ff35e357efadd1c050 (diff)
dsp.c: Fix incorrect format reference typo.
Change-Id: Ia131da3ec29acf385cb43a586a29ecc975eb3896
Diffstat (limited to 'main/dsp.c')
-rw-r--r--main/dsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/dsp.c b/main/dsp.c
index 18f2a22d8..371b472ff 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -200,7 +200,7 @@ enum gsamp_thresh {
* followed by a 3 second silent (2100 Hz OFF) period.
*/
#define FAX_TONE_CNG_FREQ 1100
-#define FAX_TONE_CNG_DURATION 500
+#define FAX_TONE_CNG_DURATION 500 /* ms */
#define FAX_TONE_CNG_DB 16
/* This signal may be sent by the Terminating FAX machine anywhere between
@@ -208,7 +208,7 @@ enum gsamp_thresh {
* of a 2100 Hz tone that is from 2.6 to 4 seconds in duration.
*/
#define FAX_TONE_CED_FREQ 2100
-#define FAX_TONE_CED_DURATION 2600
+#define FAX_TONE_CED_DURATION 2600 /* ms */
#define FAX_TONE_CED_DB 16
#define DEFAULT_SAMPLE_RATE 8000
@@ -601,7 +601,7 @@ static int tone_detect(struct ast_dsp *dsp, tone_detect_state_t *s, int16_t *amp
}
if (s->hit_count == s->hits_required) {
- ast_debug(1, "%d Hz done detected\n", s->freq);
+ ast_debug(1, "%d Hz tone detected\n", s->freq);
res = 1;
}
@@ -1620,7 +1620,7 @@ done:
for (x = 0; x < len; x++) {
odata[x] = AST_LIN2MU((unsigned short) shortdata[x]);
}
- } else if (ast_format_cmp(af->subclass.format, ast_format_ulaw) == AST_FORMAT_CMP_EQUAL) {
+ } else if (ast_format_cmp(af->subclass.format, ast_format_alaw) == AST_FORMAT_CMP_EQUAL) {
for (x = 0; x < len; x++) {
odata[x] = AST_LIN2A((unsigned short) shortdata[x]);
}