Skip to contentSkip to conversation

Crystal CS4235 with 2.2.0-pre7

DISCUSSION moc liamtoh 3 participants 6 messages Jan 18, 1999 – Jan 22, 1999 Sound

lore
Share & tools
lore
#0 lore raw

i have the same chip (aopen MB) and i had problems too, (i use the 2.0.36) but i got it to werk by swapping the dma's so that i had 534, irq 5, dma=1 and dma2=0 and that, oddly enough, seemed to work...and not that bad either...altough i have on board video also and when i was trying to use that it would get very bad sound....

regards,

Josh

<SNIP>

Quoted 27 lines

Hi,

Alan Cox stated a few weeks ago that there is support for the Crystal soundchip CS4235 in kernel 2.1.132ac1. I have an Acer motherboard with this chip and so decided to make the latest available kernel linux-2.2.0-pre7.

I found no references to CS4235 and so took the closest config option CS4232.

Unfortunately

cat /usr/lib/xemacs-20.4/etc/sounds/im_so_happy.au > /dev/audio

simply gave silence.

I would be very glad if someone out there could give me advice.

Kind regards

Gerd

Here are the details:

To avoid module trouble I made a kernel with builtin support for CS4232. These are my defines:

Quoted 8 lines

CONFIG_SOUND_CS4232=y
CONFIG_CS4232_BASES4
CONFIG_CS4232_IRQ=5
CONFIG_CS4232_DMA=0
CONFIG_CS4232_DMA2=1
CONFIG_CS4232_MPU_BASE:8
CONFIG_CS4232_MPU_IRQ=9

<SNIP>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

#1 lore raw

Hi,

Alan Cox stated a few weeks ago that there is support for the Crystal soundchip CS4235 in kernel 2.1.132ac1. I have an Acer motherboard with this chip and so decided to make the latest available kernel linux-2.2.0-pre7.

I found no references to CS4235 and so took the closest config option CS4232.

Unfortunately

cat /usr/lib/xemacs-20.4/etc/sounds/im_so_happy.au > /dev/audio

simply gave silence.

I would be very glad if someone out there could give me advice.

Kind regards

Gerd

Here are the details:

To avoid module trouble I made a kernel with builtin support for CS4232. These are my defines:

CONFIG_SOUND_CS4232=y
CONFIG_CS4232_BASES4
CONFIG_CS4232_IRQ=5
CONFIG_CS4232_DMA=0
CONFIG_CS4232_DMA2=1
CONFIG_CS4232_MPU_BASE:8
CONFIG_CS4232_MPU_IRQ=9

I took the values from Windows98 which is alternatively running on the same box and working fine with the CS4235.

dmesg says the following:

Sound initialization started
<Crystal audio controller (CS4235)> at 0x534 irq 5 dma 0,1
ad1848: Interrupt test failed (IRQ5)
Sound initialization complete

cat /dev/sndstat gives me:

Linux kiki 2.2.0-pre7 #4 Sun Jan 17 06:21:47 CET 1999 i686 unknown OSS/Free:3.8s2++-971130
Load type: Driver compiled into kernel
Kernel: Linux kiki 2.2.0-pre7 #4 Sun Jan 17 06:21:47 CET 1999 i686 Config options: 0

Installed drivers:
Type 21: CS4232
Type 22: CS4232 MIDI
Type 26: MPU-401 (UART)

Card config:
CS4232 MIDI at 0x3a8 irq 9 drq 0
CS4232 at 0x534 irq 5 drq 0,1

Audio devices:
0: Crystal audio controller (CS4235) (DUPLEX)

Synth devices:

Midi devices:

Timers:
0: System clock

Mixers:
0: Crystal audio controller (CS4235)

According /proc/interupts IRQ 5 is taken by

5: 0 XT-PIC Crystal audio controller

/proc/ioports tells me:

0534-0537 : Crystal audio controller

#2 lore raw
In reply to moc liamtoh
Quoted 7 lines · Gerd Bavendiek

Alan Cox stated a few weeks ago that there is support for the Crystal soundchip CS4235 in kernel 2.1.132ac1. I have an Acer motherboard with this chip and so decided to make the latest available kernel linux-2.2.0-pre7.

I found no references to CS4235 and so took the closest config option CS4232.

I think you need to enable "config experimental drivers" to enable it.

Quoted 5 lines

Unfortunately

cat /usr/lib/xemacs-20.4/etc/sounds/im_so_happy.au > /dev/audio

simply gave silence.

What does "cat /dev/sndstat" say?

Cheers
Tony

#3 lore raw
In reply to moc liamtoh
Quoted 6 lines · moc liamtoh

i have the same chip (aopen MB) and i had problems too, (i use the 2.0.36) but i got it to werk by swapping the dma's so that i had 534, irq 5, dma=1 and dma2=0 and that, oddly enough, seemed to work...and not that bad either...altough i have on board video also and when i was trying to use that it would get very bad sound....

I followed your suggestion.
cat /usr/lib/xemacs-20.4/etc/sounds/im_so_happy.au > /dev/audio works !

Thanks a lot so far.

After plugging a microphone I tried

dd if=/dev/audio of=qqq bs=8k count

Playing back that file just gives silence. Did you try that too ?

Kind regards

Gerd

#4 lore raw
In reply to moc liamtoh
Quoted 7 lines · Tony Nugent
Quoted 5 lines · Gerd Bavendiek

Alan Cox stated a few weeks ago that there is support for the Crystal soundchip CS4235 in kernel 2.1.132ac1. I have an Acer motherboard with this chip and so decided to make the latest available kernel linux-2.2.0-pre7.

Quoted 5 lines
Quoted 2 lines

I found no references to CS4235 and so took the closest config option CS4232.

I think you need to enable "config experimental drivers" to enable it.

I tried but nothing visible changed in section "sound" or "low level drivers" while doing make menuconfig.

Quoted 8 lines
Quoted 5 lines

Unfortunately

cat /usr/lib/xemacs-20.4/etc/sounds/im_so_happy.au > /dev/audio

simply gave silence.

What does "cat /dev/sndstat" say?

Please have a second look on my posting.

Thanks !

Kind regards

Gerd

#5 lore raw
In reply to moc liamtoh

Hi,

I'm glad that with the help of Moc Liamtoh, who suggested swapping DMA, and Mike Haller, who provided me with a fix to the recent ad1848.c I'm now able to playback and record with my Crystal CS4235 and Linux 2.2.0-pre7.

My defines in .config (those which are not set are not shown) #
# Sound
#
CONFIG_SOUND=y
CONFIG_SOUND_OSS=y
CONFIG_SOUND_PSS=m
CONFIG_SOUND_CS4232=y
CONFIG_CS4232_BASES4
CONFIG_CS4232_IRQ=5
CONFIG_CS4232_DMA=1
CONFIG_CS4232_DMA2=0
CONFIG_CS4232_MPU_BASE:8
CONFIG_CS4232_MPU_IRQ=9

Mike's changes are as follows:

momo:/usr/src/linux/drivers/sound> diff ad1848.c.org ad1848.c 1812c1812,1813
< if (devc->model != MD_1848 && devc->model != MD_C930)
---

Quoted 1 line
              if (devc->model != MD_1848 && devc->model != MD_C930  && devc->model !> MD_4235)

Thanks a lot !

Kind regards

Gerd