WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Crystal Semiconductors CS4232 sound card: is it possible to configure it?  (Read 1895 times)

Offline gadget42

  • Hero Member
  • *****
  • Posts: 819
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #30 on: December 13, 2024, 04:32:07 AM »
this knoppix forum thread seems to suggest that 3.2 might have been faulty to begin with:

https://knoppix.net/forum/threads/1540-3-2-is-it-worth-it
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #31 on: December 13, 2024, 11:27:48 PM »
Hi t18
... Unforunately there is no sound player on that distro, just a sound converter (sox). ...
sox also includes a file called play:


Code: [Select]
can't open /dev/dsp
I'll try to install Oss if possible.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #32 on: December 14, 2024, 07:44:50 AM »
I've found the following instructions:

https://ftp.sotirov-bg.net/pub/mirrors/slackware/slackware-4.0/docs/linux-2.2.6/sound/CS4232

and thanks to them I've been able to play some wav files on Slackware.

Now I'd like to do the same on TCL, but it seems the commands and modules aren't the same.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #33 on: December 14, 2024, 02:25:37 PM »
Hi t18
I think you will need to go back to TC4.7.7. and install alsa-modules-3.0.21-tinycore.tcz.
I believe the modules you need are:
snd-ad1848.ko.gz
snd-mpu401-uart.ko.gz
snd-cs4236.ko.gz

