Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: t18 on November 17, 2024, 04:15:41 PM

Title: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 17, 2024, 04:15:41 PM
Hello, I've happily installed TC on my old Pentium 166 but can't find the entry relevant to the CS4232 sound card in the modules.dep file.

It's a PCI card, not a ISA one.

Any way to get it working?

Many thanks
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on November 18, 2024, 01:27:16 AM
Hi t18
... can't find the entry relevant to the CS4232 sound card in the modules.dep file. ...
The  modules.alias  file says you want cs4236:
Code: [Select]
alias snd_cs4232 snd_cs4236
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 19, 2024, 08:30:49 AM
Hi Rich,

I already tried the cs4236. Here's the output:

Code: [Select]
tc@box:~$ sudo modprobe snd_cs4236
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
snd_cs4236             24576  0
snd_wss_lib            20480  1 snd_cs4236
snd_opl3_lib           16384  1 snd_cs4236
snd_hwdep              12288  1 snd_opl3_lib
snd_mpu401_uart        12288  1 snd_cs4236
snd_rawmidi            20480  1 snd_mpu401_uart
snd_seq_device         12288  2 snd_opl3_lib,snd_rawmidi
snd_pcm                57344  2 snd_cs4236,snd_wss_lib
snd_timer              20480  3 snd_wss_lib,snd_opl3_lib,snd_pcm
snd                    45056  9 snd_cs4236,snd_wss_lib,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
soundcore              12288  1 snd
cpufreq_powersave      12288  0
cpufreq_userspace      12288  0
cpufreq_conservative    12288  0
3c59x                  28672  0
squashfs               28672 76
pcspkr                 12288  0
mii                    12288  1 3c59x
loop                   20480 152

tc@box:~$ sudo alsactl init
tc@box:~$ speaker-test [-Ddefault:1] -c2 -t wav -l1

speaker-test 1.2.11

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Juanito on November 19, 2024, 09:38:19 AM
If you reboot without having any alsa extensions loaded, what does this give:
Code: [Select]
tce-load -i alsa-config
tce-load -i alsa
sudo modprobe snd_cs4236
aplay -l
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on November 19, 2024, 10:11:38 AM
Hi t18
Looking through the kernel sources showed support for cs4236
in the isa directory but not in the pci directory.

Maybe there's a driver specific to your board.
Install  pci-utils.tcz  and post the results of this command:
Code: [Select]
lspci -nn
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 19, 2024, 01:55:26 PM
Yes, I had specified it's a PCI card.

I've Windows 95 installed in dual-boot on my PC and this card works great on it.

It seems no luck here:

Code: [Select]
tc@box:~$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 430FX - 82437FX TSC [Triton I] [8086:122d] (rev 02)
00:07.0 ISA bridge [0601]: Intel Corporation 82371FB PIIX ISA [Triton I] [8086:122e] (rev 02)
00:07.1 IDE interface [0101]: Intel Corporation 82371FB PIIX IDE [Triton I] [8086:1230] (rev 02)
00:08.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] 215CT [Mach64 CT PCI] [1002:4354] (rev 09)
00:0e.00:0e.0 USB controller [0c03]: OPTi Inc. 82C861 OHCI USB Host [1045:c861] (rev 10)
00:10.0 Ethernet controller [0200]: 3Com Corporation 3c905B 100BaseTX [Cyclone] [10b7:9055] (rev 64)
tc@box:~$
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on November 19, 2024, 04:05:43 PM
Hi t18
Your sound card does not seem to appear in the list.
Are you sure it's still installed?

Check the BIOS:
Are there settings for sound? Enabled? IRQs? DMA?
Is there a setting for Plug n Play OS?

Maybe the sound card has some manufacturer and model number markings.
What is the make and model of the computer?
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 19, 2024, 04:11:31 PM
ahem, 1999, indeed. anything in this help?

https://mail-index.netbsd.org/current-users/1999/02/23/0040.html

another oldie but goodie from don schneider.

https://aptivasupport.com/uah/crystal.html

more.

https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/sound-card-configuring-68608-print/

https://www.mail-archive.com/suse-linux-e@suse.com/msg05340.html

https://how-to.fandom.com/wiki/How_to_configure_the_Linux_kernel/sound/isa

20241119-1521pm-cst-usa-modified: added multiple links
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on November 19, 2024, 04:19:33 PM
Hi t18
Maybe you could also run:
Code: [Select]
dmesg > dmesg.txtThen attach  dmesg.txt  to your next post for me to look at.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 20, 2024, 03:06:20 AM
maybe it is a card like the softmodem/winmodem cards of the past(basically only works with microsoft stuff)

background:

https://en.wikipedia.org/wiki/Softmodem

and if you found that thought-provoking, how about winprinter:

https://en.wikipedia.org/wiki/Winprinter#GDI_printers
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 20, 2024, 07:16:57 AM
Hi t18
Your sound card does not seem to appear in the list.
Are you sure it's still installed?

Check the BIOS:
Are there settings for sound? Enabled? IRQs? DMA?
Is there a setting for Plug n Play OS?

Maybe the sound card has some manufacturer and model number markings.
What is the make and model of the computer?

Since it's working on Win95 (same machine, dual boot) I assume everything in the BIOS is set properly.


BIOS type:

Code: [Select]
AMIBIOS (C)1992 American Megatrends, Inc.
BIOS Version 1.00.07.CL0


Grub screen:

Code: [Select]
*core
Win95


BIOS errors on boot:

