[alsa-devel] [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int

Lars-Peter Clausen lars at metafoo.de
Thu Mar 8 14:10:23 CET 2012


On 03/08/2012 01:52 PM, Fabio Estevam wrote:
> On Thu, Mar 8, 2012 at 9:48 AM, Mark Brown
> <broonie at opensource.wolfsonmicro.com> wrote:
> 
>>        /* dapm control */
>> -       short reg;                                              /* negative reg = no direct dapm */
>> +       unsigned int reg;                       /* negative reg = no direct dapm */
> 
> Maybe you should update the comment now that this is unsigned int.

There are also a few places in soc-dapm.c which check for reg >= 0 to handle
SND_SOC_NOPM, those need to be updated as well.


More information about the Alsa-devel mailing list