WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline t18

  • Newbie
  • *
  • Posts: 42
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #1 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

Offline t18

  • Newbie
  • *
  • Posts: 42
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #2 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #3 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #4 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

Offline t18

  • Newbie
  • *
  • Posts: 42
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #5 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:~$

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #6 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?

Offline gadget42

  • Hero Member
  • *****
  • Posts: 789
« Last Edit: November 19, 2024, 04:21:38 PM by gadget42 »
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 Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #8 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.

Offline gadget42

  • Hero Member
  • *****
  • Posts: 789
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #9 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
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

  • Newbie
  • *
  • Posts: 42
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #10 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.

Offline gadget42

  • Hero Member
  • *****
  • Posts: 789
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #11 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
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 Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #12 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:"

Offline t18

  • Newbie
  • *
  • Posts: 42
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #13 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?

Offline gadget42

  • Hero Member
  • *****
  • Posts: 789
Re: Crystal Semiconductors CS4232 sound card: is it possible to configure it?
« Reply #14 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.
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