diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-11-23 01:12:19 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-23 10:06:24 +0100 |
commit | 1aafb6cd2377f5456bd0cfa863049fa33f58b87a (patch) | |
tree | ea8e83b75de108d75fdb1fbe7cb7493e35c65e3a /Kernel/init.cpp | |
parent | 61d77274dbf8fab867906088bb5aa83a40edfff2 (diff) | |
download | serenity-1aafb6cd2377f5456bd0cfa863049fa33f58b87a.zip |
Kernel: Teach DeviceManagement to handle multiple audio devices
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index ddc2d7d86d..32a504d2e9 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -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()) { |