Page MenuHomeFreeBSD

sound: Include snd_cmi only for i386 and amd64
ClosedPublic

Authored by jlduran on Sat, Nov 2, 2:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 12:55 PM
Unknown Object (File)
Sat, Nov 16, 11:43 AM
Unknown Object (File)
Sat, Nov 16, 9:43 AM
Unknown Object (File)
Tue, Nov 5, 5:01 PM
Unknown Object (File)
Mon, Nov 4, 10:45 PM
Unknown Object (File)
Sat, Nov 2, 3:04 AM
Unknown Object (File)
Sat, Nov 2, 2:54 AM
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.Sun, Nov 3, 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