1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

Kernel: Add some more PCI [Sub]Class IDs

This commit is contained in:
Hendiadyoin1 2023-09-11 16:02:45 +02:00 committed by Andrew Kaster
parent 66647b58d4
commit 693f3ad33e
3 changed files with 78 additions and 11 deletions

View file

@ -20,7 +20,7 @@ namespace Kernel::Audio::IntelHDA {
UNMAP_AFTER_INIT ErrorOr<bool> Controller::probe(PCI::DeviceIdentifier const& device_identifier)
{
VERIFY(device_identifier.class_code() == PCI::ClassID::Multimedia);
return device_identifier.subclass_code() == PCI::Multimedia::SubclassID::HDACompatibleController;
return device_identifier.subclass_code() == PCI::Multimedia::SubclassID::HDACompatible;
}
UNMAP_AFTER_INIT ErrorOr<NonnullRefPtr<AudioController>> Controller::create(PCI::DeviceIdentifier const& pci_device_identifier)