But first:
... and thanks to them I've been able to play some wav files on Slackware. ...
Once you have sound working in Slackware:
Code: [Select]
dmesg > dmesg.txt
lsmod > lsmod.txt
>dev.txt; for dev in /sys/bus/pnp/devices/*; do DEV=$(grep CS $dev/id) && printf "%s = %s\n%s\n\n" $DEV $dev "$(cat $dev/resources)" >> dev.txt; done
I recommend you copy/paste that last one.

Then:
Post any commands you had to enter to get sound to work (modprobe, cp ,del, etc.).
Attach dmesg.txt, lsmod.txt, and dev.txt to your post.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #34 on: December 15, 2024, 06:04:09 AM »
Hi Rich, here you are.

1. Initial status:

lspci
Code: [Select]
00:00.0 Class 0600: 8086:122d (rev 02)
00:07.0 Class 0601: 8086:122e (rev 02)
00:07.1 Class 0101: 8086:1230 (rev 02)
00:08.0 Class 0300: 1002:4354 (rev 09)
00:0e.0 Class 0c03: 1045:c861 (rev 10)
00:10.0 Class 0200: 10b7:9055 (rev 64)

lsmod
Code: [Select]
Module                  Size  Used by
pcmcia_core            38824   0
ppp                    18284   0  (unused)
slip                    6984   0  (unused)
slhc                    4160   0  [ppp slip]
lp                      5008   0  (unused)
parport_pc              4948   1
parport                 6364   1  [lp parport_pc]


2. Sound settings (no more than what's stated on the Slack page):

Code: [Select]
modprobe sound
insmod ad1848
insmod uart401
insmod cs4232 io=0x534 irq=5 dma=1 dma2=0
insmod opl3 io=0x388


3. After setting status:

lspci
Code: [Select]
00:00.0 Class 0600: 8086:122d (rev 02)
00:07.0 Class 0601: 8086:122e (rev 02)
00:07.1 Class 0101: 8086:1230 (rev 02)
00:08.0 Class 0300: 1002:4354 (rev 09)
00:0e.0 Class 0c03: 1045:c861 (rev 10)
00:10.0 Class 0200: 10b7:9055 (rev 64)

lsmod
Code: [Select]
Module                  Size  Used by
opl3                   10728   0  (unused)
cs4232                  2288   0  (unused)
uart401                 5576   0  [cs4232]
ad1848                 14988   0  [cs4232]
sound                  55320   0  [opl3 cs4232 uart401 ad1848]
soundlow                 208   0  [sound]
soundcore               2072   5  [sound]
pcmcia_core            38824   0
ppp                    18284   0  (unused)
slip                    6984   0  (unused)
slhc                    4160   0  [ppp slip]
lp                      5008   0  (unused)
parport_pc              4948   1
parport                 6364   1  [lp parport_pc]


4. Playing:

Code: [Select]
play tarzan.wavOK!


5. Dmesg

Code: [Select]
Linux version 2.2.6 (root@zap) (gcc version 2.7.2.3) #95 Tue Apr 27 19:10:37 CDT 1999
Detected 165792685 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 66.15 BogoMIPS
Memory: 93316k/98304k available (1664k kernel code, 412k reserved, 1396k data, 148k init)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: Intel Pentium 75 - 200 stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfc291
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Initializing RT netlink socket
Starting kswapd v 1.5
Detected PS/2 Mouse Port.
Serial driver version 4.27 with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 6144K size
loop: registered device at major 7
PIIX: IDE controller on PCI bus 00 dev 38
PIIX: not 100% native mode: will probe irqs later
PIIX: neither IDE port enabled (BIOS)
PIIX: IDE controller on PCI bus 00 dev 39
PIIX: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
hda: FUJITSU MPB3043ATU E, ATA DISK drive
hdb: SAMSUNG VA34324A, ATA DISK drive
hdc: IDE/ATAPI CD-ROM 50XS, ATAPI CDROM drive
hdd: PHILIPS CDD3610 CD-R/RW, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: FUJITSU MPB3043ATU E, 4125MB w/0kB Cache, CHS=525/255/63, (U)DMA
hdb: SAMSUNG VA34324A, 4124MB w/478kB Cache, CHS=525/255/63, (U)DMA
hdc: ATAPI 11X CD-ROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.54
hdd: ATAPI 6X CD-ROM DVD-RAM CD-R/RW drive, 768kB Cache
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
linear personality registered
raid0 personality registered
scsi: <fdomain> Detection failed (no card)
NCR53c406a: no available ports found
sym53c416.c: Version 1.0.0
Failed initialization of WD-7000 SCSI card!
EATA0: address 0x1f0 in use, skipping probe.
EATA0: address 0x170 in use, skipping probe.
DC390: 0 adapters found
aec671x_detect:
scsi : 0 hosts.
scsi : detected total.
Partition check:
 hda: hda1 hda2 hda3
 hdb: hdb1
RAMDISK: Compressed image found at block 0
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 148k freed
ISO 9660 Extensions: RRIP_1991A
parport0: PC-style at 0x378 [SPP]
lp0: using parport0 (polling).
CSLIP: code copyright 1989 Regents of the University of California
SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR (dynamic channels, max=256).
SLIP linefill/keepalive option.
PPP: version 2.3.3 (demand dialling)
PPP line discipline registered.
Linux PCMCIA Card Services 3.0.9
  kernel build: 2.2.6 #20 Sat Apr 17 23:17:12 CDT 1999
  options:  [pci] [cardbus]
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
ds: no socket drivers loaded!
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
cs4232: set synthio and synthirq to use the wavefront facilities.
YM3812 and OPL-3 driver Copyright (C) by Hannu Savolainen, Rob Hooft 1993-1996
VFS: Disk change detected on device ide1(22,64)
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root


6. /sys/bus/pnp/devices/: unexisting directory for your script. That's what I've found:

Code: [Select]
-r--r--r--   1 root     root            0 Dec 15 11:24 /proc/parport/0/devices
-r--r--r--   1 root     root            0 Dec 15 11:24 /proc/bus/pci/devices
-r--r--r--   1 root     root            0 Dec 15 11:25 /proc/devices


/cdrom/live/usr/share/pnp

drwxr-xr-x   3 root     root         2048 Jan 28  1999 ./
drwxr-xr-x  20 root     root         4096 May  8  1999 ../
-r--r--r--   1 root     root           52 May 17  1999 00_TRANS.TBL
drwxr-xr-x   3 root     root         2048 Jan 28  1999 config-scripts/
total 55


/cdrom/live/usr/src/linux-2.2.6/include/config/pnp

drwxr-xr-x   3 root     root         2048 Apr 18  1999 ./
drwxr-xr-x 221 root     root        49152 Apr 18  1999 ../
-r--r--r--   1 root     root           92 May 17  1999 00_TRANS.TBL
drwxr-xr-x   2 root     root         2048 Apr 18  1999 parport/
-rw-r--r--   1 root     root           27 Apr 18  1999 parport.h


/cdrom/live/var/log/packages/pnp

-rw-r--r--   1 root     root         1227 May  8  1999 /cdrom/live/var/log/packages/pnp

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #35 on: December 15, 2024, 11:01:26 PM »
Hi t18
Here's the best I can come up with:
Go back to TC4.7.7.
Code: [Select]
tce-load -wi alsa-config
tce-load -wi alsa

Check tce/onboot.lst and make sure alsa-config.tcz and
alsa.tcz are listed in that order.

Reboot.

Make sure no drivers auto-loaded:
Code: [Select]
sudo modprobe -r cs4232
sudo modprobe -r uart401
sudo modprobe -r ad1848

Load the modules:
Code: [Select]
sudo modprobe snd-ad1848
sudo modprobe snd_cs4236 isapnp=0 dma1=1 irq=5 cport=0x120 port=0x534 fm_port=0x388 enable=1 index=0

Code: [Select]
alsactl init
speaker-test [-Ddefault:1] -c2 -t wav -l1

Then attach a new dmesg.txt

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #36 on: December 21, 2024, 11:59:27 AM »
Dmesg.txt attached.

I'm not lucky.