HomeFreeBSD

sound: Merge pcm_chn_create() and chn_init()

Description

sound: Merge pcm_chn_create() and chn_init()

Follow-up of b3ea087c05d8c75978a302cbb3fa92ce1afa3e49 ("sound: Merge
pcm_chn_destroy() and chn_kill()")

While here, add device_printf()'s to all failure points. Also fix an
existing bug where we'd unlock an already unlocked channel, in case we
went to "out" (now "out2") before locking the channel.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: dev_submerge.ch
Differential Revision: https://reviews.freebsd.org/D44993

(cherry picked from commit 2e9962ef57044b191431fe9228841e1415574d82)

Details

Provenance
christosAuthored on Mon, May 6, 6:26 PM
Reviewer
dev_submerge.ch
Differential Revision
D44993: sound: Merge pcm_chn_create() and chn_init()
Parents
rG0baaaf8543d5: sound: Remove chn_timeout check from chn_init()
Branches
Unknown
Tags
Unknown