Skip to contentSkip to conversation

Cirrus Logic S/PDIF

DISCUSSION Peter Heatwole 3 participants 7 messages May 17, 2002 – May 22, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

I have a CS4281 based card with a CS4297A AC'97 codec, and wanted
to use the IEC958 jack. After reading some of the specs, I realized that the function "patch_cirrus_cs4205()" in ac97_codec.c applies to the CS4297A codec as well. I changed the line in the snd_ac97_codec_ids array that corresponds to the CS4297A, and made it use the CS4205 patch, and the codec successfully copies the data to the iec958 jack as well as analog out.
What would be the drawbacks to setting this line in the CVS? I realize
this will not work for all soundcards using the CS4297A (for instance, I used this patch with my Santa Cruz (CS4630 DSP), with no luck, as expected), but would using the patch cause harm?
I have not checked, but I assume this would also apply to other Cirrus
Logic AC'97 codecs?

(Any additional info/corrections you may send me via personal mail would also be much appreciated.)

-- Peter Heatwole
"Murphy was just a well known pessimist."

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]

#1 lore raw

Hi Peter,

At Fri, 17 May 2002 08:24:15 -0700,

Quoted 15 lines · Peter Heatwole

Hello,

I have a CS4281 based card with a CS4297A AC'97 codec, and wanted
to use the IEC958 jack. After reading some of the specs, I realized that the function "patch_cirrus_cs4205()" in ac97_codec.c applies to the CS4297A codec as well. I changed the line in the snd_ac97_codec_ids array that corresponds to the CS4297A, and made it use the CS4205 patch, and the codec successfully copies the data to the iec958 jack as well as analog out.
What would be the drawbacks to setting this line in the CVS? I realize
this will not work for all soundcards using the CS4297A (for instance, I used this patch with my Santa Cruz (CS4630 DSP), with no luck, as expected),
but would using the patch cause harm?

no, i don't think it harms.
the attached patch is what you mentioned above? if it's ok, then i'll commit it to cvs.

Quoted 2 lines

I have not checked, but I assume this would also apply to other Cirrus
Logic AC'97 codecs?

well, we need to check spec sheets to be sure.
could you tell us which chips did you check (to be supposed to work)?

Takashi

#2 lore raw
Quoted 2 lines · On 2002.05.21 03:46 Takashi Iwai wrote:

the attached patch is what you mentioned above?
if it's ok, then i'll commit it to cvs.

Yes. I just patched it into the latest CVS, and it worked
perfectly.

Quoted 5 lines
Quoted 2 lines

I have not checked, but I assume this would also apply to other
Cirrus Logic AC'97 codecs?

well, we need to check spec sheets to be sure.
could you tell us which chips did you check (to be supposed to work)?

I only have two CS4297A based cards, so that's all I've tried so
far. I'll check the specs on the other Cirrus chips as soon as possible, but will need someone else to test them.

-- Peter Heatwole
"Murphy was just a well known pessimist."

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#3 lore raw

At Tue, 21 May 2002 08:41:16 -0700,

Quoted 7 lines · Peter Heatwole
Quoted 2 lines · On 2002.05.21 03:46 Takashi Iwai wrote:

the attached patch is what you mentioned above?
if it's ok, then i'll commit it to cvs.

Yes. I just patched it into the latest CVS, and it worked
perfectly.

ok. now checked into cvs.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

I have not checked, but I assume this would also apply to other
Cirrus Logic AC'97 codecs?

well, we need to check spec sheets to be sure.
could you tell us which chips did you check (to be supposed to work)?

I only have two CS4297A based cards, so that's all I've tried so
far. I'll check the specs on the other Cirrus chips as soon as possible, but will need someone else to test them.

yep...

Takashi

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#4 lore raw
In reply to Takashi Iwai
Quoted 2 lines · On 2002.05.21 03:46 Takashi Iwai wrote:

well, we need to check spec sheets to be sure.
could you tell us which chips did you check (to be supposed to work)?

I've looked through some spec sheets, and these are the chips that
seem to be compatible with patch_cirrus_cs4205():

CS4201:   compatible
CS4298:   compatible. Register 5Eh (MODE_CS4205) doesn't seem to use             AMAP bit (0x0080), but that shouldn't affect anything
CS4299:   compatible. Maybe call patch_cirrus_cs4205() from
            patch_cirrus_4299()

I've only checked those AC'97 codecs that are supported already. More
codecs may support this patch, but I haven't checked any of the codecs not listed in ac97_codec.c yet.

-- Peter Heatwole
"Murphy was just a well known pessimist."

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#5 lore raw
Quoted 10 lines · Peter Heatwole
Quoted 2 lines · On 2002.05.21 03:46 Takashi Iwai wrote:

well, we need to check spec sheets to be sure.
could you tell us which chips did you check (to be supposed to work)?

I've looked through some spec sheets, and these are the chips that
seem to be compatible with patch_cirrus_cs4205():

CS4201:   compatible
CS4298:   compatible. Register 5Eh (MODE_CS4205) doesn't seem to 

use AMAP bit (0x0080), but that shouldn't affect anything

I haven't S/PDIF register in the CS4294 datasheet. Do you have CS4298 datasheet?

Quoted 2 lines

CS4299: compatible. Maybe call patch_cirrus_cs4205() from

             patch_cirrus_4299()

I'm working on it.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#6 lore raw
Quoted 2 lines · On 2002.05.22 01:06 Jaroslav Kysela wrote:

I haven't S/PDIF register in the CS4294 datasheet. Do you have CS4298 datasheet?

Yes, the CS4294 doesn't have an S/PDIF pin. It's for quad speaker
output,
and is normally paired with something like the CS4297A for S/PDIF (as is the case with the Santa Cruz). And here's the CS4298 datasheet I'm using:

http://www.cirrus.com/pubs/pubs_current/4298.pdf

-- Peter Heatwole
"Murphy was just a well known pessimist."

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm