]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sound: Merge pcm_chn_destroy() and chn_kill()
authorChristos Margiolis <christos@FreeBSD.org>
Sun, 28 Apr 2024 19:46:08 +0000 (21:46 +0200)
committerChristos Margiolis <christos@FreeBSD.org>
Sun, 28 Apr 2024 19:48:24 +0000 (21:48 +0200)
commitb3ea087c05d8c75978a302cbb3fa92ce1afa3e49
treef0339adb0abb5cda1c7f50c1e9cb40cf868fb1f3
parent25723d66369fe6786e9e4f5f77381b944755f267
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
sys/dev/sound/pcm/channel.c
sys/dev/sound/pcm/channel.h
sys/dev/sound/pcm/sound.c
sys/dev/sound/pcm/sound.h
sys/dev/sound/pcm/vchan.c