[alsa-devel] [PATCH -mm] sound/pci/trident/trident_synth.c remove unused code

Michal Piotrowski michal.k.k.piotrowski at gmail.com
Sun Mar 25 17:52:50 CEST 2007


This patch is against the latest -mm snapshot.

Regards,
Michal

-- 
Michal K. K. Piotrowski
LTG - Linux Testers Group (PL)
(http://www.stardust.webpages.pl/ltg/)
LTG - Linux Testers Group (EN)
(http://www.stardust.webpages.pl/linux_testers_group_en/)

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski at gmail.com>

--- linux-work5/sound/pci/trident/trident_synth.c	2007-02-04 19:44:54.000000000 +0100
+++ linux-work3/sound/pci/trident/trident_synth.c	2007-03-25 00:41:40.000000000 +0100
@@ -772,19 +772,7 @@ static int snd_trident_synth_use(void *p
 		voice->Vol = 0x3ff;
 		voice->EC = 0x0fff;
 	}
-#if 0
-	for (idx = 0; idx < info->midi_voices; idx++) {
-		port->midi_has_voices = 1;
-		voice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_MIDI, info->sender.client, info->sender.port);
-		if (voice == NULL) {
-			snd_trident_synth_free_voices(trident, info->sender.client, info->sender.port);
-			spin_unlock_irqrestore(&trident->reg_lock, flags);
-			return -EBUSY;
-		}
-		voice->Vol = 0x3ff;
-		voice->EC = 0x0fff;
-	}
-#endif
+
 	spin_unlock_irqrestore(&trident->reg_lock, flags);
 	return 0;
 }



More information about the Alsa-devel mailing list