Opened 10 years ago

Last modified 6 years ago

#6798 new bug

Master Ticket: Updating audio drivers to co-exist with OpenSound — at Initial Version

Reported by: mmadia Owned by: korli
Priority: normal Milestone: Unscheduled
Component: Drivers/Audio/OpenSound Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is a master ticket for tracking the updates of the various audio drivers, such that they can co-exist with OpenSound. (un)reserve_device needs to be utilized by Haiku's drivers, such as browser:haiku/trunk/src/add-ons/kernel/drivers/audio/hda/driver.cpp#L56

		if (info.class_base == PCI_multimedia
			&& info.class_sub == PCI_hd_audio) {
#ifdef __HAIKU__
			if ((*gPci->reserve_device)(info.bus, info.device, info.function, "hda",
				&gCards[gNumCards]) < B_OK) {
				dprintf("HDA: Failed to reserve PCI:%d:%d:%d\n",
					info.bus, info.device, info.function);
				continue;
			}
#endif

and browser:haiku/trunk/src/add-ons/kernel/drivers/audio/hda/driver.cpp#L95

#ifdef __HAIKU__
		(*gPci->unreserve_device)(gCards[i].pci_info.bus, gCards[i].pci_info.device,
			gCards[i].pci_info.function, "hda", &gCards[i]);
#endif

Change History (0)

Note: See TracTickets for help on using tickets.