Skip to contentSkip to conversation

patch for maestro 2e

PATCH Georg Nikodym 1 participant 1 message Nov 14, 2000

lore
Share & tools
lore
#0 lore raw

I found that the maestro 2E sound hardware didn't want to make noise for me under 2.4. Today I got itchy and scratched. Here's a patch:

(keller) 1021$ bk diffs -u drivers/sound/maestro.c ===== drivers/sound/maestro.c 1.11 vs edited =====

drivers/sound/maestro.c +13 -0
@@ -3390,6 +3390,19 @@
 	
 	ess = &card->channels[0];
 
+	if (pci_enable_device(pcidev)) {
+		printk (KERN_ERR "maestro: pci_enable_device() failed\n");
+		for (i = 0; i < NR_DSPS; i++) {
+			struct ess_state *s = &card->channels[i];
+			if (s->dev_audio != -1)
+				unregister_sound_dsp(s->dev_audio);
+		}
+		release_region(card->iobase, 256);
+		unregister_reboot_notifier(&maestro_nb);
+		kfree(card);
+		return 0;
+	}
+
 	/*
 	 *	Ok card ready. Begin setup proper
 	 */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/