From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Ryan Mallon <ryan@bluewatersys.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Sergey Lapin <slapin@ossfans.org>,
gwossum@acm.org, Nicolas Ferre <nicolas.ferre@atmel.com>,
Sedji Gaouaou <sedji.gaouaou@atmel.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [RFC PATCH] Add combined clock support to Atmel SoC audio
Date: Wed, 24 Nov 2010 12:58:41 +0000 [thread overview]
Message-ID: <20101124125841.GD24970@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <4CEC8E6F.6070009@bluewatersys.com>
On Wed, Nov 24, 2010 at 05:02:55PM +1300, Ryan Mallon wrote:
> Okay, regular spin_lock should be okay right?
I guess, though something like a mutex would seem more normal.
> > Is this done by the driver normally, or is it done by the machine
> > normally? If it's normally done by the machine perhaps it should be
> > moved into the driver in all cases.
> Essentially this code is overriding the settings in the hw_params switch
> statement for the combined clocks case. This will need to be overridden
> each time hw_params is called. Doing it here seems logical since
> atmel_ssc_dai:hw_params does the original setting. It keeps the machine
> drivers simpler too.
That's my point - if the machine drivers normally need to do this
(sam9g20ek certainly needed to configure the pinmux) then we should just
be doing this all the time.
> >> + if (dir == 1) {
> >> + /*
> >> + * Set the TX clock period to the RX clock period
> >> + * FIXME - Is this okay if we are already doing TX?
> >> + */
> >> + tcmr &= 0x00ffffff;
> >> + tcmr |= rcmr & 0xff000000;
> > Should probably enforce a constraint to stop users doing something that
> > forces the change?
> Okay. Could you point me at an example for this please.
symmetric_rates probably covers it.
next prev parent reply other threads:[~2010-11-24 12:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 22:05 [RFC PATCH] Add combined clock support to Atmel SoC audio Ryan Mallon
2010-11-23 23:29 ` Mark Brown
2010-11-24 4:02 ` Ryan Mallon
2010-11-24 12:58 ` Mark Brown [this message]
2011-06-07 9:51 ` Sergey Lapin
2011-06-07 10:03 ` Sergey Lapin
2011-06-07 12:29 ` Ryan Mallon
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=20101124125841.GD24970@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=gwossum@acm.org \
--cc=lrg@slimlogic.co.uk \
--cc=nicolas.ferre@atmel.com \
--cc=ryan@bluewatersys.com \
--cc=sedji.gaouaou@atmel.com \
--cc=slapin@ossfans.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.