[alsa-devel] asoc: where to store board specific info?
broonie at opensource.wolfsonmicro.com
Tue Aug 9 18:17:35 CEST 2011
On Tue, Aug 09, 2011 at 06:20:15PM +0800, Scott Jiang wrote:
> I wonder where to store board specific info? For example, some
> customer boards have a reset pin to control codec.
> If I store it in machine driver, I must modify it according to the boards.
The entire purpose of the machine driver is to be board specific, though
machine drivers can take platform data if they support many similar
boards. There's a few examples of this like the tegra_wm8903 driver.
> I can store it in arch/board file and pass it to codec driver, but how
> about the external system clock?
You can't usually assume the system clock is static in your driver
(unless it's a physical property of the device that it must be) - the
system could connect it to a variable clock source of some kind.
More information about the Alsa-devel