Skip to contentSkip to conversation

2/3 miro: MPU-401 error action bugfix

PATCH New Martin Langer 1 participant 1 message Jun 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2/3 miro: MPU-401 error action bugfix

An if statement which executes snd_mpu401_uart_new() doesn't run the correct action if it fails. A line with an error message was missing. The patch completes the if statement by adding a message.

opti9xx/miro.c renamed from opti9xx/miro.c.1_miro_pcm20revE +1 -0
@@ -1330,6 +1330,7 @@
 		if ((error = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401,
 				miro->mpu_port, 0, miro->mpu_irq, SA_INTERRUPT,
 				&rmidi)))
+			snd_printk("no MPU-401 device at 0x%lx?\n", miro->mpu_port);
 
 	/* the aci mixer is muted after reset */