genode/repos/dde_bsd/patches/attach.patch
Josef Söntgen e0f5cdacf0 dde_bsd: update audio driver to OpenBSD 7.1
This commit updates the driver from version 6.6 to 7.1. In contrast
to the old driver the new one will now probe all available HDA devices
and will drive the first usable one, e.g.:

```
[init -> audio_drv] azalia0 [8086:160c]
[init -> audio_drv] :
[init -> audio_drv] azalia0: no supported codecs
[init -> audio_drv] azalia1 [8086:9ca0]
[init -> audio_drv] :
[init -> audio_drv] azalia1: codecs: Realtek ALC292
[init -> audio_drv] audio0 at azalia1
```

Fixes #4629.
2022-10-12 12:09:36 +02:00

15 lines
318 B
Diff

To signal an successful attach attempt we set the ref counter
of the parent, i.e., the dummy pci bus and check that in our
'probe_cfdata' function.
--- a/dev/pci/azalia.c
+++ b/dev/pci/azalia.c
@@ -591,6 +591,7 @@
audio_attach_mi(&azalia_hw_if, sc, NULL, &sc->dev);
+ parent->dv_ref = 1;
return;
err_exit: