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)
Wed, Oct 15, 3:29 PM
Unknown Object (File)
Wed, Oct 15, 4:35 AM
Unknown Object (File)
Wed, Oct 15, 4:35 AM
Unknown Object (File)
Wed, Oct 15, 4:34 AM
Unknown Object (File)
Tue, Oct 14, 7:05 PM
Unknown Object (File)
Sun, Oct 12, 8:42 PM
Unknown Object (File)
Sat, Oct 4, 4:13 AM
Unknown Object (File)
Wed, Sep 24, 9:32 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57418
Build 54306: arc lint + arc unit