From c839d521c43148f7202006dd6048ba4faad80467 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 16 Aug 2020 21:45:47 +0200 Subject: [PATCH] auich: Always enable PCI bus mastering. Without it, the device can't operate at all. Whether or not this is enabled already is firmware dependent. It was off under QEMU when used with "-soundhw ac97" and this makes the driver work there. Fixes #10551 where the syslog shows that this can also happen on real hardware that is otherwise fully configured. --- src/add-ons/kernel/drivers/audio/ac97/auich/auich.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c b/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c index c8aa86a012..44a66e3096 100644 --- a/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c +++ b/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c @@ -676,6 +676,7 @@ auich_setup(auich_dev * card) cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2); PRINT(("PCI command before: %x\n", cmd)); + cmd |= PCI_command_master; if (IS_ICH4(&card->config)) { (*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_memory);