Disabled HDA MSI for now again.
* At least on my hardware, audio becomes a bit flaky (ie. sometimes it would just stop doing anything at all).
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
#define ALIGN(size, align) (((size) + align - 1) & ~(align - 1))
|
#define ALIGN(size, align) (((size) + align - 1) & ~(align - 1))
|
||||||
#define PAGE_ALIGN(size) (((size) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1))
|
#define PAGE_ALIGN(size) (((size) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1))
|
||||||
|
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
uint32 multi_rate;
|
uint32 multi_rate;
|
||||||
uint32 hw_rate;
|
uint32 hw_rate;
|
||||||
@@ -54,6 +55,7 @@ static const struct {
|
|||||||
// {B_SR_384000, MAKE_RATE(44100, ??, ??), 384000},
|
// {B_SR_384000, MAKE_RATE(44100, ??, ??), 384000},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static pci_x86_module_info* sPCIx86Module;
|
static pci_x86_module_info* sPCIx86Module;
|
||||||
|
|
||||||
|
|
||||||
@@ -830,6 +832,9 @@ hda_hw_init(hda_controller* controller)
|
|||||||
controller->irq = controller->pci_info.u.h0.interrupt_line;
|
controller->irq = controller->pci_info.u.h0.interrupt_line;
|
||||||
controller->msi = false;
|
controller->msi = false;
|
||||||
|
|
||||||
|
// TODO: temporarily disabled, as at least on my hardware audio becomes
|
||||||
|
// flaky after this.
|
||||||
|
/*
|
||||||
if (sPCIx86Module != NULL && sPCIx86Module->get_msi_count(
|
if (sPCIx86Module != NULL && sPCIx86Module->get_msi_count(
|
||||||
controller->pci_info.bus, controller->pci_info.device,
|
controller->pci_info.bus, controller->pci_info.device,
|
||||||
controller->pci_info.function) >= 1) {
|
controller->pci_info.function) >= 1) {
|
||||||
@@ -846,6 +851,7 @@ hda_hw_init(hda_controller* controller)
|
|||||||
controller->msi = true;
|
controller->msi = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
status = install_io_interrupt_handler(controller->irq,
|
status = install_io_interrupt_handler(controller->irq,
|
||||||
(interrupt_handler)hda_interrupt_handler, controller, 0);
|
(interrupt_handler)hda_interrupt_handler, controller, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user