[alsa-devel] [PATCH 1/2] ASoC: wm_adsp: Set ADSP1 clock rate to match sys clock

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Jan 18 07:17:13 CET 2013


On Thu, Jan 17, 2013 at 01:11:46PM +0000, Chris Rattray wrote:

>  #define ADSP1_CONTROL_30                  0x24
>  #define ADSP1_CONTROL_31                  0x26
>  
> +#define ADSP1_CLOCKING 38

> +/*
> + * ADSP1 Control 31
> + */
> +#define ADSP1_CLK_SEL_MASK                0x0007  /* CLK_SEL_ENA */
> +#define ADSP1_CLK_SEL_SHIFT                    0  /* CLK_SEL_ENA */
> +#define ADSP1_CLK_SEL_WIDTH                    3  /* CLK_SEL_ENA */

You just called this ADSP1_CLOCKING above, using a different style to
the other register #defines too (and of course there's already one for
the helpfully named ADSP1 Control 31...).


More information about the Alsa-devel mailing list