es1370: Always enable PCI bus mastering.
Makes the device work under QEMU with "-soundhw es1370".
This commit is contained in:
@@ -452,7 +452,9 @@ es1370_setup(es1370_dev * card)
|
|||||||
|
|
||||||
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
|
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
|
||||||
PRINT(("PCI command before: %x\n", cmd));
|
PRINT(("PCI command before: %x\n", cmd));
|
||||||
(*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_io);
|
(*pci->write_pci_config)(card->info.bus, card->info.device,
|
||||||
|
card->info.function, PCI_command, 2,
|
||||||
|
cmd | PCI_command_master | PCI_command_io);
|
||||||
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
|
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
|
||||||
PRINT(("PCI command after: %x\n", cmd));
|
PRINT(("PCI command after: %x\n", cmd));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user