HomeFreeBSD

sound: Merge pcm_chn_destroy() and chn_kill()

Description

sound: Merge pcm_chn_destroy() and chn_kill()

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
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44984

(cherry picked from commit b3ea087c05d8c75978a302cbb3fa92ce1afa3e49)

Details

Provenance
christosAuthored on Apr 28 2024, 7:46 PM
Reviewer
markj
Differential Revision
D44984: sound: Merge pcm_chn_destroy() and chn_kill()
Parents
rGad677fb457bb: sound: Retire unit.*
Branches
Unknown
Tags
Unknown