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

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
rGb3ea087c05d8: sound: Merge pcm_chn_destroy() and chn_kill()
Branches
Unknown
Tags
Unknown