Subject: Re: [alsa-devel] [PATCH] ASoC drivers for the Freescale MPC8610 SoC

From: David Gibson <[email-masked]>
Date: Sun, 6 Jan 2008 11:46:37 +1100

On Fri, Jan 04, 2008 at 08:39:54PM -0600, Timur Tabi wrote:
> David Gibson wrote:
> 
> > And what distinction are you drawing between "first" and "second"
> > here? 
> 
> Oh, that's an easy one:  The CS4270 can work without an I2C or SPI connection, 
> but it will never work without an I2S connection.
> 
> > Why would the I2S need to scan for codecs?  Wouldn't it be up to the
> > codec driver to register with I2S?
> 
> Not in ASoC V1.  The codec driver registers with ASoC, but the actual 
> connection to other devices (e.g. the I2S driver) is done either in the I2S 
> driver or in the fabric driver, depending on your mood.  And that connection 
> is done via a pointer to a structure in the codec driver.

Ok, but couldn't you strucutre your I2S or fabric driver so that it
only becomes fully operational once the codec driver has registered
with it?

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson