HomeFreeBSD

sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c

Description

sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c

Improve code layering. These are channel functions, and so they do not
belong in pcm/sound.c.

While here, assert in chn_ref() that new refcount won't be negative.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44985

(cherry picked from commit a24050e2b784e13561da3ab731a1db92f2e3366c)

Details

Provenance
christosAuthored on Apr 28 2024, 7:46 PM
Reviewer
markj
Differential Revision
D44985: sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c
Parents
rG532b1efd2d2e: sound: Merge pcm_chn_destroy() and chn_kill()
Branches
Unknown
Tags
Unknown