Page MenuHomeFreeBSD

sound: Include snd_cmi only for i386 and amd64
ClosedPublic

Authored by jlduran on Nov 2 2024, 2:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 12:17 PM
Unknown Object (File)
Sun, Dec 8, 11:38 PM
Unknown Object (File)
Sun, Dec 8, 1:29 PM
Unknown Object (File)
Nov 16 2024, 12:55 PM
Unknown Object (File)
Nov 16 2024, 11:43 AM
Unknown Object (File)
Nov 16 2024, 9:43 AM
Unknown Object (File)
Nov 5 2024, 5:01 PM
Unknown Object (File)
Nov 4 2024, 10:45 PM
Subscribers

Details

Summary

When running FreeBSD on an arm64/aarch64 QEMU virtual machine, using the
Intel HD Audio Controller (ich6) (intel-hda), for example, and by
following the procedure in the handbook ("Setting Up the Sound Card"):

kldload snd_driver

The following error is shown:

KLD snd_driver.ko: depends on snd_cmi - not available or version mismatch

This is because the CMedia sound driver (snd_cmi) is only built for i386
and amd64.

Add the same guards to the snd_driver metadriver.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The metadriver is also missing snd_emu10k1.
PowerPC has ai2s and davbus which can also be included in the snd_driver metadriver with similar guards, effectively replicating sys/modules/sound/driver/Makefile.

LGTM, feel free to propose the patch for ai2s and davbus. :)

This revision is now accepted and ready to land.Nov 3 2024, 5:27 PM

LGTM, feel free to propose the patch for ai2s and davbus. :)

Will do, thank you!

LGTM, feel free to propose the patch for ai2s and davbus. :)

https://reviews.freebsd.org/D47467