* CS4218 sound driver
@ 2002-01-07 13:01 Borracini Evandro-R45188
2002-01-07 15:39 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Borracini Evandro-R45188 @ 2002-01-07 13:01 UTC (permalink / raw)
To: 'dmalek@jlc.net'; +Cc: linuxppc-embedded
Dan,
You wrote the cs4218_tdm sound driver, right?
I would like to use your cs4218 driver on my MPC823 board but I don't know how to connect an audio codec to the TDM.
Do you know ( or does anyone in linuxppc list know) were I can find the hardware schematic for the cs4218_tdm driver?
Thanks in advance and regards
Evandro
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: CS4218 sound driver
2002-01-07 13:01 CS4218 sound driver Borracini Evandro-R45188
@ 2002-01-07 15:39 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2002-01-07 15:39 UTC (permalink / raw)
To: Borracini Evandro-R45188; +Cc: 'dmalek@jlc.net', linuxppc-embedded
Borracini Evandro-R45188 wrote:
> You wrote the cs4218_tdm sound driver, right?
Yes.
> I would like to use your cs4218 driver on my MPC823 board but I don't know how to connect an audio codec to the TDM.
There are many, many ways to configure codecs to match a hardware and software
interface. Not all (and I don't think any Motorola :-) codecs lend themselves
to an efficient hardware connection to the TDM along with useful software features.
The CS4218 codec (and others in this family) work well with the TDM interface and
provide the features we want for professinal audio. First of all, you need to choose a
codec that will source a very accurate clock, or provide some external hardware to
do so. The MPC8xx can't source a clock that is useful for standard sampling frequencies.
The driver is a trivial implementation of TDM data transfer to/from the codec, and is
also specific to the Embedded Planet HIOX card because all codec control is performed
through GPIO pins and the SPI. About 95% of this driver is taken from the PowerMac
dmasound driver, since they are logically very similar.
> Do you know ( or does anyone in linuxppc list know) were I can find the hardware schematic for the cs4218_tdm driver?
It's actually pretty simple. Get a CS4218 data sheet and look at the signals. The
clock is obvious, the frame pulse, tx/rx are connected to the TDM. In a default
mode, this is all you need to make it work. We then connected the mode pins to a
GPIO register to select the sampling frequency, and the SPI is connected to the CS4218
control interface to provide gain/level control. I didn't use the 8xx SPI controller
because the overhead was too high. I just software-clocked the bits on the pins.
Have fun.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-07 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-07 13:01 CS4218 sound driver Borracini Evandro-R45188
2002-01-07 15:39 ` Dan Malek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).