Update of /cvsroot/alsa/alsa-driver/support/pnp
In directory sc8-pr-cvs1:/tmp/cvs-serv9068
Modified Files:
pnp.c
Log Message:
call isapnp prepare callback in pnp_manual_config_dev().
this ensures the sane device configuration and fixes the problem
of SBAWE cards.
Index: pnp.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/support/pnp/pnp.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- pnp.c 19 May 2003 08:24:51 -0000 1.10
+++ pnp.c 8 Jul 2003 13:37:40 -0000 1.11
@@ -319,9 +319,14 @@
}
}
+/* FIXME: this function cannot be called many times. the setting is cleared at each
time */
int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int
mode)
{
unsigned int idx;
+ int err;
+
+ /* prepare the isapnp */
+ err = dev->p.prepare((struct isapnp_dev *)dev);
for (idx = 0; idx < PNP_MAX_IRQ; idx++)
copy_resource(&dev->p.irq_resource[idx], &res->irq_resource[idx]);
@@ -357,8 +362,6 @@
for (idx = 0; idx < PNP_MAX_MEM; idx++)
copy_resource(&tmp->mem_resource[idx], &dev->p.resource[idx+8]);
- /* prepare the isapnp to get the range of resources */
- dev->p.prepare((struct isapnp_dev *)dev);
/* restore the manual configuration again */
pnp_manual_config_dev(dev, tmp, 0);
kfree(tmp);
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog