Page MenuHomeFreeBSD

sound: Merge pcm_chn_destroy() and chn_kill()
ClosedPublic

Authored by christos on Apr 27 2024, 8:09 PM.
Tags
None
Referenced Files
F152958522: D44984.diff
Sat, Apr 18, 8:10 AM
Unknown Object (File)
Fri, Apr 17, 11:35 PM
Unknown Object (File)
Tue, Apr 7, 8:31 PM
Unknown Object (File)
Tue, Apr 7, 4:35 PM
Unknown Object (File)
Fri, Mar 27, 3:31 AM
Unknown Object (File)
Mar 10 2026, 3:12 PM
Unknown Object (File)
Mar 5 2026, 1:07 AM
Unknown Object (File)
Feb 28 2026, 5:22 PM
Subscribers

Details

Summary

pcm_chn_destroy() acts like a wrapper around chn_kill(), and
additionally calls a few more functions that should in fact be part of
chn_kill()'s logic. Merge pcm_chn_destroy()'s functionality in
chn_kill() to improve readability, as well as code layering.

While here, convert chn_kill() to void as it currently always returns 0.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

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