HomeFreeBSD

sound: Move vchan-related code to pcm/vchan.*

Description

sound: Move vchan-related code to pcm/vchan.*

pcm/sound.* contains code that should be part of pcm/vchan.*.

Changes:

  • pcm_setvchans() -> vchan_setnew()
  • pcm_setmaxautovchans() -> vchan_setmaxauto()
  • hw.snd.maxautovchans moved to pcm/vchan.c
  • snd_maxautovchans declaration moved to pcm/vchan.h and definition to pcm/vchan.c

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

(cherry picked from commit 7ad5f383fcb507482d5606c8eb7a324b3621a9db)

Details

Provenance
christosAuthored on May 6 2024, 6:32 PM
Reviewer
dev_submerge.ch
Differential Revision
D45015: sound: Move vchan-related code to pcm/vchan.*
Parents
rG00b0cbf98bb7: sound: Use nitems() where possible
Branches
Unknown
Tags
Unknown