Page MenuHomeFreeBSD

sound: Simplify channel creation and deletion process
ClosedPublic

Authored by christos on Sep 28 2024, 3:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 12:11 PM
Unknown Object (File)
Mon, Apr 20, 12:22 PM
Unknown Object (File)
Sun, Apr 19, 10:34 AM
Unknown Object (File)
Sun, Apr 19, 1:35 AM
Unknown Object (File)
Sat, Apr 18, 8:10 PM
Unknown Object (File)
Fri, Apr 17, 12:49 PM
Unknown Object (File)
Wed, Apr 15, 12:21 PM
Unknown Object (File)
Sat, Apr 11, 3:35 PM
Subscribers

Details

Summary

Currently we create and destroy channels with the following consistent
pattern:

  • chn_init() -> pcm_chn_add()
  • pcm_chn_remove() -> chn_kill()

Instead of calling two separate functions, merge pcm_chn_add() with
chn_init(), and pcm_chn_remove() with chn_kill().

Another benefit of this change is that we avoid the confusion caused by
having pcm_chn_add(), as well as pcm_addchan().

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable