1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +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

@ -84,7 +84,9 @@ UNMAP_AFTER_INIT RefPtr<SB16> SB16::try_detect_and_create()
auto device_or_error = DeviceManagement::try_create_device<SB16>();
if (device_or_error.is_error())
return {};
return device_or_error.release_value();
auto device = device_or_error.release_value();
DeviceManagement::the().attach_audio_device(device);
return device;
}
UNMAP_AFTER_INIT void SB16::initialize()