[alsa-devel] How to handle parameter variation across different boards but same platform

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Jul 4 16:01:18 CEST 2012

On Wed, Jul 04, 2012 at 01:43:12PM +0000, Hebbar, Gururaja wrote:
> On Wed, Jul 04, 2012 at 18:47:50, Mark Brown wrote:

> > What do you mean by "board"?  If these are plugin modules for your
> > platform you need to either identify this at runtime and register a
> > different machine driver or select at compile time.

> By board I mean a new development board. 

> New board
> sysclk = 24MHz
> codec_name = "tlv320aic3x-codec.1-001b"

> Previous Board
> sysclk = 12MHz
> .codec_name = "tlv320aic3x-codec.2-001b",

> Both boards share the same machine is API (machine_is_am33xx()).

> So, is there any mechanism/api to differentiate these 2 boards inside 
> Code?

> Has anyone else faced such situation?

If these are totally different boards they should have different machine
IDs set so machine_is_() should identify.  If that isn't there then you
need to do something custom to your products to identify the boards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120704/6089f919/attachment.sig 

More information about the Alsa-devel mailing list