Code: [Select]
ACPI BIOS Error (bug): A valid RSDP was not found
intel_powerclamp: CPU does not support MWAIT[
mce: Unable to init MCE device (rc: -5)


Dmesg attached.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 20, 2024, 10:14:29 AM
looks like something is happening.

01:01: card 'CS4232'
isapnp: 1 Plug & Play card detected total


Code: [Select]
...
isapnp: Scanning for PnP cards...
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
00:0c: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
00:0d: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
Non-volatile memory driver v1.3
Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
 01:01: card 'CS4232'
isapnp: 1 Plug & Play card detected total
...

searching at DDG for "linux 01:01: card 'CS4232'"(double-quotes just for clarity of forum post, not used for the search) gives multiple results.

here are a few:
https://oldforum.puppylinux.com/viewtopic.php?t=35393
https://forums.debian.net/viewtopic.php?t=24528
https://bbs.archlinux.org/viewtopic.php?id=10344
https://oldforum.puppylinux.com/viewtopic.php?t=79769
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on November 20, 2024, 11:07:23 AM
Hi t18
Looks like your card is being detected as ISA, but nothing's
being assigned to it.

Try loading the driver like this:
Code: [Select]
modprobe snd_cs4236 isapnp=0 dma1=1 irq=5 cport=0x120 port=0x534 fm_port=0x388 enable=1 index=0
To see all of the parameters available for this driver:
Code: [Select]
modinfo snd_cs4236 | grep -E "^parm:"
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 21, 2024, 04:52:28 AM
No way:  "cannot find card 0" again.

I've tried to replace cport=0x120 with 0x220 (blind attempt, please see the attached win95 settings) but unsuccessfully.

My PC is an assembled PC. At that time the sound card was optional and PCs had a built-in speaker. Might it interfere somehow?
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 21, 2024, 06:17:59 AM
@t18, have you tried any other *nix Live distro(s)? or even an older TCL?

if we found a *nix where the soundcard worked "out-of-the-box" then we could establish a possible point of failure.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 21, 2024, 07:17:32 AM
@t18, have you tried any other *nix Live distro(s)? or even an older TCL?

if we found a *nix where the soundcard worked "out-of-the-box" then we could establish a possible point of failure.

I wonder which one: https://en.wikipedia.org/wiki/List_of_live_CDs
since my PC is very old and modern distributions run modern kernels.

I'll find the necessary time to try some of them.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 21, 2024, 10:51:20 AM
these were fun reads and so sharing:

https://www.vogons.org/viewtopic.php?t=66180

https://www.reddit.com/r/windows98/comments/r9l2ub/compaq_deskpro_2000_pentium_166_mmx_3dlabs/

@t18, with regards to another version for testing purposes, i was reminded of this post on a previous thread:

https://forum.tinycorelinux.net/index.php/topic,27320.msg175886.html#msg175886

and so you could try out TinyCore-4.7.7.iso from:

http://tinycorelinux.net/4.x/x86/archive/4.7.7/

20241121-1012am-cst-usa-modified: added additional content and links
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on November 22, 2024, 08:55:37 AM
stumbled across a thread post from 2015 that probably doesn't solve current issues but still shows the sound beast for what it has always been...sigh:

https://forum.tinycorelinux.net/index.php/topic,17899.msg108099.html#msg108099
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: CNK on November 23, 2024, 10:30:30 PM
@t18, have you tried any other *nix Live distro(s)? or even an older TCL?

if we found a *nix where the soundcard worked "out-of-the-box" then we could establish a possible point of failure.

I'm not sure this driver ever worked reliably without manual set-up. This script from 2006 is for configuring it automatically but might be broken on current Linux:
https://www.thinkwiki.org/wiki/Script_for_configuring_the_CS4239_sound_chip_in_PnP_mode

The key thing is that you need to pull the port addresses out of /sys/bus/pnp/devices/ and use them in the modprobe command like Rich demonstrated. Win95 might also show them but that screenshot seemed too vague.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 26, 2024, 01:52:13 PM
I've tried TCL 4.7.7 but no way: "no soundcards found".

I've also installed Debian 4.0 kernel 2.6 that detects the card with errors:

DMESG:

Code: [Select]
isapnp: Card 'CS4232'
ad1848: PnP reports 'CS4232' at i/o 0x534, irq 5, dma 1, 3
cs4232: probe of 01:01.00 failed with error -16
cs4232: Must set io, irq and dma.
cs4232-pnpbios: probe of 01:01.00 failed with error -16
CS4232 soundcard not found or device busy


MODULES.DEP:

Code: [Select]
/lib/modules/2.6.18-6-486/kernel/sound/oss/cs4232.ko: /lib/modules/2.6.18-6-486/kernel/sound/oss/ad1848.ko /lib/modules/2.6.18-6-486/kernel/sound/oss/uart401.ko /lib/modules/2.6.18-6-486/kernel/sound/oss/sound.ko /lib/modules/2.6.18-6-486/kernel/sound/soundcore.ko
/lib/modules/2.6.18-6-486/kernel/sound/isa/cs423x/snd-cs4232.ko: /lib/modules/2.6.18-6-486/kernel/sound/drivers/opl3/snd-opl3-lib.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd-hwdep.ko /lib/modules/2.6.18-6-486/kernel/sound/isa/cs423x/snd-cs4231-lib.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd-pcm.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd-timer.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd-page-alloc.ko /lib/modules/2.6.18-6-486/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd-rawmidi.ko /lib/modules/2.6.18-6-486/kernel/sound/core/seq/snd-seq-device.ko /lib/modules/2.6.18-6-486/kernel/sound/core/snd.ko /lib/modules/2.6.18-6-486/kernel/sound/soundcore.ko


INTERRUPT:

Code: [Select]
           CPU0       
  0:     130846          XT-PIC  timer
  1:        630          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  6:          3          XT-PIC  floppy
  7:          0          XT-PIC  parport0
  8:          1          XT-PIC  rtc
 10:          0          XT-PIC  ohci_hcd:usb1
 14:       2699          XT-PIC  ide0
 15:        129          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0


LSMOD:

Code: [Select]
Module                  Size  Used by
dm_snapshot            15644  0
dm_mirror              18000  0
dm_mod                 48952  2 dm_snapshot,dm_mirror
loop                   14216  0
snd_opl3_lib            9600  0
snd_hwdep               8836  1 snd_opl3_lib
snd_cs4231_lib         22272  0
snd_pcm                65928  1 snd_cs4231_lib
snd_timer              19972  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
snd_page_alloc         10248  2 snd_cs4231_lib,snd_pcm
snd_mpu401_uart         7552  0
snd_rawmidi            22048  1 snd_mpu401_uart
snd_seq_device          7820  2 snd_opl3_lib,snd_rawmidi
snd                    45412  8 snd_opl3_lib,snd_hwdep,snd_cs4231_lib,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
ad1848                 27624  0
uart401                10948  0
sound                  67372  2 ad1848,uart401
soundcore               8928  2 snd,sound
ns558                   4864  0
gameport               13832  2 ns558
parport_pc             31524  0
parport                32200  1 parport_pc
rtc                    11572  0
psmouse                34568  0
floppy                 52004  0
serio_raw               6532  0
pcspkr                  2816  0
evdev                   9088  0
ext3                  116488  1
jbd                    47272  1 ext3
ide_cd                 35616  0
cdrom                  32416  1 ide_cd
ide_disk               14848  3
ohci_hcd               17540  0
3c59x                  40360  0
mii                     5376  1 3c59x
usbcore               109444  2 ohci_hcd
piix                    9220  0 [permanent]
generic                 4996  0 [permanent]
ide_core              107760  4 ide_cd,ide_disk,piix,generic
processor              23724  0


Modprobing it results in "no such card".

I'll try older kernels asap.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 26, 2024, 01:56:05 PM
The key thing is that you need to pull the port addresses out of /sys/bus/pnp/devices/ and use them in the modprobe command like Rich demonstrated. Win95 might also show them but that screenshot seemed too vague.

I'll try asap.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 27, 2024, 03:32:27 AM
I'll try older kernels asap.

No, I've found this statement: "udev is broken for 2.6.11 (and earlier) on unstable, install linux-kernel-2.6.12".
https://forums.debian.net/viewtopic.php?t=1054

Debian 4 has already the 2.6.18 kernel.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on November 27, 2024, 03:35:01 AM
The key thing is that you need to pull the port addresses out of /sys/bus/pnp/devices/ and use them in the modprobe command like Rich demonstrated. Win95 might also show them but that screenshot seemed too vague.

I'll try asap.

That's what I believed, but it seems not to be an easy walk. I'm not IT educated, just a user.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on December 09, 2024, 04:32:23 PM
@t18, have you tried any other *nix Live distro(s)? or even an older TCL?

if we found a *nix where the soundcard worked "out-of-the-box" then we could establish a possible point of failure.

Good hint. After TCL 4.7.7 I've tried Knoppix 3.2 (2003) and it detects my sound card as follows:

Code: [Select]
Soundcard: CS4232: WSS/SB, driver=ad1848
Unfortunately that version of Knoppix just loads itself and then turns off, so one can't check anything.

There is a snd_opi92x_ad1848 module in TCL, but it doesn't seem to work. Unless it needs specific parameters that I don't know.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on December 09, 2024, 10:34:22 PM
Hi t18
... There is a snd_opi92x_ad1848 module in TCL, but it doesn't seem to work. ...
There's also a  snd-ad1848  module:
Code: [Select]
tc@E310:~/UsrMerge$ find mnt/ -iname '*1848*' -print
mnt/usr/local/lib/modules/3.0.21-tinycore/kernel/sound/isa/ad1848
mnt/usr/local/lib/modules/3.0.21-tinycore/kernel/sound/isa/ad1848/snd-ad1848.ko.gz
mnt/usr/local/lib/modules/3.0.21-tinycore/kernel/sound/isa/opti9xx/snd-opti92x-ad1848.ko.gz
tc@E310:~/UsrMerge$
tc@E310:~/UsrMerge$ modinfo mnt/usr/local/lib/modules/3.0.21-tinycore/kernel/sound/isa/ad1848/snd-ad1848.ko.gz
filename:       mnt/usr/local/lib/modules/3.0.21-tinycore/kernel/sound/isa/ad1848/snd-ad1848.ko.gz
author:         Tugrul Galatali <galatalt@stuy.edu>, Jaroslav Kysela <perex@perex.cz>
description:    Generic AD1848/AD1847/CS4248
license:        GPL
parm:           thinkpad:Enable only for the onboard CS4248 of IBM Thinkpad 360/750/755 series.
parm:           dma1:DMA1 # for Generic AD1848/AD1847/CS4248 driver.
parm:           irq:IRQ # for Generic AD1848/AD1847/CS4248 driver.
parm:           port:Port # for Generic AD1848/AD1847/CS4248 driver.
parm:           enable:Enable Generic AD1848/AD1847/CS4248 soundcard.
parm:           id:ID string for Generic AD1848/AD1847/CS4248 soundcard.
parm:           index:Index value for Generic AD1848/AD1847/CS4248 soundcard.
depends:        snd,snd-wss-lib
vermagic:       3.0.21-tinycore SMP mod_unload 486
tc@E310:~/UsrMerge$
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on December 10, 2024, 02:08:55 AM
...
Unfortunately that version of Knoppix just loads itself and then turns off, so one can't check anything.
...
a quick note/question/suggestion/thought.

for your own benefit mostly, it would be interesting to figure out what is happening with that version of knoppix
(if you choose to do a follow-up it would probably be better for future forum visitors if a new thread was used)

nevertheless, keep us posted on your progress!
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on December 10, 2024, 06:55:27 AM
Hi t18
... There is a snd_opi92x_ad1848 module in TCL, but it doesn't seem to work. ...
There's also a  snd-ad1848  module:

Hi Rich, yes I've tried it as well but unsuccessfully. Maybe coz that's a ISA driver while my card is a PCI one?


a quick note/question/suggestion/thought.

for your own benefit mostly, it would be interesting to figure out what is happening with that version of knoppix
(if you choose to do a follow-up it would probably be better for future forum visitors if a new thread was used)

nevertheless, keep us posted on your progress!

It just loads, detects the hardware and shuts, so it's impossible to check any log file.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 on December 11, 2024, 03:26:57 AM
knoppix was getting pretty heavy even back then. i have a knoppix version 5.x that recommends a gig of ram. fiddling with boot codes might get it to a command prompt(perhaps?)
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on December 12, 2024, 04:51:33 PM
knoppix was getting pretty heavy even back then. i have a knoppix version 5.x that recommends a gig of ram. fiddling with boot codes might get it to a command prompt(perhaps?)

Knoppix 3.2 seems to be made just to start, detect hardware and shut. It doesn't seem interactive.

Knoppix 6.7 (2011) loads a true desktop instead, but it's very heavy for my P166 and has a more recent kernel.

I've also tried Slackware 4.0 (1999) and it sets the ad1848 driver even modprobing the cs4232. Unforunately there is no sound player on that distro, just a sound converter (sox). Please see the attached image for the hardware data.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich on December 12, 2024, 05:41:39 PM
Hi t18
... Unforunately there is no sound player on that distro, just a sound converter (sox). ...
sox also includes a file called play:
(https://forum.tinycorelinux.net/index.php?action=dlattach;topic=27368.0;attach=6957)
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: gadget42 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
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 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:
(https://forum.tinycorelinux.net/index.php?action=dlattach;topic=27368.0;attach=6957)

Code: [Select]
can't open /dev/dsp
I'll try to install Oss if possible.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 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 (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.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich 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.
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 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
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: Rich 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
Title: Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
Post by: t18 on December 21, 2024, 11:59:27 AM
Dmesg.txt attached.

I'm not lucky.