Page MenuHomeFreeBSD

D48033.diff
No OneTemporary

D48033.diff

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

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)

Event Timeline