--- linux-2.4.5ac/drivers/sound/trident.c.orig Tue Jun 12 16:31:13 2001 +++ linux-2.4.5ac/drivers/sound/trident.c Thu Jun 14 18:33:34 2001 @@ -136,11 +136,15 @@ #include #include +#if defined CONFIG_ALPHA_NAUTILUS || CONFIG_ALPHA_GENERIC +#include +#endif + #include "trident.h" #include -#define DRIVER_VERSION "0.14.6" +#define DRIVER_VERSION "0.14.7a" /* magic numbers to protect our data structures */ #define TRIDENT_CARD_MAGIC 0x5072696E /* "Prin" */ @@ -3607,10 +3611,17 @@ if (card->pci_id == PCI_DEVICE_ID_ALI_5451) { /* edited by HMSEO for GT sound */ -#ifdef CONFIG_ALPHA_NAUTILUS +#if defined CONFIG_ALPHA_NAUTILUS || CONFIG_ALPHA_GENERIC u16 ac97_data; - ac97_data = ali_ac97_get (card->ac97_codec[0], AC97_POWER_CONTROL); - ali_ac97_set (card->ac97_codec[0], AC97_POWER_CONTROL, ac97_data | ALI_EAPD_POWER_DOWN); + extern struct hwrpb_struct *hwrpb; + + if ((hwrpb->sys_type) == 201) { + printk(KERN_INFO "trident: Running on Alpha system type Nautilus\n"); + ac97_data = ali_ac97_get (card->ac97_codec[0], + AC97_POWER_CONTROL); + ali_ac97_set (card->ac97_codec[0], AC97_POWER_CONTROL, + ac97_data | ALI_EAPD_POWER_DOWN); + } #endif /* edited by HMSEO for GT sound*/ }