Lines Matching refs:ucontrol
212 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_get() argument
216 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
221 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_put() argument
228 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put()
370 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument
378 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
380 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
386 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_put() argument
395 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
397 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
414 static int aureon_ac97_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mute_get() argument
420 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, in aureon_ac97_mute_get()
427 static int aureon_ac97_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mute_put() argument
436 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put()
452 …ic int aureon_ac97_micboost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_micboost_get() argument
458 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, AC97_MIC) & 0x0020 ? 0 : 1; in aureon_ac97_micboost_get()
464 …ic int aureon_ac97_micboost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_micboost_put() argument
473 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x0020) | (ovol & ~0x0020); in aureon_ac97_micboost_put()
655 static int aureon_ac97_mmute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mmute_get() argument
661 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX1) >> 1) & 0x01; in aureon_ac97_mmute_get()
667 static int aureon_ac97_mmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mmute_put() argument
676 nvol = (ovol & ~0x02) | (ucontrol->value.integer.value[0] ? 0x02 : 0x00); in aureon_ac97_mmute_put()
717 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_get() argument
722 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? 0 : 1; in wm_pcm_mute_get()
727 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_put() argument
735 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put()
756 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_vol_get() argument
762 ucontrol->value.integer.value[i] = in wm_master_vol_get()
767 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_vol_put() argument
775 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
806 static int wm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_vol_get() argument
815 ucontrol->value.integer.value[i] = in wm_vol_get()
820 static int wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_vol_put() argument
831 unsigned int vol = ucontrol->value.integer.value[i]; in wm_vol_put()
859 static int wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_mute_get() argument
869 ucontrol->value.integer.value[i] = in wm_mute_get()
874 static int wm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_mute_put() argument
886 if (ucontrol->value.integer.value[i] != val) { in wm_mute_put()
889 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; in wm_mute_put()
905 static int wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_mute_get() argument
910 ucontrol->value.integer.value[0] = in wm_master_mute_get()
912 ucontrol->value.integer.value[1] = in wm_master_mute_get()
917 static int wm_master_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_mute_put() argument
926 if (ucontrol->value.integer.value[i] != val) { in wm_master_mute_put()
930 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; in wm_master_mute_put()
956 static int wm_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_vol_get() argument
964 ucontrol->value.integer.value[0] = val; in wm_pcm_vol_get()
969 static int wm_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_vol_put() argument
975 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
995 static int wm_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mute_get() argument
1004 ucontrol->value.integer.value[i] = ~val>>5 & 0x1; in wm_adc_mute_get()
1010 static int wm_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mute_put() argument
1019 new = (~ucontrol->value.integer.value[i]<<5&0x20) | (old&~0x20); in wm_adc_mute_put()
1042 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
1052 ucontrol->value.integer.value[i] = vol; in wm_adc_vol_get()
1058 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
1068 nvol = ucontrol->value.integer.value[i] & 0x1f; in wm_adc_vol_put()
1109 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_get() argument
1116 ucontrol->value.enumerated.item[0] = val & 7; in wm_adc_mux_get()
1117 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; in wm_adc_mux_get()
1122 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_put() argument
1131 nval |= ucontrol->value.enumerated.item[0] & 7; in wm_adc_mux_put()
1132 nval |= (ucontrol->value.enumerated.item[1] & 7) << 4; in wm_adc_mux_put()
1160 static int aureon_cs8415_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mux_get() argument
1167 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; in aureon_cs8415_mux_get()
1172 static int aureon_cs8415_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mux_put() argument
1182 nval |= ucontrol->value.enumerated.item[0] & 7; in aureon_cs8415_mux_put()
1187 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; in aureon_cs8415_mux_put()
1200 …atic int aureon_cs8415_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_rate_get() argument
1205 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); in aureon_cs8415_rate_get()
1214 …atic int aureon_cs8415_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mute_get() argument
1218 ucontrol->value.integer.value[0] = (aureon_cs8415_get(ice, CS8415_CTRL1) & 0x20) ? 0 : 1; in aureon_cs8415_mute_get()
1223 …atic int aureon_cs8415_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mute_put() argument
1230 if (ucontrol->value.integer.value[0]) in aureon_cs8415_mute_put()
1251 …atic int aureon_cs8415_qsub_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_qsub_get() argument
1256 aureon_cs8415_read(ice, CS8415_QSUB, ucontrol->value.bytes.data, 10); in aureon_cs8415_qsub_get()
1269 …atic int aureon_cs8415_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mask_get() argument
1271 memset(ucontrol->value.iec958.status, 0xFF, 24); in aureon_cs8415_mask_get()
1275 …tic int aureon_cs8415_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_spdif_get() argument
1280 aureon_cs8415_read(ice, CS8415_C_BUFFER, ucontrol->value.iec958.status, 24); in aureon_cs8415_spdif_get()
1321 static int aureon_hpamp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_hpamp_get() argument
1325 ucontrol->value.integer.value[0] = aureon_get_headphone_amp(ice); in aureon_hpamp_get()
1330 static int aureon_hpamp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_hpamp_put() argument
1334 return aureon_set_headphone_amp(ice, ucontrol->value.integer.value[0]); in aureon_hpamp_put()
1343 static int aureon_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_deemp_get() argument
1346 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; in aureon_deemp_get()
1350 static int aureon_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_deemp_put() argument
1355 if (ucontrol->value.integer.value[0]) in aureon_deemp_put()
1376 …tic int aureon_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_oversampling_get() argument
1379 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; in aureon_oversampling_get()
1383 …tic int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_oversampling_put() argument
1390 if (ucontrol->value.enumerated.item[0]) in aureon_oversampling_put()