mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
sound: Include snd_cmi only for i386 and amd64
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.
Reviewed by: christos, emaste
Approved by: emaste (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D47399
This commit is contained in:
parent
c477d89743
commit
0187bc8a47
1 changed files with 2 additions and 0 deletions
|
|
@ -57,7 +57,9 @@ MODULE_VERSION(snd_driver, 1);
|
|||
|
||||
MODULE_DEPEND(snd_driver, snd_als4000, 1, 1, 1);
|
||||
MODULE_DEPEND(snd_driver, snd_atiixp, 1, 1, 1);
|
||||
#if defined(__i386__) || defined(__amd64__)
|
||||
MODULE_DEPEND(snd_driver, snd_cmi, 1, 1, 1);
|
||||
#endif
|
||||
MODULE_DEPEND(snd_driver, snd_cs4281, 1, 1, 1);
|
||||
MODULE_DEPEND(snd_driver, snd_csa, 1, 1, 1);
|
||||
MODULE_DEPEND(snd_driver, snd_csapcm, 1, 1, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue