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)
Fri, Jan 24, 5:20 PM
Unknown Object (File)
Wed, Jan 22, 11:04 AM
Unknown Object (File)
Sat, Jan 18, 9:34 PM
Unknown Object (File)
Fri, Jan 17, 11:28 PM
Unknown Object (File)
Dec 13 2024, 12:32 PM
Unknown Object (File)
Nov 29 2024, 7:05 AM
Unknown Object (File)
Nov 25 2024, 2:55 PM
Unknown Object (File)
Nov 18 2024, 5:02 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59645
Build 56532: arc lint + arc unit