Module Name: src
Committed By: isaki
Date: Sat Aug 5 05:04:30 UTC 2017
Modified Files:
src/sys/dev/ic: msm6258.c
Log Message:
Fix typo. 266 -> 256.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/msm6258.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/msm6258.c
diff -u src/sys/dev/ic/msm6258.c:1.21 src/sys/dev/ic/msm6258.c:1.22
--- src/sys/dev/ic/msm6258.c:1.21 Wed Aug 2 10:10:10 2017
+++ src/sys/dev/ic/msm6258.c Sat Aug 5 05:04:30 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: msm6258.c,v 1.21 2017/08/02 10:10:10 isaki Exp $ */
+/* $NetBSD: msm6258.c,v 1.22 2017/08/05 05:04:30 isaki Exp $ */
/*
* Copyright (c) 2001 Tetsuya Isaki. All rights reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msm6258.c,v 1.21 2017/08/02 10:10:10 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msm6258.c,v 1.22 2017/08/05 05:04:30 isaki Exp $");
#include <sys/systm.h>
#include <sys/device.h>
@@ -377,9 +377,9 @@ DEFINE_FILTER(msm6258_adpcm_to_linear8)
s = audio_stream_add_outp(this->src, s, 1);
s1 = adpcm2pcm_step(mc, a & 0x0f);
s2 = adpcm2pcm_step(mc, a >> 4);
- d[0] = s1 / 266;
+ d[0] = s1 / 256;
d = audio_stream_add_inp(dst, d, 1);
- d[0] = s2 / 266;
+ d[0] = s2 / 256;
d = audio_stream_add_inp(dst, d, 1);
}
} else if (enc_dst == AUDIO_ENCODING_ULINEAR_LE) {
@@ -390,9 +390,9 @@ DEFINE_FILTER(msm6258_adpcm_to_linear8)
s = audio_stream_add_outp(this->src, s, 1);
s1 = adpcm2pcm_step(mc, a & 0x0f);
s2 = adpcm2pcm_step(mc, a >> 4);
- d[0] = (s1 / 266) ^ 0x80;
+ d[0] = (s1 / 256) ^ 0x80;
d = audio_stream_add_inp(dst, d, 1);
- d[0] = (s2 / 266) ^ 0x80;
+ d[0] = (s2 / 256) ^ 0x80;
d = audio_stream_add_inp(dst, d, 1);
}
} else {