1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:45:10 +00:00

Kernel: Teach DeviceManagement to handle multiple audio devices

This commit is contained in:
Jelle Raaijmakers 2021-11-23 01:12:19 +01:00 committed by Andreas Kling
parent 61d77274db
commit 1aafb6cd23
4 changed files with 9 additions and 9 deletions

View file

@ -318,9 +318,7 @@ void init_stage2(void*)
(void)RandomDevice::must_create().leak_ref();
PTYMultiplexer::initialize();
// FIXME: Once we have a singleton for managing many sound cards, remove this from here
if (auto device = SB16::try_detect_and_create(); !!device)
DeviceManagement::the().attach_sb16_device(*device);
SB16::try_detect_and_create();
StorageManagement::the().initialize(kernel_command_line().root_device(), kernel_command_line().is_force_pio());
if (VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem()).is_error()) {