Browse Source

ASoC: dapm: Allow DAPM registers to be 31 bit

Supports larger register maps, not using unsigned ints for the full 32
bit as we rely on checking for negative registers.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Mark Brown 13 years ago
parent
commit
41b5b3bd5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/sound/soc-dapm.h

+ 1 - 1
include/sound/soc-dapm.h

@@ -487,7 +487,7 @@ struct snd_soc_dapm_widget {
 	struct regulator *regulator;		/* attached regulator */
 
 	/* dapm control */
-	short reg;						/* negative reg = no direct dapm */
+	int reg;				/* negative reg = no direct dapm */
 	unsigned char shift;			/* bits to shift */
 	unsigned int saved_value;		/* widget saved value */
 	unsigned int value;				/* widget current value */