[alsa-devel] [PATCH] ASoC: Allow register defaults to be larger than unsigned short

Liam Girdwood lrg at ti.com
Wed Aug 31 12:54:49 CEST 2011


On 24/08/11 19:13, Mark Brown wrote:
> Devices that need this exist; obviously the newer regmap defaults
> mechanism will deal with this more happily.
> 
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  include/sound/soc.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/sound/soc.h b/include/sound/soc.h
> index 6da55a1..0fc8f15 100644
> --- a/include/sound/soc.h
> +++ b/include/sound/soc.h
> @@ -622,7 +622,7 @@ struct snd_soc_codec_driver {
>  	int (*volatile_register)(struct snd_soc_codec *, unsigned int);
>  	int (*readable_register)(struct snd_soc_codec *, unsigned int);
>  	int (*writable_register)(struct snd_soc_codec *, unsigned int);
> -	short reg_cache_size;
> +	unsigned int reg_cache_size;
>  	short reg_cache_step;
>  	short reg_word_size;
>  	const void *reg_cache_default;

Acked-by: Liam Girdwood <lrg at ti.com>


More information about the Alsa-devel mailing list