[haiku-commits] haiku: hrev54505 - src/add-ons/kernel/drivers/audio/ac97/auich

  • From: Michael Lotz <mmlr@xxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 16 Aug 2020 18:45:00 -0400 (EDT)

hrev54505 adds 1 changeset to branch 'master'
old head: 105519f79a7feb2ce519d078486412f65043842a
new head: c839d521c43148f7202006dd6048ba4faad80467
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=c839d521c431+%5E105519f79a7f

----------------------------------------------------------------------------

c839d521c431: 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.

                                            [ Michael Lotz <mmlr@xxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54505
Commit:      c839d521c43148f7202006dd6048ba4faad80467
URL:         https://git.haiku-os.org/haiku/commit/?id=c839d521c431
Author:      Michael Lotz <mmlr@xxxxxxxx>
Date:        Sun Aug 16 19:45:47 2020 UTC

Ticket:      https://dev.haiku-os.org/ticket/10551

----------------------------------------------------------------------------

1 file changed, 1 insertion(+)
src/add-ons/kernel/drivers/audio/ac97/auich/auich.c | 1 +

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c 
b/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c
index c8aa86a012..44a66e3096 100644
--- a/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c
+++ b/src/add-ons/kernel/drivers/audio/ac97/auich/auich.c
@@ -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);


Other related posts:

  • » [haiku-commits] haiku: hrev54505 - src/add-ons/kernel/drivers/audio/ac97/auich - Michael Lotz