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
Unknown Object (File)
Tue, Mar 10, 3:12 PM
Unknown Object (File)
Thu, Mar 5, 1:07 AM
Unknown Object (File)
Sat, Feb 28, 5:22 PM
Unknown Object (File)
Sat, Feb 28, 12:42 PM
Unknown Object (File)
Feb 8 2026, 10:15 AM
Unknown Object (File)
Feb 8 2026, 7:04 AM
Unknown Object (File)
Jan 31 2026, 8:12 AM
Unknown Object (File)
Dec 28 2025, 7:03 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 Not Applicable
Unit
Tests Not Applicable