summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@android.com>2014-03-10 12:09:26 -0700
committerGlenn Kasten <gkasten@google.com>2014-03-10 14:34:27 -0700
commita4ebf1324ac7d8fa1a5ec77bd7f27d124ede67d6 (patch)
tree9939d0304b032f64fc40dd8ce21dd23a0113e851 /tools
parent664334fc2204b9968e1600313383f5a6ff321811 (diff)
downloadframeworks_av-a4ebf1324ac7d8fa1a5ec77bd7f27d124ede67d6.zip
frameworks_av-a4ebf1324ac7d8fa1a5ec77bd7f27d124ede67d6.tar.gz
frameworks_av-a4ebf1324ac7d8fa1a5ec77bd7f27d124ede67d6.tar.bz2
Fix build warnings in fir
Change-Id: I75b34cc30998bd7d018cf8de68d1cbb8870bb994
Diffstat (limited to 'tools')
-rw-r--r--tools/resampler_tools/fir.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/resampler_tools/fir.cpp b/tools/resampler_tools/fir.cpp
index 3d6a74d..62eddca 100644
--- a/tools/resampler_tools/fir.cpp
+++ b/tools/resampler_tools/fir.cpp
@@ -137,24 +137,24 @@ int main(int argc, char** argv)
//
int nzc = 8;
- //
- // Example:
- // 44.1 KHz to 48 KHz resampling
- // 100 dB rejection above 28 KHz
- // (the spectrum will fold around 24 KHz and we want 100 dB rejection
- // at the point where the folding reaches 20 KHz)
- // ...___|_____
- // | \|
- // | ____/|\____
- // |/alias| \
- // ------/------+------\---------> KHz
- // 20 24 28
-
- // Transition band 8 KHz, or dw = 1.0472
- //
- // beta = 10.056
- // nzc = 20
- //
+ /*
+ * Example:
+ * 44.1 KHz to 48 KHz resampling
+ * 100 dB rejection above 28 KHz
+ * (the spectrum will fold around 24 KHz and we want 100 dB rejection
+ * at the point where the folding reaches 20 KHz)
+ * ...___|_____
+ * | \|
+ * | ____/|\____
+ * |/alias| \
+ * ------/------+------\---------> KHz
+ * 20 24 28
+ *
+ * Transition band 8 KHz, or dw = 1.0472
+ *
+ * beta = 10.056
+ * nzc = 20
+ */
int M = 1 << 4; // number of phases for interpolation
int ch;
@@ -270,7 +270,7 @@ int main(int argc, char** argv)
}
}
} else {
- for (int j=0 ; j<polyN ; j++) {
+ for (unsigned int j=0 ; j<polyN ; j++) {
// calculate the phase
double p = ((polyM*j) % polyN) / double(polyN);
if (!debug) printf("\n ");