• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/ice1712/

Lines Matching refs:ucontrol

93 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
102 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME;
104 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1;
108 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
118 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME;
120 new = (~ucontrol->value.integer.value[0]<< 7 & 0x80) | (old & ~0x80);
140 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
149 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME;
151 ucontrol->value.integer.value[0] = 0x7f - vol;
156 static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
166 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME;
167 nvol = ucontrol->value.integer.value[0];
189 static int stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
197 ucontrol->value.integer.value[i] = ~val>>7 & 0x1;
203 static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
213 new = (~ucontrol->value.integer.value[i]<<7&0x80) | (old&~0x80);
234 static int stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
243 ucontrol->value.integer.value[i] = 0x0f - vol;
249 static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
258 nvol = ucontrol->value.integer.value[i];
286 struct snd_ctl_elem_value *ucontrol)
292 ucontrol->value.enumerated.item[0] = (val >> 7) & 0x1;
297 struct snd_ctl_elem_value *ucontrol)
303 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80);
524 struct snd_ctl_elem_value *ucontrol)
533 ucontrol->value.enumerated.item[0] = (val & AK4114_IPS0) ? 1 : 0;
538 struct snd_ctl_elem_value *ucontrol)
546 itemvalue = (ucontrol->value.enumerated.item[0]) ? 0xff : 0x00;