[alsa-devel] [PATCH] ASoC: core: Add API for configuration of DAI FS
liam.r.girdwood at linux.intel.com
Mon Sep 16 12:28:29 CEST 2013
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
I'll change the naming so it's set_bclk() and the params to keep it in
line with snd_soc_dai_set_sysclk().
More information about the Alsa-devel