dde_bsd: update audio driver to OpenBSD 7.3

Fixes #4857.
This commit is contained in:
Josef Söntgen
2023-05-04 14:25:34 +02:00
committed by Christian Helmuth
parent 05e5ecca86
commit 03ed5fc3f4
7 changed files with 17 additions and 10 deletions

View File

@ -42,7 +42,7 @@ struct cdevsw cdevsw[] = {
audioioctl,
(int (*)(struct tty*, int)) enodev,
0,
audiopoll,
0,
0,
0,
0,
@ -59,8 +59,8 @@ struct device *config_found_sm(struct device *parent, void *aux, cfprint_t print
cfmatch_t submatch)
{
struct cfdata *cf = &cfdata[0];
struct cfattach *ca = cf->cf_attach;
struct cfdriver *cd = cf->cf_driver;
struct cfattach const *ca = cf->cf_attach;
struct cfdriver const *cd = cf->cf_driver;
int rv = ca->ca_match(parent, NULL, aux);
if (rv) {

View File

@ -61,12 +61,12 @@ int probe_cfdata(struct pci_attach_args *pa)
size_t i;
for (i = 0; i < ncd; i++) {
struct cfdata *cf = &cfdata[i];
struct cfdriver *cd = cf->cf_driver;
struct cfdriver const *cd = cf->cf_driver;
if (*cf->cf_parents != PCI_BUS_PARENT)
continue;
struct cfattach *ca = cf->cf_attach;
struct cfattach const *ca = cf->cf_attach;
if (!ca->ca_match)
continue;

View File

@ -64,6 +64,7 @@ DUMMY(0, klist_remove)
DUMMY(0, klist_remove_locked)
DUMMY(0, knote_modify)
DUMMY(0, knote_process)
DUMMY(0, knote_locked)
DUMMY(0, pci_findvendor)
DUMMY(0, pci_intr_disestablish)
DUMMY(0, pci_set_powerstate)

View File

@ -247,6 +247,12 @@ struct kevent
short filter;
};
struct klist;
void knote_locked(struct klist *list, long hint);
#include <sys/queue.h>
struct knote;