From de62b051e4f059d8ebe04e4df7e64afa03f4626a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 5 Nov 2012 10:02:13 +0100 Subject: [PATCH] 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). --- src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp index c101540068..533e91e8b2 100644 --- a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp +++ b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp @@ -34,6 +34,7 @@ #define ALIGN(size, align) (((size) + align - 1) & ~(align - 1)) #define PAGE_ALIGN(size) (((size) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1)) + static const struct { uint32 multi_rate; uint32 hw_rate; @@ -54,6 +55,7 @@ static const struct { // {B_SR_384000, MAKE_RATE(44100, ??, ??), 384000}, }; + 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->msi = false; + // TODO: temporarily disabled, as at least on my hardware audio becomes + // flaky after this. +/* if (sPCIx86Module != NULL && sPCIx86Module->get_msi_count( controller->pci_info.bus, controller->pci_info.device, controller->pci_info.function) >= 1) { @@ -846,6 +851,7 @@ hda_hw_init(hda_controller* controller) controller->msi = true; } } +*/ status = install_io_interrupt_handler(controller->irq, (interrupt_handler)hda_interrupt_handler, controller, 0);