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)
Thu, Apr 3, 10:24 AM
Unknown Object (File)
Feb 23 2025, 7:16 PM
Unknown Object (File)
Feb 14 2025, 7:17 AM
Unknown Object (File)
Feb 13 2025, 8:17 AM
Unknown Object (File)
Jan 10 2025, 5:50 AM
Unknown Object (File)
Dec 25 2024, 9:13 PM
Unknown Object (File)
Nov 19 2024, 12:45 PM
Unknown Object (File)
Nov 19 2024, 10:46 AM
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