[asterisk-commits] alecdavis: trunk r373284 - /trunk/main/dsp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 21 04:11:47 CDT 2012
Author: alecdavis
Date: Fri Sep 21 04:11:39 2012
New Revision: 373284
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373284
Log:
dsp.c: remove more whitespace mentioned in review2107
Modified:
trunk/main/dsp.c
Modified: trunk/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/dsp.c?view=diff&rev=373284&r1=373283&r2=373284
==============================================================================
--- trunk/main/dsp.c (original)
+++ trunk/main/dsp.c Fri Sep 21 04:11:39 2012
@@ -125,7 +125,7 @@
BUSY_PAT_PERCENT = 7, /*!< The percentage difference between measured and actual pattern */
BUSY_THRESHOLD = 100, /*!< Max number of ms difference between max and min times in busy */
BUSY_MIN = 75, /*!< Busy must be at least 80 ms in half-cadence */
- BUSY_MAX =3100 /*!< Busy can't be longer than 3100 ms in half-cadence */
+ BUSY_MAX = 3100 /*!< Busy can't be longer than 3100 ms in half-cadence */
};
/*! Remember last 15 units */
@@ -689,15 +689,15 @@
}
/* We are at the end of a DTMF detection block */
/* Find the peak row and the peak column */
- row_energy[0] = goertzel_result (&s->td.dtmf.row_out[0]);
- col_energy[0] = goertzel_result (&s->td.dtmf.col_out[0]);
+ row_energy[0] = goertzel_result(&s->td.dtmf.row_out[0]);
+ col_energy[0] = goertzel_result(&s->td.dtmf.col_out[0]);
for (best_row = best_col = 0, i = 1; i < 4; i++) {
- row_energy[i] = goertzel_result (&s->td.dtmf.row_out[i]);
+ row_energy[i] = goertzel_result(&s->td.dtmf.row_out[i]);
if (row_energy[i] > row_energy[best_row]) {
best_row = i;
}
- col_energy[i] = goertzel_result (&s->td.dtmf.col_out[i]);
+ col_energy[i] = goertzel_result(&s->td.dtmf.col_out[i]);
if (col_energy[i] > col_energy[best_col]) {
best_col = i;
}
@@ -1392,13 +1392,13 @@
switch (f->subclass.format.id) {
case AST_FORMAT_ULAW:
s = ast_alloca(len * 2);
- for (x = 0;x < len; x++) {
+ for (x = 0; x < len; x++) {
s[x] = AST_MULAW(odata[x]);
}
break;
case AST_FORMAT_ALAW:
s = ast_alloca(len * 2);
- for (x = 0;x < len; x++) {
+ for (x = 0; x < len; x++) {
s[x] = AST_ALAW(odata[x]);
}
break;
@@ -1462,7 +1462,7 @@
case AST_FORMAT_ULAW:
case AST_FORMAT_TESTLAW:
shortdata = ast_alloca(af->datalen * 2);
- for (x = 0;x < len; x++) {
+ for (x = 0; x < len; x++) {
shortdata[x] = AST_MULAW(odata[x]);
}
break;
@@ -1647,7 +1647,7 @@
}
}
dsp->freqcount = max;
- dsp->ringtimeout= 0;
+ dsp->ringtimeout = 0;
}
unsigned int ast_dsp_get_sample_rate(const struct ast_dsp *dsp)
@@ -1766,7 +1766,7 @@
}
memset(dsp->historicsilence, 0, sizeof(dsp->historicsilence));
memset(dsp->historicnoise, 0, sizeof(dsp->historicnoise));
- dsp->ringtimeout= 0;
+ dsp->ringtimeout = 0;
}
int ast_dsp_set_digitmode(struct ast_dsp *dsp, int digitmode)
More information about the asterisk-commits
mailing list