[alsa-devel] Tegra ASoC, multiple boards, platform data, and conditionals in machine driver

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Apr 11 22:30:44 CEST 2011

On Mon, Apr 11, 2011 at 08:27:51AM -0700, Stephen Warren wrote:
> Mark Brown wrote at Sunday, April 10, 2011 7:58 PM:

> > you pass the full thing through platform datra or do you just pass the
> > machine type.

> Well, I was thinking of eliminating platform data completely; the
> selection of the correct ASoC machine driver would be based on the

Right, the machine type is essentially platform data.

> name of the platform device, and the machine driver would use
> machine_is_*() to determine any machine-specific actions/data. So yes,
> at run-time, but not using runtime-determined data *tables* at all.

There'd be data of some kind in the machine driver, even if they
happened to be coded as if statements.

More information about the Alsa-devel mailing list