[alsa-devel] cmi8330: fix MPU-401 PnP init copy&paste bug

Ondrej Zary linux at rainbow-software.org
Sat Jun 27 16:17:08 CEST 2009


Fix copy&paste bug in PnP MPU-401 initialization.

Signed-off-by: Ondrej Zary <linux at rainbow-software.org>

--- linux-2.6.30-orig/sound/isa/cmi8330.c	2009-06-10 05:05:27.000000000 +0200
+++ linux-test/sound/isa/cmi8330.c	2009-06-27 13:37:56.000000000 +0200
@@ -338,7 +338,7 @@
 		return -EBUSY;
 
 	acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL);
-	if (acard->play == NULL)
+	if (acard->mpu == NULL)
 		return -EBUSY;
 
 	pdev = acard->cap;

-- 
Ondrej Zary


More information about the Alsa-devel mailing list