mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:27:34 +00:00
Kernel: Make PCI [Sub]ClassCode comparable to the corresponding ID enums
This commit is contained in:
parent
3273ef1e3f
commit
66647b58d4
5 changed files with 15 additions and 8 deletions
|
@ -71,7 +71,7 @@ UNMAP_AFTER_INIT void AudioManagement::enumerate_hardware_controllers()
|
|||
return;
|
||||
MUST(PCI::enumerate([&](PCI::DeviceIdentifier const& device_identifier) {
|
||||
// Only consider PCI multimedia devices
|
||||
if (device_identifier.class_code().value() != to_underlying(PCI::ClassID::Multimedia))
|
||||
if (device_identifier.class_code() != PCI::ClassID::Multimedia)
|
||||
return;
|
||||
|
||||
auto result = determine_audio_device(device_identifier);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue