aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index f08be8a329e9..7a88f764daf8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -106,11 +106,11 @@ static void dapm_set_path_status(struct snd_soc_dapm_widget *w,
106 int val; 106 int val;
107 struct soc_mixer_control *mc = (struct soc_mixer_control *) 107 struct soc_mixer_control *mc = (struct soc_mixer_control *)
108 w->kcontrols[i].private_value; 108 w->kcontrols[i].private_value;
109 uint reg = mc->reg; 109 unsigned int reg = mc->reg;
110 uint shift = mc->shift; 110 unsigned int shift = mc->shift;
111 int max = mc->max; 111 int max = mc->max;
112 uint mask = (1 << fls(max)) - 1; 112 unsigned int mask = (1 << fls(max)) - 1;
113 uint invert = mc->invert; 113 unsigned int invert = mc->invert;
114 114
115 val = snd_soc_read(w->codec, reg); 115 val = snd_soc_read(w->codec, reg);
116 val = (val >> shift) & mask; 116 val = (val >> shift) & mask;
@@ -252,11 +252,11 @@ static int dapm_set_pga(struct snd_soc_dapm_widget *widget, int power)
252 if (widget->num_kcontrols && k) { 252 if (widget->num_kcontrols && k) {
253 struct soc_mixer_control *mc = 253 struct soc_mixer_control *mc =
254 (struct soc_mixer_control *)k->private_value; 254 (struct soc_mixer_control *)k->private_value;
255 uint reg = mc->reg; 255 unsigned int reg = mc->reg;
256 uint shift = mc->shift; 256 unsigned int shift = mc->shift;
257 int max = mc->max; 257 int max = mc->max;
258 uint mask = (1 << fls(max)) - 1; 258 unsigned int mask = (1 << fls(max)) - 1;
259 uint invert = mc->invert; 259 unsigned int invert = mc->invert;
260 260
261 if (power) { 261 if (power) {
262 int i; 262 int i;
@@ -1141,12 +1141,12 @@ int snd_soc_dapm_get_volsw(struct snd_kcontrol *kcontrol,
1141 struct snd_soc_dapm_widget *widget = snd_kcontrol_chip(kcontrol); 1141 struct snd_soc_dapm_widget *widget = snd_kcontrol_chip(kcontrol);
1142 struct soc_mixer_control *mc = 1142 struct soc_mixer_control *mc =
1143 (struct soc_mixer_control *)kcontrol->private_value; 1143 (struct soc_mixer_control *)kcontrol->private_value;
1144 uint reg = mc->reg; 1144 unsigned int reg = mc->reg;
1145 uint shift = mc->shift; 1145 unsigned int shift = mc->shift;
1146 uint rshift = mc->rshift; 1146 unsigned int rshift = mc->rshift;
1147 int max = mc->max; 1147 int max = mc->max;
1148 uint invert = mc->invert; 1148 unsigned int invert = mc->invert;
1149 uint mask = (1 << fls(max)) - 1; 1149 unsigned int mask = (1 << fls(max)) - 1;
1150 1150
1151 /* return the saved value if we are powered down */ 1151 /* return the saved value if we are powered down */
1152 if (widget->id == snd_soc_dapm_pga && !widget->power) { 1152 if (widget->id == snd_soc_dapm_pga && !widget->power) {
@@ -1186,12 +1186,12 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
1186 struct snd_soc_dapm_widget *widget = snd_kcontrol_chip(kcontrol); 1186 struct snd_soc_dapm_widget *widget = snd_kcontrol_chip(kcontrol);
1187 struct soc_mixer_control *mc = 1187 struct soc_mixer_control *mc =
1188 (struct soc_mixer_control *)kcontrol->private_value; 1188 (struct soc_mixer_control *)kcontrol->private_value;
1189 uint reg = mc->reg; 1189 unsigned int reg = mc->reg;
1190 uint shift = mc->shift; 1190 unsigned int shift = mc->shift;
1191 uint rshift = mc->rshift; 1191 unsigned int rshift = mc->rshift;
1192 int max = mc->max; 1192 int max = mc->max;
1193 uint mask = (1 << fls(max)) - 1; 1193 unsigned int mask = (1 << fls(max)) - 1;
1194 uint invert = mc->invert; 1194 unsigned int invert = mc->invert;
1195 unsigned short val, val2, val_mask; 1195 unsigned short val, val2, val_mask;
1196 int ret; 1196 int ret;
1197 1197