• Home
  • Raw
  • Download

Lines Matching refs:ucontrol

198 				     struct snd_ctl_elem_value *ucontrol)  in aureon_universe_inmux_get()  argument
202 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
207 struct snd_ctl_elem_value *ucontrol) in aureon_universe_inmux_put() argument
214 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put()
356 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument
364 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); in aureon_ac97_vol_get()
366 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); in aureon_ac97_vol_get()
372 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_put() argument
381 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; in aureon_ac97_vol_put()
383 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; in aureon_ac97_vol_put()
400 static int aureon_ac97_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mute_get() argument
406 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, in aureon_ac97_mute_get()
413 static int aureon_ac97_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mute_put() argument
422 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); in aureon_ac97_mute_put()
438 …ic int aureon_ac97_micboost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_micboost_get() argument
444 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, AC97_MIC) & 0x0020 ? 0 : 1; in aureon_ac97_micboost_get()
450 …ic int aureon_ac97_micboost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_micboost_put() argument
459 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x0020) | (ovol & ~0x0020); in aureon_ac97_micboost_put()
641 static int aureon_ac97_mmute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mmute_get() argument
647 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX1) >> 1) & 0x01; in aureon_ac97_mmute_get()
653 static int aureon_ac97_mmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_mmute_put() argument
662 nvol = (ovol & ~0x02) | (ucontrol->value.integer.value[0] ? 0x02 : 0x00); in aureon_ac97_mmute_put()
703 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_get() argument
708 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? 0 : 1; in wm_pcm_mute_get()
713 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_mute_put() argument
721 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put()
742 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_vol_get() argument
748 ucontrol->value.integer.value[i] = in wm_master_vol_get()
753 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_vol_put() argument
761 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
792 static int wm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_vol_get() argument
801 ucontrol->value.integer.value[i] = in wm_vol_get()
806 static int wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_vol_put() argument
817 unsigned int vol = ucontrol->value.integer.value[i]; in wm_vol_put()
845 static int wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_mute_get() argument
855 ucontrol->value.integer.value[i] = in wm_mute_get()
860 static int wm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_mute_put() argument
872 if (ucontrol->value.integer.value[i] != val) { in wm_mute_put()
875 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; in wm_mute_put()
891 static int wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_mute_get() argument
896 ucontrol->value.integer.value[0] = in wm_master_mute_get()
898 ucontrol->value.integer.value[1] = in wm_master_mute_get()
903 static int wm_master_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_master_mute_put() argument
912 if (ucontrol->value.integer.value[i] != val) { in wm_master_mute_put()
916 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; in wm_master_mute_put()
942 static int wm_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_vol_get() argument
950 ucontrol->value.integer.value[0] = val; in wm_pcm_vol_get()
955 static int wm_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_pcm_vol_put() argument
961 nvol = ucontrol->value.integer.value[0]; in wm_pcm_vol_put()
981 static int wm_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mute_get() argument
990 ucontrol->value.integer.value[i] = ~val>>5 & 0x1; in wm_adc_mute_get()
996 static int wm_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mute_put() argument
1005 new = (~ucontrol->value.integer.value[i]<<5&0x20) | (old&~0x20); in wm_adc_mute_put()
1028 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument
1038 ucontrol->value.integer.value[i] = vol; in wm_adc_vol_get()
1044 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument
1054 nvol = ucontrol->value.integer.value[i] & 0x1f; in wm_adc_vol_put()
1095 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_get() argument
1102 ucontrol->value.enumerated.item[0] = val & 7; in wm_adc_mux_get()
1103 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; in wm_adc_mux_get()
1108 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_mux_put() argument
1117 nval |= ucontrol->value.enumerated.item[0] & 7; in wm_adc_mux_put()
1118 nval |= (ucontrol->value.enumerated.item[1] & 7) << 4; in wm_adc_mux_put()
1146 static int aureon_cs8415_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mux_get() argument
1153 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; in aureon_cs8415_mux_get()
1158 static int aureon_cs8415_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mux_put() argument
1168 nval |= ucontrol->value.enumerated.item[0] & 7; in aureon_cs8415_mux_put()
1173 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; in aureon_cs8415_mux_put()
1186 …atic int aureon_cs8415_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_rate_get() argument
1191 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); in aureon_cs8415_rate_get()
1200 …atic int aureon_cs8415_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mute_get() argument
1204 ucontrol->value.integer.value[0] = (aureon_cs8415_get(ice, CS8415_CTRL1) & 0x20) ? 0 : 1; in aureon_cs8415_mute_get()
1209 …atic int aureon_cs8415_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mute_put() argument
1216 if (ucontrol->value.integer.value[0]) in aureon_cs8415_mute_put()
1237 …atic int aureon_cs8415_qsub_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_qsub_get() argument
1242 aureon_cs8415_read(ice, CS8415_QSUB, ucontrol->value.bytes.data, 10); in aureon_cs8415_qsub_get()
1255 …atic int aureon_cs8415_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_mask_get() argument
1257 memset(ucontrol->value.iec958.status, 0xFF, 24); in aureon_cs8415_mask_get()
1261 …tic int aureon_cs8415_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_cs8415_spdif_get() argument
1266 aureon_cs8415_read(ice, CS8415_C_BUFFER, ucontrol->value.iec958.status, 24); in aureon_cs8415_spdif_get()
1307 static int aureon_hpamp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_hpamp_get() argument
1311 ucontrol->value.integer.value[0] = aureon_get_headphone_amp(ice); in aureon_hpamp_get()
1316 static int aureon_hpamp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_hpamp_put() argument
1320 return aureon_set_headphone_amp(ice, ucontrol->value.integer.value[0]); in aureon_hpamp_put()
1329 static int aureon_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_deemp_get() argument
1332 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; in aureon_deemp_get()
1336 static int aureon_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_deemp_put() argument
1341 if (ucontrol->value.integer.value[0]) in aureon_deemp_put()
1362 …tic int aureon_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_oversampling_get() argument
1365 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; in aureon_oversampling_get()
1369 …tic int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_oversampling_put() argument
1376 if (ucontrol->value.enumerated.item[0]) in aureon_oversampling_put()