ac97: Add AudioPCI GPIO readout

This commit is contained in:
RichardG867
2021-11-24 20:03:38 -03:00
parent 4a0218d1bd
commit b5f0dbf790
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -247,7 +247,7 @@ audiopci_probe()
/* Print controller information. */
printf("Found AudioPCI %04X revision %02X at bus %02X device %02X function %d\n", this_dev_id, rev, bus, dev, func);
printf("Subsystem ID is %04X:%04X\n", pci_readw(bus, dev, func, 0x2c), pci_readw(bus, dev, func, 0x2e));
printf("Subsystem ID [%04X:%04X]\n", pci_readw(bus, dev, func, 0x2c), pci_readw(bus, dev, func, 0x2e));
/* Get I/O BAR. */
printf("Main");
@@ -256,6 +256,8 @@ audiopci_probe()
if (!io_base)
return;
printf("GPIO readout [%02X]\n", inb(io_base | 0x02));
/* Perform codec probe. */
codec_probe(audiopci_codec_read, audiopci_codec_write);
}