Re: mss.c pcm fix to ' attach returned 6 ' load failure for v5.x acpi and up

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 12 Jul 2005 10:44:00 -0400
On Monday 11 July 2005 05:20 pm, Harry Coin wrote:
> John,
>
> 1) Indeed the mss driver just ignores the further logical devices the chip
> offers -- which is most likely the right thing to do.
> Logical device 0 is the WSS codec, Synthesizer, and alternate Sound Blaster
> pro interface.  Handled by MSS.c
> Logical device 1 is a game port.  2 is a 'master chip control' device
> (defaults all are ok I think).  3 is an MPU-401 midi, 4 (not enabled) is a
> CD Rom controller, 5 (not enabled) is a modem.  The data sheet for the
> CS4236B is available online.  I'll send it as a private attachment in an
> email.
>
> 3) Give me a clue or a doc ref about how to apply the RCS / diff patch you
> sent me.

There's a 'patch' command to apply patches, but after looking at your 
acpidump, it wouldn't fix the problem anyway.  Now, when ACPI is enabled, the 
pnpmss driver doesn't probe the device IIRC?  It may be that when ACPI is 
being used, support for ISA PnP cards is just completely broken and mss(4)'s 
hacks in its non-PnP attachment happent to sort of work by accident.  In 
fact, this device really shouldn't be attaching to ACPI at all.  All ACPI 
devices have PNP IDs.  Can you try this patch instad of the earlier one?

Index: mss.c
===================================================================
RCS file: /usr/cvs/src/sys/dev/sound/isa/mss.c,v
retrieving revision 1.95
diff -u -r1.95 mss.c
--- mss.c       27 Feb 2005 23:32:21 -0000      1.95
+++ mss.c       12 Jul 2005 14:34:55 -0000
_at__at_ -1883,7 +1883,6 _at__at_
 };

 DRIVER_MODULE(snd_mss, isa, mss_driver, pcm_devclass, 0, 0);
-DRIVER_MODULE(snd_mss, acpi, mss_driver, pcm_devclass, 0, 0);
 MODULE_DEPEND(snd_mss, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
 MODULE_VERSION(snd_mss, 1);


-- 
John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Tue Jul 12 2005 - 16:31:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC