alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC: core: Add API for configuration of DAI FS
Date: Mon, 16 Sep 2013 11:28:29 +0100	[thread overview]
Message-ID: <1379327309.3215.21.camel@loki> (raw)
In-Reply-To: <20130913172604.GM29403@sirena.org.uk>

On Fri, 2013-09-13 at 18:26 +0100, Mark Brown wrote:
> On Fri, Sep 13, 2013 at 06:09:48PM +0100, Liam Girdwood wrote:
> > Some codec drivers when running in slave mode require that FS is explicitly
> > set by the machine driver as it may not be exactly BCLK/rate.
> > 
> > Extend the DAI API by adding :-
> > 
> > int snd_soc_dai_set_fs(struct snd_soc_dai *dai, unsigned int fs);
> 
> I'm struggling to think of a better name for this right now but the _fs
> name is making me think of the MCLK/SYSCLK rate rather than the BCLK
> rate - lots of clocks get specified as a multiple of the sample rate so
> it's not jumping out which clock.  The best I can come up with is
> _bclk_fs() but perhaps there are better ideas?  Or should we pass in a
> clock ID (and provide standard defines for things like BCLK) so it can
> apply to any clock?
> 

My initial thought was for set_fs(), but this collides with a global FS
macro :(

I'll change the naming so it's set_bclk() and the params to keep it in
line with snd_soc_dai_set_sysclk().

Liam

  reply	other threads:[~2013-09-16 10:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13 17:09 [PATCH] ASoC: core: Only add platform DAI widgets once Liam Girdwood
2013-09-13 17:09 ` [PATCH] ASoC: trace: Make sure trace header doesnt depend on any headers Liam Girdwood
2013-09-13 17:27   ` Mark Brown
2013-09-13 17:09 ` [PATCH] ASoC: core utils: Dont set DMA params for BE substreams Liam Girdwood
2013-09-13 17:27   ` Mark Brown
2013-09-13 17:09 ` [PATCH] ASoC: core: Add API for configuration of DAI FS Liam Girdwood
2013-09-13 17:26   ` Mark Brown
2013-09-16 10:28     ` Liam Girdwood [this message]
2013-09-16 11:05       ` Mark Brown
2013-09-16 11:32         ` Liam Girdwood
2013-09-13 17:28 ` [PATCH] ASoC: core: Only add platform DAI widgets once Mark Brown

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=1379327309.3215.21.camel@loki \
    --to=liam.r.girdwood@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.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;
as well as URLs for NNTP newsgroup(s).