Subject: Re: strange cs4280 sampling rate (Re: Strange ESS1869 playback
To: None <abs@netbsd.org>
From: Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>
List: current-users
Date: 07/21/2000 21:11:05
>> On Fri, 21 Jul 2000 12:35:52 +0100 (BST)
 David Brownlee <abs@netbsd.org> wrote:

 > On Fri, 21 Jul 2000, Tatoku Ogaito wrote:
 > 
 > > Strange... my Thinkpad is NetBSD 1.5_ALPHA(around 000710)
 > > 
 > > clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface (rev. 0x01)
 > > clcs0: interrupting at irq 11
 > > clcs0: Crystal CS4297 codec; headphone, 18 bit DAC, 18 bit ADC, no 3D stereo
 > > audio0 at clcs0: full duplex, independent
 > > midi0 at clcs0: CS4280 MIDI UART
 > > 
 > > and I can play mp3 files with mpg123 up to 44100Hz sample rate
 > > without any problems.
 > 
 > 	Mine is slightly different:
 > 
 > clcs0 at pci0 dev 6 function 0: Cirrus Logic CS4280 CrystalClear Audio Interface (rev. 0x01)
 > clcs0: interrupting at irq 11
 > clcs0: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
 > audio0 at clcs0: full duplex, independent

Well, the data sheet of CS4297A says it is an AC97 2.1 compatible codec
while cs4280.c use it as AC97 1.03 codec.  Is there any difference
if you comment out the line

1628: /* XXX should not be here */
1629: #define SERACC_CODEC_TYPE_1_03

in cs4280.c ? 

Anyway,  I will look the data sheets in this weekend.

 > 	Hmm - I've just noticed I didnt enable midi - my ocnfig file does
 > 	not appear to mention midi at clcs?

The changes to cs4280.c was just committed to main trunk and
pulled up 1.5-release branch. You should add 
midi*	at clcs?
to your kernel configuration file.

Tacha