AC'97 compliant codec - query
Hi all,
I am a new to Audio driver development. I am currently developing a driver for Crystal Audio codec CS4205.
The datasheet of CS4205 defines serial data format for input and output data.
1) I'd like to know how the driver will identify the start of such frame? Will any interupts be generated during each such frame start and fram end ?
2) If i want to write some data to Audio Codec register, the datasheet says, slot 1 should contain the register index & slot 2 the data to be written. From the audio driver perspective is it enough if write is issued to the correponding port,
like WRITE_PORT(PCIBaseAddr+RegOffset, RegValue)
or do i need to manipulate the slots ? , if Yes how ?
Please bear with me if my question sounds silly.
Thanx in advance
- Anandhi
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or Abroad
http://monsterindia.rediff.com/jobs
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
Quoted 2 lines · Anandhi Dhanabalan
I am a new to Audio driver development. I am currently developing a driver for Crystal Audio codec CS4205.
You'll never use the CS4205 directly -- it is just an AC97 codec. You'll also need an AC97 controller, such as the one in the ICHx/southbridge chip in most modern chipsets.
That controller handles all of the details of serializing data and whatnot. You need to set up the controller to pass data in the right slots, and set up the codec's mixer and whatnot.
The CS4205 is specifically supported by the ac97_codec driver in alsa0.9.0rc1, and more generically supported by earlier versions. You may want to look at the intel8x0 driver code as well, as that is little more than a thin hardware wrapper around the ac97 codec.
- Pizza
Signature · 4 lines
Solomon Peachy pizzaATfucktheusers.org
I ain't broke, but I'm badly bent. ICQ# 1318344
Patience comes to those who wait.
...It's not "Beanbag Love", it's a "Transanimate Relationship"...