aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-04-17 15:05:33 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-06-03 08:22:23 +0000
commit82dcd575dd281bbd83a83a4fb783713dc1678b53 (patch)
tree02dff29939133b03aac826a1a366b37cbee8307f
parent8511a14eb0cf3bc78fe8436f14bd01f760f923ec (diff)
sound: Remove dead EQ FEEDEQ_DISABLE code
If EQ is disabled, we never reach those code paths in the first place. Sponsored by: The FreeBSD Foundation MFC after: 1 week Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/15 (cherry picked from commit 6f130b220d7ce64ce65f076a21edea034d14482b)
-rw-r--r--sys/dev/sound/pcm/feeder_eq.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/sound/pcm/feeder_eq.c b/sys/dev/sound/pcm/feeder_eq.c
index 8f3acbf4e156..fe47a9d7e434 100644
--- a/sys/dev/sound/pcm/feeder_eq.c
+++ b/sys/dev/sound/pcm/feeder_eq.c
@@ -148,19 +148,6 @@ feed_eq_biquad(struct feed_eq_info *info, uint8_t *dst, uint32_t count,
pmul = feed_eq_preamp[info->preamp].mul;
pshift = feed_eq_preamp[info->preamp].shift;
- if (info->state == FEEDEQ_DISABLE) {
- j = count * info->channels;
- dst += j * AFMT_BPS(fmt);
- do {
- dst -= AFMT_BPS(fmt);
- v = pcm_sample_read(dst, fmt);
- v = ((intpcm64_t)pmul * v) >> pshift;
- pcm_sample_write(dst, v, fmt);
- } while (--j != 0);
-
- return;
- }
-
treble = &(info->coeff[info->treble.gain].treble);
bass = &(info->coeff[info->bass.gain].bass);
@@ -369,9 +356,6 @@ feed_eq_feed(struct pcm_feeder *f, struct pcm_channel *c, uint8_t *b,
info = f->data;
- if (info->state == FEEDEQ_DISABLE)
- return (FEEDER_FEED(f->source, c, b, count, source));
-
dst = b;
count = SND_FXROUND(count, info->align);