aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-04-17 15:05:33 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-05-27 15:27:11 +0000
commit6f130b220d7ce64ce65f076a21edea034d14482b (patch)
tree2ad7c4c474888e62cd74f45444ed18862b390bd9
parent54a03b44ae386e26d29df6eece3fadb5c0d1105a (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
-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);