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.
This commit is contained in:
parent
105519f79a
commit
c839d521c4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user