* Help configuring a CS4236 to work with Linux
@ 2003-06-09 22:07 Simon J Mudd
2003-06-10 4:27 ` rautenkranzmt
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Simon J Mudd @ 2003-06-09 22:07 UTC (permalink / raw)
To: linux-sound
This list looks by the archives to be quiet. However i'm not really sure
where else to post to get help solving this problem. If there's a better
list please let me know.
I need help configuring a cs4236 WSS/SB on motherboard (2a6ilpca) TL-SI21-2M
03/25/1999-SiS-5600-2A6ILPCAC-00.
I've spent some time looking at this but can't find the right combination
to make things work.
Currently running RedHat 9 with 2.4.20
Symptoms:
Redhat's sndconfig produces output (appears to be ok), but
mpg321 somefile.mp3 gives:
ad1848: Auto calibration timed out (3)
Sound: DMA (output) timed out - IRQ/DRQ config error?
and then I get a hard hang. Reset to reboot is necessary.
I've been Googling and found lots of things, but no changes to the
current script seem to produce different results:
# [0] doesn't work
# [1] doesn't work
# [2] doesn't work
insmod soundcore
insmod sound
insmod ad1848
insmod uart401
#insmod cs4232 isapnp=1 [0]
#insmod mpu401 io=0x330 irq\x11 [1]
#insmod cs4232 isapnp=0 io=0x534 irq=9 dma=1 dma2=0 mpuirq\x11 mpuio=0x330 [1]
#insmod cs4232 isapnp=0 io=0x534 irq=9 dma=1 dma2=0 [2]
insmod cs4232 isapnp=0 io=0x534 irq=9 dma=1 dma2=3
insmod opl3 io=0x388
If anyone has got this motherboard and got the sound working under
Linux please contact me with your working configuration.
Current Config:
---------------
KERNEL VERSION:
Linux nl.WL0.org 2.4.20-13.9 #1 Mon May 12 10:55:37 EDT 2003 i686 i686 i386 GNU/Linux
MODULES:
Module Size Used by Not tainted
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
tun 5696 3 (autoclean)
autofs 13268 0 (autoclean) (unused)
airo 49672 1
8139too 18120 1
mii 3976 0 [8139too]
iptable_nat 21752 1 (autoclean)
ip_conntrack 27272 1 (autoclean) [iptable_nat]
iptable_filter 2412 1 (autoclean)
ip_tables 15096 4 [iptable_nat iptable_filter]
cs4232 5444 0
ad1848 28588 0 [cs4232]
uart401 8388 0 [cs4232]
sound 74228 0 [cs4232 ad1848 uart401]
soundcore 6404 4 [sound]
loop 12152 0 (autoclean)
lvm-mod 64000 0
keybdev 2976 0 (unused)
mousedev 5556 0 (unused)
hid 22244 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-ohci 21512 0 (unused)
usbcore 79040 1 [hid usb-ohci]
ext3 70784 5
jbd 51892 5 [ext3]
DMA:
1: Crystal audio controller
3: Crystal audio controller
4: cascade
IOPORTS:
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0213-0213 : isapnp read
02f8-02ff : serial(auto)
0376-0376 : ide1
0378-037a : parport0
037b-037f : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0534-0537 : Crystal audio controller
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
4000-400f : Silicon Integrated Systems [SiS] 5513 [IDE]
4000-4007 : ide0
4008-400f : ide1
d000-dfff : PCI Bus #01
d000-d07f : Silicon Integrated Systems [SiS] 86C326 5598/6326
e000-e07f : AIRONET Wireless Communications PC4800
e400-e43f : AIRONET Wireless Communications PC4800
e400-e43f : eth1
e800-e8ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
e800-e8ff : 8139too
INTERRUPTS:
CPU0
0: 31270 XT-PIC timer
1: 343 XT-PIC keyboard
2: 0 XT-PIC cascade
4: 85 XT-PIC serial
5: 1 XT-PIC usb-ohci
8: 1 XT-PIC rtc
9: 0 XT-PIC Crystal audio controller
10: 5 XT-PIC eth1
12: 2376 XT-PIC eth0
14: 4461 XT-PIC ide0
15: 958 XT-PIC ide1
NMI: 0
ERR: 0
DMA:
1: Crystal audio controller
3: Crystal audio controller
4: cascade
DEVICES:
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
6 lp
7 vcs
10 misc
13 input
14 sound
29 fb
36 netlink
109 lvm
128 ptm
129 ptm
130 ptm
131 ptm
132 ptm
133 ptm
134 ptm
135 ptm
136 pts
137 pts
138 pts
139 pts
140 pts
141 pts
142 pts
143 pts
162 raw
180 usb
Block devices:
1 ramdisk
2 fd
3 ide0
7 loop
9 md
12 unnamed
14 unnamed
22 ide1
38 unnamed
39 unnamed
58 lvm
CPU INFO:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : Celeron (Mendocino)
stepping : 5
cpu MHz : 367.504
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 732.36
MEMINFO:
total: used: free: shared: buffers: cached:
Mem: 129077248 81002496 48074752 0 38596608 24100864
Swap: 957857792 0 957857792
MemTotal: 126052 kB
MemFree: 46948 kB
MemShared: 0 kB
Buffers: 37692 kB
Cached: 23536 kB
SwapCached: 0 kB
Active: 68832 kB
ActiveAnon: 7960 kB
ActiveCache: 60872 kB
Inact_dirty: 136 kB
Inact_laundry: 0 kB
Inact_clean: 220 kB
Inact_target: 13836 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 126052 kB
LowFree: 46948 kB
SwapTotal: 935408 kB
SwapFree: 935408 kB
PCI DEVICES:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 5600 Host (rev 11)
Flags: bus master, medium devsel, latency 32
Memory at e4000000 (32-bit, non-prefetchable) [sizedM]
Capabilities: [c0] AGP version 1.0
00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0) (prog-if 8a [Master SecP PriP])
Flags: bus master, fast devsel, latency 32, IRQ 14
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at 4000 [size\x16]
00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev 01)
Flags: bus master, medium devsel, latency 0
00:01.1 Class ff00: Silicon Integrated Systems [SiS] ACPI
Flags: medium devsel
00:01.2 USB Controller: Silicon Integrated Systems [SiS] SiS7001 USB Controller (rev 11) (prog-if 10 [OHCI])
Flags: bus master, medium devsel, latency 32, IRQ 5
Memory at ea802000 (32-bit, non-prefetchable) [size=4K]
00:02.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary\0, secondary\x01, subordinate\x01, sec-latency2
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e8000000-e9ffffff
Prefetchable memory behind bridge: ea000000-ea7fffff
00:09.0 Communication controller: Motorola SM56 PCI Modem
Subsystem: Motorola SM56 PCI Speakerphone Modem
Flags: bus master, medium devsel, latency 32, IRQ 11
Memory at ea800000 (32-bit, prefetchable) [size%6]
Capabilities: [dc] Power Management version 2
00:0b.0 Network controller: AIRONET Wireless Communications PC4800 (rev 01)
Flags: medium devsel, IRQ 10
Memory at ea801000 (32-bit, non-prefetchable) [size\x128]
I/O ports at e000 [size\x128]
I/O ports at e400 [sized]
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 12
I/O ports at e800 [size%6]
Memory at ea803000 (32-bit, non-prefetchable) [size%6]
Capabilities: [50] Power Management version 2
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 86C326 5598/6326 (rev 0b) (prog-if 00 [VGA])
Subsystem: Silicon Integrated Systems [SiS] SiS6326 GUI Accelerator
Flags: bus master, 66Mhz, medium devsel, latency 32
Memory at ea000000 (32-bit, prefetchable) [size=8M]
Memory at e9000000 (32-bit, non-prefetchable) [sizedK]
I/O ports at d000 [size\x128]
Expansion ROM at <unassigned> [disabled] [sizedK]
Capabilities: [40] Power Management version 1
Capabilities: [50] AGP version 1.0
/proc/isapnp:
Card 1 'CSC4236:Crystal Codec' PnP version 1.0 Product version 0.5
Logical device 0 'CSC0000:WSS/SB'
Device is active
Active port 0x534,0x388,0x220
Active IRQ 9 [0x2]
Active DMA 1,3
Resources 0
Priority preferred
Port 0x534-0x534, align 0x3, size 0x4, 16-bit address decoding
Port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
Port 0x220-0x220, align 0x1f, size 0x10, 16-bit address decoding
IRQ 5 High-Edge
DMA 1 8-bit byte-count compatible
DMA 0,3 8-bit byte-count compatible
Alternate resources 0:1
Priority acceptable
Port 0x534-0xffc, align 0x3, size 0x4, 16-bit address decoding
Port 0x388-0x388, align 0x7, size 0x4, 16-bit address decoding
Port 0x220-0x260, align 0x1f, size 0x10, 16-bit address decoding
IRQ 5,7,2/9,11,12,15 High-Edge
DMA 1,3 8-bit byte-count compatible
DMA 0,1,3 8-bit byte-count compatible
Alternate resources 0:2
Priority functional
Port 0x534-0xffc, align 0x3, size 0x4, 16-bit address decoding
Port 0x388-0x3f8, align 0x7, size 0x4, 16-bit address decoding
Port 0x220-0x300, align 0x1f, size 0x10, 16-bit address decoding
IRQ 5,7,2/9,11,12,15 High-Edge
DMA 0,1,3 8-bit byte-count compatible
Logical device 1 'CSC0001:GAME'
Device is not active
Resources 0
Priority preferred
Port 0x200-0x200, align 0x7, size 0x8, 16-bit address decoding
Alternate resources 0:1
Priority acceptable
Port 0x208-0x208, align 0x7, size 0x8, 16-bit address decoding
Logical device 2 'CSC0010:CTRL'
Device is not active
Resources 0
Priority preferred
Port 0x120-0xff8, align 0x7, size 0x8, 16-bit address decoding
Logical device 3 'CSC0003:MPU'
Device is not active
Resources 0
Priority preferred
Port 0x330-0x330, align 0x7, size 0x2, 16-bit address decoding
IRQ 2/9 High-Edge
Alternate resources 0:1
Priority acceptable
Port 0x330-0x360, align 0x7, size 0x2, 16-bit address decoding
IRQ 2/9,11,12,15 High-Edge
Alternate resources 0:2
Priority functional
Port 0x330-0x3e0, align 0x7, size 0x2, 16-bit address decoding
Thanks for any pointers. I'd love to get this working.
Simon
--
Simon J Mudd, Postfix RPM Packager, Amsterdam, The Netherlands.
email: sjmudd@pobox.com, Tel: +31-627-592 627, http://postfix.WL0.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help configuring a CS4236 to work with Linux
2003-06-09 22:07 Help configuring a CS4236 to work with Linux Simon J Mudd
@ 2003-06-10 4:27 ` rautenkranzmt
2003-06-10 9:25 ` Simon J Mudd
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rautenkranzmt @ 2003-06-10 4:27 UTC (permalink / raw)
To: linux-sound
Simon,
Having reviewed your settings incl., i wonder, with the pnpdump... does
your system run isapnp at start? and have you edited /etc/isapnp.conf to
reflect any settings at all for your sound card? red hat's sndconfig
does it automatically, and chooses it's own settings (in my experience),
but i've never seen it apply isapnp settings to the conf file.
this corresponds exactly to the kind of trouble i was having a couple
years back with my opl-sa3 pnp card. i edited isapnp.conf (see 'man
isapnp.conf'), and had it load in rc.local. my problem was fixed.
~michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help configuring a CS4236 to work with Linux
2003-06-09 22:07 Help configuring a CS4236 to work with Linux Simon J Mudd
2003-06-10 4:27 ` rautenkranzmt
@ 2003-06-10 9:25 ` Simon J Mudd
2003-06-12 21:44 ` Michael Rautenkranz
2003-06-14 7:57 ` Simon J Mudd
3 siblings, 0 replies; 5+ messages in thread
From: Simon J Mudd @ 2003-06-10 9:25 UTC (permalink / raw)
To: linux-sound
Hello Michael,
On Mon, 9 Jun 2003, rautenkranzmt wrote:
> Having reviewed your settings incl., i wonder, with the pnpdump... does
> your system run isapnp at start? and have you edited /etc/isapnp.conf to
> reflect any settings at all for your sound card? red hat's sndconfig
> does it automatically, and chooses it's own settings (in my experience),
> but i've never seen it apply isapnp settings to the conf file.
Initially I didn't do anything (didn't add anything to /etc/modules.conf),
didn't have /etc/isapnp.conf, or have isapnptools on my machine) and let
RedHat's sndconfig "do it's stuff".
Running sndconfig gave me:
Model: Crystal codec: GAME
Can you hear the sample sound? I could so I typed yes. sndconfig modified
/etc/modules.conf adding:
alias sound-slot-0 cs4232
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
options sound dmabuf=1
alias synth0 opl3
options opl3 io=0x330
options cs4232 isapnp=1
Running the mpg321 somefile.mp3 _hung_ the machine.
I tried again, setting the values by hand, being able to choose options:
I/O Port IRQ DMA 1 DMA 2 MPU I/O MPU IRQ
0x530 5 0 0 0x330 5
0x534 7 1 1 0x300 7
Selecting 0x534,5,1,1,0x330,7
(note: IRQ 5 is being used by usb-ohci and I wasn't able to select IRQ 9
where /proc/interrupts tells me the cs4232 is "listening").
This didn't seem to work either, so I started looking around on the web
for "help", downloaded isapnptools from source and tried setting the
options by hand.
To be honest I don't really understand the isapnp.conf config file very
well, nor am I sure what I need to configure exactly, so I may well be
doing something obviously wrong.
To play "mp3 audio" I think I don't need to have the mpu401 configured,
and as I mentioned before while the IRQ and I/O port settings seem clear
to me (IRQ 9 and 0x534 appears to be what the card wants) I'm unsure about
the dma1 and dma2 settings.
> this corresponds exactly to the kind of trouble i was having a couple
> years back with my opl-sa3 pnp card. i edited isapnp.conf (see 'man
> isapnp.conf'), and had it load in rc.local. my problem was fixed.
Perhaps the problem is that I am unable to correctly interpret the
/proc/isapnp values to enable me to configure the card correctly.
Thanks for any insight you can give me.
Simon
--
Simon J Mudd, Postfix RPM Packager, Amsterdam, The Netherlands.
email: sjmudd@pobox.com, Tel: +31-627-592 627, http://postfix.WL0.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help configuring a CS4236 to work with Linux
2003-06-09 22:07 Help configuring a CS4236 to work with Linux Simon J Mudd
2003-06-10 4:27 ` rautenkranzmt
2003-06-10 9:25 ` Simon J Mudd
@ 2003-06-12 21:44 ` Michael Rautenkranz
2003-06-14 7:57 ` Simon J Mudd
3 siblings, 0 replies; 5+ messages in thread
From: Michael Rautenkranz @ 2003-06-12 21:44 UTC (permalink / raw)
To: linux-sound
Simon J Mudd wrote:
> I/O Port IRQ DMA 1 DMA 2 MPU I/O MPU IRQ
>
>0x530 5 0 0 0x330 5
>0x534 7 1 1 0x300 7
>
>Selecting 0x534,5,1,1,0x330,7
>
>
>
DMA1 and DMA2 must be different values
i would suggest 0x534,5,0,1,0x330,7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Help configuring a CS4236 to work with Linux
2003-06-09 22:07 Help configuring a CS4236 to work with Linux Simon J Mudd
` (2 preceding siblings ...)
2003-06-12 21:44 ` Michael Rautenkranz
@ 2003-06-14 7:57 ` Simon J Mudd
3 siblings, 0 replies; 5+ messages in thread
From: Simon J Mudd @ 2003-06-14 7:57 UTC (permalink / raw)
To: linux-sound
rautenkranzmt@ionempire.dyndns.org (Michael Rautenkranz) writes:
> Simon J Mudd wrote:
>
> > I/O Port IRQ DMA 1 DMA 2 MPU I/O MPU IRQ
> >
> >0x530 5 0 0 0x330 5
> >0x534 7 1 1 0x300 7
> >
> >Selecting 0x534,5,1,1,0x330,7
> >
> DMA1 and DMA2 must be different values
>
> i would suggest 0x534,5,0,1,0x330,7
OK. I'll try these values. Unfortunately the redhat sound config
doesn't explain the values and I don't now have Windows installed on
the machine to see how Windows configured the sound.
Thanks again.
Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-06-14 7:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-09 22:07 Help configuring a CS4236 to work with Linux Simon J Mudd
2003-06-10 4:27 ` rautenkranzmt
2003-06-10 9:25 ` Simon J Mudd
2003-06-12 21:44 ` Michael Rautenkranz
2003-06-14 7:57 ` Simon J Mudd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox