Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107004265
D48033.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
946 B
Referenced Files
None
Subscribers
None
D48033.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
@@ -126,10 +126,6 @@
#define FEEDEQ_ERR_CLIP_CHECK(...)
#endif
-#define FEEDEQ_CLAMP(v) (((v) > PCM_S32_MAX) ? PCM_S32_MAX : \
- (((v) < PCM_S32_MIN) ? PCM_S32_MIN : \
- (v)))
-
__always_inline static void
feed_eq_biquad(struct feed_eq_info *info, uint8_t *dst, uint32_t count)
{
@@ -175,7 +171,7 @@
info->treble.o2[i] = info->treble.o1[i];
w >>= FEEDEQ_COEFF_SHIFT;
FEEDEQ_ERR_CLIP_CHECK(treble, w);
- v = FEEDEQ_CLAMP(w);
+ v = PCM_CLAMP_S32(w);
info->treble.o1[i] = v;
w = (intpcm64_t)v * bass->b0;
@@ -188,7 +184,7 @@
info->bass.o2[i] = info->bass.o1[i];
w >>= FEEDEQ_COEFF_SHIFT;
FEEDEQ_ERR_CLIP_CHECK(bass, w);
- v = FEEDEQ_CLAMP(w);
+ v = PCM_CLAMP_S32(w);
info->bass.o1[i] = v;
pcm_sample_write(dst, v, info->fmt, true);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 8:16 PM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15327823
Default Alt Text
D48033.diff (946 B)
Attached To
Mode
D48033: sound: Remove FEEDEQ_CLAMP()
Attached
Detach File
Event Timeline
Log In to Comment