git: 2fb5f137668c - stable/14 - sound: Include ai2s and davbus for PowerPC

From: Jose Luis Duran <jlduran_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 01:45:59 UTC
The branch stable/14 has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=2fb5f137668c56bce084b5dda948724be96cf15e

commit 2fb5f137668c56bce084b5dda948724be96cf15e
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2024-11-10 02:44:14 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2024-11-19 01:19:20 +0000

    sound: Include ai2s and davbus for PowerPC
    
    Include PowerPC ai2s and davbus sound modules in the metadriver.
    
    Reviewed by:    christos, emaste
    Approved by:    emaste (mentor)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D47467
    
    (cherry picked from commit cdd3234186b19e1b9d7cfc985ef8d247552b0f11)
---
 sys/dev/sound/driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/dev/sound/driver.c b/sys/dev/sound/driver.c
index b9d530dce921..7fcc86c63c5e 100644
--- a/sys/dev/sound/driver.c
+++ b/sys/dev/sound/driver.c
@@ -55,6 +55,9 @@ static moduledata_t snd_mod = {
 DECLARE_MODULE(snd_driver, snd_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
 MODULE_VERSION(snd_driver, 1);
 
+#if defined(__powerpc__)
+MODULE_DEPEND(snd_driver, snd_ai2s, 1, 1, 1);
+#endif
 MODULE_DEPEND(snd_driver, snd_als4000, 1, 1, 1);
 MODULE_DEPEND(snd_driver, snd_atiixp, 1, 1, 1);
 #if defined(__i386__) || defined(__amd64__)
@@ -63,6 +66,9 @@ MODULE_DEPEND(snd_driver, snd_cmi, 1, 1, 1);
 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);
+#if defined(__powerpc__)
+MODULE_DEPEND(snd_driver, snd_davbus, 1, 1, 1);
+#endif
 MODULE_DEPEND(snd_driver, snd_emu10kx, 1, 1, 1);
 MODULE_DEPEND(snd_driver, snd_envy24, 1, 1, 1);
 MODULE_DEPEND(snd_driver, snd_envy24ht, 1, 1, 1);