Hello !
I tested yours advices in a script and this is the result (curiously, 
the command modprobe has not writting in the file result but there 
produce always the same message : error inserting... no such device).
The problem is that the command 00:10 (the NCTRL port) is not active but 
close, and I can't active it ! Have I forgot how do ? I don't believe...
# = command in root mode (or coment)

# cat /etc/modprobe.d/sound
    # alias snd-card-0 snd-cs4232 (coment line)
    # alias sound-slot-0 snd-cs4232 (coment line)
# modprobe snd-cs4236 isapnp=0 port=0x530 cport=Ox210 irq=5 dma1=1 dma2=0
# modprobe snd-cs4236 isapnp=0 port=0x534 cport=Ox210 irq=5 dma1=1 dma2=0
# modprobe snd-cs4232
# modprobe snd-cs4236
# cat /sys/devices/pnp0/00:0f/id
CSC0010
# cat /sys/devices/pnp0/00:0f/options
Dependent: 01 - Priority acceptable
    port 0x210-0x210, align 0xf, size 0x8, 16-bit address decoding
Dependent: 02 - Priority acceptable
    port 0x340-0x340, align 0xf, size 0x8, 16-bit address decoding
Dependent: 03 - Priority acceptable
    port 0x540-0x540, align 0xf, size 0x8, 16-bit address decoding
Dependent: 04 - Priority acceptable
    port 0x120-0x120, align 0xf, size 0x8, 16-bit address decoding
# cat /sys/devices/pnp0/00:0f/resources
state = active
io 0x210-0x217
# cat /sys/devices/pnp0/00:10/id
CSC0000
# cat /sys/devices/pnp0/00:10/options
Dependent: 01 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 02 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 03 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 04 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 05 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x398-0x398, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 06 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x398-0x398, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 07 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x3a8-0x3a8, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 08 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x3a8-0x3a8, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 09 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x3b8-0x3b8, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 10 - Priority acceptable
    port 0x530-0x530, align 0x3, size 0x8, 16-bit address decoding
    port 0x3b8-0x3b8, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 11 - Priority acceptable
    port 0x604-0x604, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 12 - Priority acceptable
    port 0x604-0x604, align 0x3, size 0x8, 16-bit address decoding
    port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
Dependent: 13 - Priority acceptable
    port 0x604-0x604, align 0x3, size 0x8, 16-bit address decoding
    port 0x398-0x398, align 0x7, size 0x4, 16-bit address decoding
    port 0x220-0x280, align 0x1f, size 0x10, 16-bit address decoding
    irq 5,7,2/9,11,15 High-Edge
    dma 0,1,3 8-bit compatible
    dma 0,1,3 8-bit compatible
Dependent: 14 - Priority acceptable
# cat /sys/devices/pnp0/00:10/resources
state = disabled
io 0x530-0x537
io 0x388-0x38b
io 0x220-0x22f
irq 5
dma 1
dma 0
# modprobe snd-cs4232 isapnp=0 port=0x530 cport=0x210 irq=5 dma1=1 dma2=0

And a dmesg indicate this :
[4317362.523000] CS4236+ soundcard not found or device busy
[4317363.250000] **** SET: Misaligned resource pointer: c0892242 Type 04 
Len 42
[4317363.253000] **** SET: Misaligned resource pointer: c08922c6 Type 00 
Len 42
[4317363.255000] **** SET: Misaligned resource pointer: c089234a Type 01 
Len 42
[4317363.399000] pnp: Device 00:10 activated.
[4317363.401000] ALSA 
/home/hulin/alsa-driver-1.0.11rc5/isa/cs423x/../../alsa-kernel/isa/cs423x/cs4236.c:294:
 
CS4232 WSS PnP manual resources are invalid, using auto config
[4317363.406000] CS4232 WSS PnP configure failed for WSS (out of resources?)
[4317363.408000] PnP BIOS detection failed for CS4232
[4317363.421000] pnp: Device 00:10 disabled.
[4317363.423000] cs4232-pnpbios: probe of 00:10 failed with error -16
[4317363.438000] CS4232 soundcard not found or device busy

