From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Scott Jiang <scott.jiang.linux@gmail.com>
Cc: uclinux-dist-devel@blackfin.uclinux.org, alsa-devel@alsa-project.org
Subject: Re: asoc: where to store board specific info?
Date: Wed, 10 Aug 2011 01:17:35 +0900 [thread overview]
Message-ID: <20110809161734.GP15861@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <CAHG8p1DxxZAxpkUzqP6TK+axv05Do3q3sX+CTK=mOLW9-1SX1w@mail.gmail.com>
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.
prev parent reply other threads:[~2011-08-09 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 10:20 asoc: where to store board specific info? Scott Jiang
2011-08-09 16:17 ` Mark Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110809161734.GP15861@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=scott.jiang.linux@gmail.com \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox