[alsa-devel] [PATCH] PnP: Protocol for Media Vision Jazz16 sound cards

Rask Ingemann Lambertsen rask at sygehus.dk
Mon Apr 23 20:52:21 CEST 2007

On Sun, Apr 22, 2007 at 06:27:44PM +0200, Rene Herman wrote:
> The Intel 430TX and 440BX (which also uses the PIIX4 if I'm not mistaken) 
> were hugely popular chipsets in the later generation of boards that still 
> had ISA slots and given that noone will deperately want the MPU-401 IRQ 
> assigned; how would you feel about the attached? Just adds the preffered 
> options minus the MPU IRQ as the first acceptable. Works for me...

   Fine with me. Maybe the MPU IRQ should be omitted alltogether? You tell

   Thanks for the testing you've done.

> As to the PnP part; other than that IRQ9 thing everything also working fine 

   Aren't you having problems loading the module after a resource allocation
failure? I find that I need this additional patch to be able to retry:

--- linux-	2007-02-04 19:44:54.000000000 +0100
+++ linux-	2007-04-15 10:10:35.000000000 +0200
@@ -96,13 +96,13 @@
 		if (!(pnp_drv->flags & PNP_DRIVER_RES_DO_NOT_CHANGE)) {
 			error = pnp_activate_dev(pnp_dev);
 			if (error < 0)
-				return error;
+				goto fail;
 	} else if ((pnp_drv->flags & PNP_DRIVER_RES_DISABLE)
 		error = pnp_disable_dev(pnp_dev);
 		if (error < 0)
-			return error;
+			goto fail;
 	error = 0;
 	if (pnp_drv->probe) {

   Without it, the device stays attached to the driver. What happens is

	pnp_attach_device (device, driver);
	error = pnp_activate_dev(device);
	if (error < 0)
		return error;
	pnp_detach_device (device, driver);
	return error;

Rask Ingemann Lambertsen

More information about the Alsa-devel mailing list