[asterisk-commits] dsp.c: Fix incorrect format reference typo. (asterisk[14])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 28 19:17:30 CDT 2016


Joshua Colp has submitted this change and it was merged.

Change subject: dsp.c: Fix incorrect format reference typo.
......................................................................


dsp.c: Fix incorrect format reference typo.

Change-Id: Ia131da3ec29acf385cb43a586a29ecc975eb3896
---
M main/dsp.c
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Verified



diff --git a/main/dsp.c b/main/dsp.c
index f043ff9..cbbf696 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -200,7 +200,7 @@
  * 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 @@
  * 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 @@
 		}
 
 		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 @@
 		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]);
 		}

-- 
To view, visit https://gerrit.asterisk.org/3343
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia131da3ec29acf385cb43a586a29ecc975eb3896
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>



More information about the asterisk-commits mailing list