Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107047646
D48034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
D48034.diff
View Options
diff --git a/sys/dev/sound/pcm/feeder_eq.c b/sys/dev/sound/pcm/feeder_eq.c
--- a/sys/dev/sound/pcm/feeder_eq.c
+++ b/sys/dev/sound/pcm/feeder_eq.c
@@ -132,17 +132,18 @@
struct feed_eq_coeff_tone *treble, *bass;
intpcm64_t w;
intpcm_t v;
- uint32_t i, j;
+ uint32_t i, j, bps;
int32_t pmul, pshift;
pmul = feed_eq_preamp[info->preamp].mul;
pshift = feed_eq_preamp[info->preamp].shift;
+ bps = AFMT_BPS(info->fmt);
if (info->state == FEEDEQ_DISABLE) {
j = count * info->channels;
- dst += j * AFMT_BPS(info->fmt);
+ dst += j * bps;
do {
- dst -= AFMT_BPS(info->fmt);
+ dst -= bps;
v = pcm_sample_read(dst, info->fmt, false);
v = ((intpcm64_t)pmul * v) >> pshift;
pcm_sample_write(dst, v, info->fmt, false);
@@ -188,7 +189,7 @@
info->bass.o1[i] = v;
pcm_sample_write(dst, v, info->fmt, true);
- dst += AFMT_BPS(info->fmt);
+ dst += bps;
i++;
} while (--j != 0);
} while (--count != 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 10:13 AM (13 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15445970
Default Alt Text
D48034.diff (949 B)
Attached To
Mode
D48034: sound: Cache bps in pcm/feeder_eq.c
Attached
Detach File
Event Timeline
Log In to Comment