[alsa-devel] [PATCH 3/6] ASoC: usp-pcm: add CPU DAI driver for PCM simulated from USP

Mark Brown broonie at kernel.org
Thu Jul 25 12:24:53 CEST 2013

On Thu, Jul 25, 2013 at 05:32:12PM +0800, Barry Song wrote:
> 2013/7/20 Mark Brown <broonie at kernel.org>:

> > Also what exactly is the rate being set - can the driver just figure
> > this out automatically from the sample rate?

> here it is generating the right pcm clock by an internal DIVISOR in USP module.

> For USP_MODE2:
> 30:21 (R/W) USP_CLK_DIVISOR 10’h0 USP serial clock divider

> 31:30 (R/W) USP_CLK_DIVISOR 2’h0 This is the two bit [11:10] of

> for figuring this out automatically from the sample rate, do you mean
> a lookup table for common sample rate?

That or just calculating it - if you know the input rate and know the
output rate you need then for a simple divisor it should be possible to
calculate the required value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130725/9d324ca6/attachment.sig>

More information about the Alsa-devel mailing list