Page MenuHomeFreeBSD

sound: Remove dead code from pcm/
ClosedPublic

Authored by christos on Nov 25 2024, 2:12 PM.
Tags
None
Referenced Files
F110389338: D47733.id147357.diff
Mon, Feb 17, 6:00 PM
Unknown Object (File)
Sun, Feb 9, 11:27 PM
Unknown Object (File)
Sun, Feb 9, 9:43 AM
Unknown Object (File)
Wed, Jan 29, 1:54 PM
Unknown Object (File)
Mon, Jan 20, 10:19 PM
Unknown Object (File)
Jan 14 2025, 5:04 PM
Unknown Object (File)
Jan 12 2025, 8:02 AM
Unknown Object (File)
Dec 9 2024, 3:26 PM
Subscribers

Details

Summary

No functional change intended.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60755
Build 57639: arc lint + arc unit

Event Timeline

I am open to discussion if it's worth keeping/using anything from this.

sys/dev/sound/pcm/feeder_rate.c
1672

The comment here should also go if we remove the code below.

This revision is now accepted and ready to land.Nov 25 2024, 8:26 PM

I'm fine with the removal. Although it would be interesting to know more about some of the disabled code, it's probably not worth the effort to examine thoroughly.

sys/dev/sound/pcm/dsp.c
1260

These comments don't make sense with chn_wrupdate() removed. Please grep, there's more occurrences.

1278

Same here, this comment doesn't make sense with chn_rdupdate() removed.

sys/dev/sound/pcm/ac97.c
325

It looks like this was done because AC97_READ is sometimes inconsistent so we do it in a loop and ensure we get the same value twice. Maybe the #if 0'd code could be useful for debugging in the future, but if we want to keep it we could use something like #ifdef DEBUG_INCONSISTENT_REGISTER_READS

christos added inline comments.
sys/dev/sound/pcm/ac97.c
325

We can keep it under SND_DIAGNOSTIC.

This revision was automatically updated to reflect the committed changes.