summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/mips/hal2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c
index ede449f0b50d..00fc9241d266 100644
--- a/sound/mips/hal2.c
+++ b/sound/mips/hal2.c
@@ -219,6 +219,8 @@ static int hal2_gain_get(struct snd_kcontrol *kcontrol,
219 l = (tmp >> H2I_C2_L_GAIN_SHIFT) & 15; 219 l = (tmp >> H2I_C2_L_GAIN_SHIFT) & 15;
220 r = (tmp >> H2I_C2_R_GAIN_SHIFT) & 15; 220 r = (tmp >> H2I_C2_R_GAIN_SHIFT) & 15;
221 break; 221 break;
222 default:
223 return -EINVAL;
222 } 224 }
223 ucontrol->value.integer.value[0] = l; 225 ucontrol->value.integer.value[0] = l;
224 ucontrol->value.integer.value[1] = r; 226 ucontrol->value.integer.value[1] = r;
@@ -256,6 +258,8 @@ static int hal2_gain_put(struct snd_kcontrol *kcontrol,
256 new |= (r << H2I_C2_R_GAIN_SHIFT); 258 new |= (r << H2I_C2_R_GAIN_SHIFT);
257 hal2_i_write32(hal2, H2I_ADC_C2, new); 259 hal2_i_write32(hal2, H2I_ADC_C2, new);
258 break; 260 break;
261 default:
262 return -EINVAL;
259 } 263 }
260 return old != new; 264 return old != new;
261} 265}