Thanks,
Thibaud.

Rene Herman a écrit :
 > Hulin Thibaud wrote:
 >
 >>>     cat /sys/devices/pnp0/00:0f/resources
 >> I obtain :
 >> state = active
 >> io 0x210-0x217
 >
 >>>     cat /sys/devices/pnp0/00:10/resources
 >> OK, I actived that and I obtain with the cat command :
 >> state = active
 >> io 0x530-0x537
 >> io 0x388-0x38b
 >> io 0x220-0x22f
 >> irq 5
 >> dma 1
 >> dma 0
 >
 > In a previous post you showed 00:0f to be the codec (to have id CSC0000,
 > that is) and 00:10 to be the CTRL port (CSC0010). Seems like it's the
 > other way around now...
 >
 >> I used sudo modprobe snd-cs4236 isapnp=0 port=0x530 cport=0x388 irq=5
 >> dma1=1 dma2=0
 >
 > Try:
 >
 > modprobe snd-cs4236 isapnp=0 port=0x530 cport=0x210 irq=5 dma1=1 dma2=0
 >
 > With both devices actived as you showed above, this should really work.
 > If not, also try 0x534 instead of 0x530 for the port= value; I remember
 > some confusion there with sometimes a +4 offset and sometimes not.
 >
 > That 0x388 is just the onboard OPL3 -- you can ignore it, or pass it as
 > fm_port=0x388. sb_port=0x220 can also be passed, but isn't necessary 
either.
 >
 >> And with snd-cs4232 :
 >> ALSA
 >> 
/home/hulin/alsa-driver-1.0.11rc5/isa/cs423x/../../alsa-kernel/isa/cs423x/cs4236.x:294:
 

 >> CS4232 WSS PnP manual resources are invalid, using auto config
 >> CS4232 WSS PnP configure failed for WSS (out of resources ?)
 >> PnP BIOS detection failed for CS4232
 >> CS4232 soundcard not found or device busy
 >> FATAL: Error inserting snd_cs4232
 >> (/lib/modules/2.6.15-23-386/kernel/sound/isa/cs423x/snd-cs4232.ko): No
 >> such device
 >
 > With just "modprobe snd-cs4232", or using the same parameters as above
 > with snd-cs4236? (please also comment out any paramters you may have
 > placed in /etc/modprobe.conf or /etc/modprobe.d/sound while you try)
 >
 > With the 1.0.11-rc5 driver, things should be detected. Unless ofcourse
 > the device IDs really are swapped between codec and CTRL port; this
 > would be very odd. snd-cs4232 expects CSC0000 (or CSC0100 or GIM0100)
 > to be the codec. CSC0010 is always the CTRL port...
 >
 > Please verify by supplying the output of:
 >
 > cat /sys/devices/pnp0/00:0f/id
 > cat /sys/devices/pnp0/00:0f/options
 > cat /sys/devices/pnp0/00:0f/resources
 >
 > cat /sys/devices/pnp0/00:10/id
 > cat /sys/devices/pnp0/00:10/options
 > cat /sys/devices/pnp0/00:10/resources
 >
 > If there really is something odd there, we can add your IDs to
 > snd-cs4236 in the future.
 >
 > You have now installed the 1.0.11-rc5 drivers onto your system (why -rc5
 > and not 1.0.11 final, by the way?). Given that the 1.0.11-rc5 snd-cs4232
 > thinks it should be driving CSC0000 you'd probably still get complaints
 > about PnP failures, but:
 >
 > modprobe snd-cs4232 isapnp=0 port=0x530 cport=0x210 irq=5 dma1=1 dma2=0
 >
 > should still work as well. It's better to use snd-cs4236 though. After
 > things work, I'll be sure to get PnP BIOS support with these IDs into
 > snd-cs4236 as well. For now, specifying the values hopefully works okay.
 >
 > Rene.
 >
 >
 >
 > _______________________________________________
 > Alsa-user mailing list
 > Alsa-user@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/alsa-user
 >
 >



_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to