* asoc: where to store board specific info?
@ 2011-08-09 10:20 Scott Jiang
2011-08-09 16:17 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Scott Jiang @ 2011-08-09 10:20 UTC (permalink / raw)
To: Mark Brown; +Cc: uclinux-dist-devel, alsa-devel
Hi Mark,
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.
I can store it in arch/board file and pass it to codec driver, but how
about the external system clock?
Regards,
Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: asoc: where to store board specific info?
2011-08-09 10:20 asoc: where to store board specific info? Scott Jiang
@ 2011-08-09 16:17 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-08-09 16:17 UTC (permalink / raw)
To: Scott Jiang; +Cc: uclinux-dist-devel, alsa-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-09 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 10:20 asoc: where to store board specific info? Scott Jiang
2011-08-09 16:17 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox