Hi,

the following patch fixes the compile time error for trident.c


Janek Hiis


--- trident.c   2001/10/09 16:07:26     1.152
+++ trident.c   2001/10/11 12:09:45
@@ -36,7 +36,9 @@
 static int snd_trident_pcm_mixer_build(trident_t *trident, snd_trident_voice_t * 
voice, snd_pcm_substream_t *substream);
 static int snd_trident_pcm_mixer_free(trident_t *trident, snd_trident_voice_t * 
voice, snd_pcm_substream_t *substream);
 static void snd_trident_interrupt(int irq, void *dev_id, struct pt_regs *regs);
+#ifdef CONFIG_PM
 static int snd_trident_set_power_state(snd_card_t *card, unsigned int power_state);
+#endif

 /*
  *  common I/O routines
@@ -3270,8 +3272,10 @@ int snd_trident_create(snd_card_t * card

        snd_trident_enable_eso(trident);

+#ifdef CONFIG_PM
        card->set_power_state = snd_trident_set_power_state;
        card->power_state_private_data = trident;
+#endif

        snd_trident_proc_init(trident);
        if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, trident, &ops)) < 0) {


_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to