Skip to contentSkip to conversation

autoload snd-powermac via modalias

PATCH New Olaf Hering 1 participant 1 message Nov 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autoload snd-powermac via modalias

Autoload snd-powermac on systems without i2s bus by creating a fake modalias entry. udev/modprobe will use the 'modalias' file from /sys/devices/pci*/*/*/*:mac-io/*:davbus/ to find a matching module. Newer systems use snd-aoa, which provides the required modalias already.

Some systems with i2s bus, but without a 'layout-id' property, will not work with this patch because an fake i2s alias will conflict with snd-aoa.

---
 sound/ppc/powermac.c |   10 ++++++++++
 1 file changed, 10 insertions(+)
sound/ppc/powermac.c +10 -0
@@ -174,6 +174,16 @@ static struct platform_driver snd_pmac_d
 	},
 };
 
+/* for NewWorld AGP (Pismo, CRT iMac) */
+MODULE_ALIAS("of:NdavbusTsoundbusCdavbus");
+/* for OldWorld beige G3 */
+/* for NewWorld PCI (G3 and early G4) */
+MODULE_ALIAS("of:NdavbusTdavbus");
+/* for OldWorld ohare based */
+MODULE_ALIAS("of:NdavbusTsoundbus");
+/* for OldWorld bandit based */
+MODULE_ALIAS("of:NawacsTsound");
+
 static int __init alsa_card_pmac_init(void)
 {
 	int err;