Searched refs:ucontrol (Results 1 - 200 of 220) sorted by relevance

12

/linux-4.1.27/sound/pci/hda/
H A Ddell_wmi_helper.c16 struct snd_ctl_elem_value *ucontrol) update_dell_wmi_micmute_led()
19 dell_old_cap_hook(codec, kcontrol, ucontrol); update_dell_wmi_micmute_led()
21 if (!ucontrol || !dell_led_set_func) update_dell_wmi_micmute_led()
23 if (strcmp("Capture Switch", ucontrol->id.name) == 0 && ucontrol->id.index == 0) { update_dell_wmi_micmute_led()
25 int val = (ucontrol->value.integer.value[0] || ucontrol->value.integer.value[1]) ? 0 : 1; update_dell_wmi_micmute_led()
14 update_dell_wmi_micmute_led(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) update_dell_wmi_micmute_led() argument
H A Dthinkpad_helper.c43 struct snd_ctl_elem_value *ucontrol) update_tpacpi_micmute_led()
45 if (!ucontrol || !led_set_func) update_tpacpi_micmute_led()
47 if (strcmp("Capture Switch", ucontrol->id.name) == 0 && ucontrol->id.index == 0) { update_tpacpi_micmute_led()
49 bool val = ucontrol->value.integer.value[0] || ucontrol->value.integer.value[1]; update_tpacpi_micmute_led()
41 update_tpacpi_micmute_led(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) update_tpacpi_micmute_led() argument
H A Dhda_beep.c306 * @ucontrol: pointer to get/store the data
309 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_get_beep()
314 ucontrol->value.integer.value[0] = snd_hda_mixer_amp_switch_get_beep()
315 ucontrol->value.integer.value[1] = beep->enabled; snd_hda_mixer_amp_switch_get_beep()
318 return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); snd_hda_mixer_amp_switch_get_beep()
325 * @ucontrol: pointer to get/store the data
328 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_put_beep()
335 long *valp = ucontrol->value.integer.value; snd_hda_mixer_amp_switch_put_beep()
346 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); snd_hda_mixer_amp_switch_put_beep()
308 snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_get_beep() argument
327 snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_put_beep() argument
H A Dhda_codec.c1561 * @ucontrol: pointer to get/store the data
1567 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_volume_get()
1575 long *valp = ucontrol->value.integer.value; snd_hda_mixer_amp_volume_get()
1588 * @ucontrol: pointer to get/store the data
1594 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_volume_put()
1602 long *valp = ucontrol->value.integer.value; snd_hda_mixer_amp_volume_put()
1973 struct snd_ctl_elem_value *ucontrol; put_kctl_with_value() local
1974 ucontrol = kzalloc(sizeof(*ucontrol), GFP_KERNEL); put_kctl_with_value()
1975 if (!ucontrol) put_kctl_with_value()
1977 ucontrol->value.integer.value[0] = val; put_kctl_with_value()
1978 ucontrol->value.integer.value[1] = val; put_kctl_with_value()
1979 kctl->put(kctl, ucontrol); put_kctl_with_value()
1980 kfree(ucontrol); put_kctl_with_value()
2081 struct snd_ctl_elem_value *ucontrol) vmaster_mute_mode_get()
2084 ucontrol->value.enumerated.item[0] = hook->mute_mode; vmaster_mute_mode_get()
2089 struct snd_ctl_elem_value *ucontrol) vmaster_mute_mode_put()
2094 hook->mute_mode = ucontrol->value.enumerated.item[0]; vmaster_mute_mode_put()
2196 * @ucontrol: pointer to get/store the data
2202 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_get()
2209 long *valp = ucontrol->value.integer.value; snd_hda_mixer_amp_switch_get()
2224 * @ucontrol: pointer to get/store the data
2230 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_put()
2237 long *valp = ucontrol->value.integer.value; snd_hda_mixer_amp_switch_put()
2267 * @ucontrol: pointer to get/store the data
2273 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_switch_get()
2282 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); snd_hda_mixer_bind_switch_get()
2292 * @ucontrol: pointer to get/store the data
2298 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_switch_put()
2310 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); snd_hda_mixer_bind_switch_put()
2349 * @ucontrol: pointer to get/store the data
2355 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_ctls_get()
2364 err = c->ops->get(kcontrol, ucontrol); snd_hda_mixer_bind_ctls_get()
2374 * @ucontrol: pointer to get/store the data
2380 struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_ctls_put()
2391 err = c->ops->put(kcontrol, ucontrol); snd_hda_mixer_bind_ctls_put()
2458 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_cmask_get()
2460 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | snd_hda_spdif_cmask_get()
2464 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_CATEGORY | snd_hda_spdif_cmask_get()
2470 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_pmask_get()
2472 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | snd_hda_spdif_pmask_get()
2479 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_default_get()
2487 ucontrol->value.iec958.status[0] = spdif->status & 0xff; snd_hda_spdif_default_get()
2488 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; snd_hda_spdif_default_get()
2489 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; snd_hda_spdif_default_get()
2490 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; snd_hda_spdif_default_get()
2583 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_default_put()
2595 spdif->status = ucontrol->value.iec958.status[0] | snd_hda_spdif_default_put()
2596 ((unsigned int)ucontrol->value.iec958.status[1] << 8) | snd_hda_spdif_default_put()
2597 ((unsigned int)ucontrol->value.iec958.status[2] << 16) | snd_hda_spdif_default_put()
2598 ((unsigned int)ucontrol->value.iec958.status[3] << 24); snd_hda_spdif_default_put()
2612 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_out_switch_get()
2620 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; snd_hda_spdif_out_switch_get()
2637 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_out_switch_put()
2650 if (ucontrol->value.integer.value[0]) snd_hda_spdif_out_switch_put()
2828 struct snd_ctl_elem_value *ucontrol) spdif_share_sw_get()
2831 ucontrol->value.integer.value[0] = mout->share_spdif; spdif_share_sw_get()
2836 struct snd_ctl_elem_value *ucontrol) spdif_share_sw_put()
2839 mout->share_spdif = !!ucontrol->value.integer.value[0]; spdif_share_sw_put()
2879 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_switch_get()
2883 ucontrol->value.integer.value[0] = codec->spdif_in_enable; snd_hda_spdif_in_switch_get()
2888 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_switch_put()
2892 unsigned int val = !!ucontrol->value.integer.value[0]; snd_hda_spdif_in_switch_put()
2907 struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_status_get()
2917 ucontrol->value.iec958.status[0] = sbits; snd_hda_spdif_in_status_get()
2918 ucontrol->value.iec958.status[1] = sbits >> 8; snd_hda_spdif_in_status_get()
2919 ucontrol->value.iec958.status[2] = sbits >> 16; snd_hda_spdif_in_status_get()
2920 ucontrol->value.iec958.status[3] = sbits >> 24; snd_hda_spdif_in_status_get()
4027 * @ucontrol: pointer to get/store the data
4033 struct snd_ctl_elem_value *ucontrol, snd_hda_input_mux_put()
4041 idx = ucontrol->value.enumerated.item[0]; snd_hda_input_mux_put()
1566 snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_volume_get() argument
1593 snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_volume_put() argument
2080 vmaster_mute_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vmaster_mute_mode_get() argument
2088 vmaster_mute_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vmaster_mute_mode_put() argument
2201 snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_get() argument
2229 snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_amp_switch_put() argument
2272 snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_switch_get() argument
2297 snd_hda_mixer_bind_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_switch_put() argument
2354 snd_hda_mixer_bind_ctls_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_ctls_get() argument
2379 snd_hda_mixer_bind_ctls_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_mixer_bind_ctls_put() argument
2457 snd_hda_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_cmask_get() argument
2469 snd_hda_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_pmask_get() argument
2478 snd_hda_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_default_get() argument
2582 snd_hda_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_default_put() argument
2611 snd_hda_spdif_out_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_out_switch_get() argument
2636 snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_out_switch_put() argument
2827 spdif_share_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spdif_share_sw_get() argument
2835 spdif_share_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spdif_share_sw_put() argument
2878 snd_hda_spdif_in_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_switch_get() argument
2887 snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_switch_put() argument
2906 snd_hda_spdif_in_status_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hda_spdif_in_status_get() argument
4031 snd_hda_input_mux_put(struct hda_codec *codec, const struct hda_input_mux *imux, struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, unsigned int *cur_val) snd_hda_input_mux_put() argument
H A Dpatch_via.c238 struct snd_ctl_elem_value *ucontrol) via_pin_power_ctl_get()
243 ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused; via_pin_power_ctl_get()
248 struct snd_ctl_elem_value *ucontrol) via_pin_power_ctl_put()
252 bool val = !!ucontrol->value.enumerated.item[0]; via_pin_power_ctl_put()
518 struct snd_ctl_elem_value *ucontrol) vt1708_jack_detect_get()
525 ucontrol->value.integer.value[0] = spec->vt1708_jack_detect; vt1708_jack_detect_get()
530 struct snd_ctl_elem_value *ucontrol) vt1708_jack_detect_put()
538 val = !!ucontrol->value.integer.value[0]; vt1708_jack_detect_put()
947 struct snd_ctl_elem_value *ucontrol) vt1716s_dmic_get()
955 *ucontrol->value.integer.value = index; vt1716s_dmic_get()
961 struct snd_ctl_elem_value *ucontrol) vt1716s_dmic_put()
965 int index = *ucontrol->value.integer.value; vt1716s_dmic_put()
237 via_pin_power_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) via_pin_power_ctl_get() argument
247 via_pin_power_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) via_pin_power_ctl_put() argument
517 vt1708_jack_detect_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vt1708_jack_detect_get() argument
529 vt1708_jack_detect_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vt1708_jack_detect_put() argument
946 vt1716s_dmic_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vt1716s_dmic_get() argument
960 vt1716s_dmic_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vt1716s_dmic_put() argument
H A Dhda_generic.c962 struct snd_ctl_elem_value *ucontrol);
964 struct snd_ctl_elem_value *ucontrol);
1096 struct snd_ctl_elem_value *ucontrol) sync_auto_mute_bits()
1104 ucontrol->value.integer.value[0] &= enabled; sync_auto_mute_bits()
1105 ucontrol->value.integer.value[1] &= enabled; sync_auto_mute_bits()
1110 struct snd_ctl_elem_value *ucontrol) hda_gen_mixer_mute_put()
1112 sync_auto_mute_bits(kcontrol, ucontrol); hda_gen_mixer_mute_put()
1113 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); hda_gen_mixer_mute_put()
1117 struct snd_ctl_elem_value *ucontrol) hda_gen_bind_mute_put()
1119 sync_auto_mute_bits(kcontrol, ucontrol); hda_gen_bind_mute_put()
1120 return snd_hda_mixer_bind_switch_put(kcontrol, ucontrol); hda_gen_bind_mute_put()
2187 struct snd_ctl_elem_value *ucontrol) indep_hp_get()
2191 ucontrol->value.enumerated.item[0] = spec->indep_hp_enabled; indep_hp_get()
2200 struct snd_ctl_elem_value *ucontrol) indep_hp_put()
2204 unsigned int select = ucontrol->value.enumerated.item[0]; indep_hp_put()
2302 struct snd_ctl_elem_value *ucontrol) ch_mode_get()
2306 ucontrol->value.enumerated.item[0] = ch_mode_get()
2360 struct snd_ctl_elem_value *ucontrol) ch_mode_put()
2366 ch = ucontrol->value.enumerated.item[0]; ch_mode_put()
2407 struct snd_ctl_elem_value *ucontrol) loopback_mixing_get()
2411 ucontrol->value.enumerated.item[0] = spec->aamix_mode; loopback_mixing_get()
2462 struct snd_ctl_elem_value *ucontrol) loopback_mixing_put()
2467 unsigned int val = ucontrol->value.enumerated.item[0]; loopback_mixing_put()
2634 struct snd_ctl_elem_value *ucontrol) out_jack_mode_get()
2639 ucontrol->value.enumerated.item[0] = 1; out_jack_mode_get()
2641 ucontrol->value.enumerated.item[0] = 0; out_jack_mode_get()
2646 struct snd_ctl_elem_value *ucontrol) out_jack_mode_put()
2652 val = ucontrol->value.enumerated.item[0] ? PIN_HP : PIN_OUT; out_jack_mode_put()
2796 struct snd_ctl_elem_value *ucontrol) in_jack_mode_get()
2804 ucontrol->value.enumerated.item[0] = cvt_from_vref_idx(vref_caps, idx); in_jack_mode_get()
2809 struct snd_ctl_elem_value *ucontrol) in_jack_mode_put()
2818 if (idx == ucontrol->value.enumerated.item[0]) in_jack_mode_put()
2822 val |= get_vref_idx(vref_caps, ucontrol->value.enumerated.item[0]); in_jack_mode_put()
2929 struct snd_ctl_elem_value *ucontrol) hp_mic_jack_mode_get()
2933 ucontrol->value.enumerated.item[0] = hp_mic_jack_mode_get()
2939 struct snd_ctl_elem_value *ucontrol) hp_mic_jack_mode_put()
2948 idx = ucontrol->value.enumerated.item[0]; hp_mic_jack_mode_put()
3388 struct snd_ctl_elem_value *ucontrol) mux_enum_get()
3393 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); mux_enum_get()
3395 ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx]; mux_enum_get()
3400 struct snd_ctl_elem_value *ucontrol) mux_enum_put()
3403 unsigned int adc_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); mux_enum_put()
3405 ucontrol->value.enumerated.item[0]); mux_enum_put()
3421 struct snd_ctl_elem_value *ucontrol);
3425 struct snd_ctl_elem_value *ucontrol, cap_put_caller()
3442 err = func(kcontrol, ucontrol); cap_put_caller()
3448 spec->cap_sync_hook(codec, kcontrol, ucontrol); cap_put_caller()
3458 struct snd_ctl_elem_value *ucontrol) cap_vol_put()
3460 return cap_put_caller(kcontrol, ucontrol, cap_vol_put()
3482 struct snd_ctl_elem_value *ucontrol) cap_sw_put()
3484 return cap_put_caller(kcontrol, ucontrol, cap_sw_put()
3558 struct snd_ctl_elem_value *ucontrol) cap_single_sw_put()
3564 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); cap_single_sw_put()
3569 spec->cap_sync_hook(codec, kcontrol, ucontrol); cap_single_sw_put()
4497 struct snd_ctl_elem_value *ucontrol) automute_mode_get()
4507 ucontrol->value.enumerated.item[0] = val; automute_mode_get()
4512 struct snd_ctl_elem_value *ucontrol) automute_mode_put()
4517 switch (ucontrol->value.enumerated.item[0]) { automute_mode_put()
1095 sync_auto_mute_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sync_auto_mute_bits() argument
1109 hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hda_gen_mixer_mute_put() argument
1116 hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hda_gen_bind_mute_put() argument
2186 indep_hp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) indep_hp_get() argument
2199 indep_hp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) indep_hp_put() argument
2301 ch_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ch_mode_get() argument
2359 ch_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ch_mode_put() argument
2406 loopback_mixing_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_mixing_get() argument
2461 loopback_mixing_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_mixing_put() argument
2633 out_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) out_jack_mode_get() argument
2645 out_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) out_jack_mode_put() argument
2795 in_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in_jack_mode_get() argument
2808 in_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in_jack_mode_put() argument
2928 hp_mic_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hp_mic_jack_mode_get() argument
2938 hp_mic_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hp_mic_jack_mode_put() argument
3387 mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mux_enum_get() argument
3399 mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mux_enum_put() argument
3424 cap_put_caller(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol, put_call_t func, int type) cap_put_caller() argument
3457 cap_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cap_vol_put() argument
3481 cap_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cap_sw_put() argument
3557 cap_single_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cap_single_sw_put() argument
4496 automute_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) automute_mode_get() argument
4511 automute_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) automute_mode_put() argument
H A Dhda_local.h112 struct snd_ctl_elem_value *ucontrol);
114 struct snd_ctl_elem_value *ucontrol);
120 struct snd_ctl_elem_value *ucontrol);
122 struct snd_ctl_elem_value *ucontrol);
125 struct snd_ctl_elem_value *ucontrol);
127 struct snd_ctl_elem_value *ucontrol);
194 struct snd_ctl_elem_value *ucontrol);
196 struct snd_ctl_elem_value *ucontrol);
217 struct snd_ctl_elem_value *ucontrol);
219 struct snd_ctl_elem_value *ucontrol);
269 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
H A Dpatch_conexant.c318 struct snd_ctl_elem_value *ucontrol) cxt_update_headset_mode_hook()
472 struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_mode_get()
476 ucontrol->value.integer.value[0] = spec->dc_enable; olpc_xo_dc_mode_get()
481 struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_mode_put()
485 int dc_enable = !!ucontrol->value.integer.value[0]; olpc_xo_dc_mode_put()
497 struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_bias_enum_get()
501 ucontrol->value.enumerated.item[0] = spec->dc_input_bias; olpc_xo_dc_bias_enum_get()
512 struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_bias_enum_put()
519 idx = ucontrol->value.enumerated.item[0]; olpc_xo_dc_bias_enum_put()
553 struct snd_ctl_elem_value *ucontrol) olpc_xo_mic_boost_put()
557 int ret = snd_hda_mixer_amp_volume_put(kcontrol, ucontrol); olpc_xo_mic_boost_put()
316 cxt_update_headset_mode_hook(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cxt_update_headset_mode_hook() argument
471 olpc_xo_dc_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_mode_get() argument
480 olpc_xo_dc_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_mode_put() argument
496 olpc_xo_dc_bias_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_bias_enum_get() argument
511 olpc_xo_dc_bias_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) olpc_xo_dc_bias_enum_put() argument
552 olpc_xo_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) olpc_xo_mic_boost_put() argument
H A Dpatch_analog.c481 struct snd_ctl_elem_value *ucontrol) ad1983_auto_smux_enum_get()
486 ucontrol->value.enumerated.item[0] = spec->cur_smux; ad1983_auto_smux_enum_get()
491 struct snd_ctl_elem_value *ucontrol) ad1983_auto_smux_enum_put()
495 unsigned int val = ucontrol->value.enumerated.item[0]; ad1983_auto_smux_enum_put()
756 struct snd_ctl_elem_value *ucontrol) ad1988_auto_smux_enum_get()
761 ucontrol->value.enumerated.item[0] = spec->cur_smux; ad1988_auto_smux_enum_get()
766 struct snd_ctl_elem_value *ucontrol) ad1988_auto_smux_enum_put()
770 unsigned int val = ucontrol->value.enumerated.item[0]; ad1988_auto_smux_enum_put()
480 ad1983_auto_smux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ad1983_auto_smux_enum_get() argument
490 ad1983_auto_smux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ad1983_auto_smux_enum_put() argument
755 ad1988_auto_smux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ad1988_auto_smux_enum_get() argument
765 ad1988_auto_smux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ad1988_auto_smux_enum_put() argument
H A Dpatch_cirrus.c52 struct snd_ctl_elem_value *ucontrol);
695 struct snd_ctl_elem_value *ucontrol) cs4208_spdif_sw_put()
700 int pinctl = ucontrol->value.integer.value[0] ? PIN_OUT : 0; cs4208_spdif_sw_put()
703 return spec->spdif_sw_put(kcontrol, ucontrol); cs4208_spdif_sw_put()
944 struct snd_ctl_elem_value *ucontrol) cs421x_boost_vol_get()
948 ucontrol->value.integer.value[0] = cs421x_boost_vol_get()
954 struct snd_ctl_elem_value *ucontrol) cs421x_boost_vol_put()
958 unsigned int vol = ucontrol->value.integer.value[0]; cs421x_boost_vol_put()
694 cs4208_spdif_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs4208_spdif_sw_put() argument
943 cs421x_boost_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs421x_boost_vol_get() argument
953 cs421x_boost_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs421x_boost_vol_put() argument
H A Dpatch_sigmatel.c336 struct snd_ctl_elem_value *ucontrol) stac_capture_led_hook()
342 if (!kcontrol || !ucontrol) stac_capture_led_hook()
345 mask = 1U << snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac_capture_led_hook()
347 if (ucontrol->value.integer.value[0] || stac_capture_led_hook()
348 ucontrol->value.integer.value[1]) stac_capture_led_hook()
595 struct snd_ctl_elem_value *ucontrol) stac_aloopback_get()
598 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac_aloopback_get()
601 ucontrol->value.integer.value[0] = !!(spec->aloopback & stac_aloopback_get()
607 struct snd_ctl_elem_value *ucontrol) stac_aloopback_put()
611 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac_aloopback_put()
616 if (ucontrol->value.integer.value[0]) stac_aloopback_put()
896 struct snd_ctl_elem_value *ucontrol) stac_dig_beep_switch_get()
899 ucontrol->value.integer.value[0] = codec->beep->enabled; stac_dig_beep_switch_get()
904 struct snd_ctl_elem_value *ucontrol) stac_dig_beep_switch_put()
907 return snd_hda_enable_beep_device(codec, ucontrol->value.integer.value[0]); stac_dig_beep_switch_put()
941 struct snd_ctl_elem_value *ucontrol) stac_smux_enum_get()
945 unsigned int smux_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac_smux_enum_get()
947 ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx]; stac_smux_enum_get()
952 struct snd_ctl_elem_value *ucontrol) stac_smux_enum_put()
956 unsigned int smux_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac_smux_enum_put()
958 return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol, stac_smux_enum_put()
2933 struct snd_ctl_elem_value *ucontrol) stac_hp_bass_gpio_get()
2937 ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20); stac_hp_bass_gpio_get()
2942 struct snd_ctl_elem_value *ucontrol) stac_hp_bass_gpio_put()
2949 (ucontrol->value.integer.value[0] ? 0x20 : 0); stac_hp_bass_gpio_put()
334 stac_capture_led_hook(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_capture_led_hook() argument
594 stac_aloopback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_aloopback_get() argument
606 stac_aloopback_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_aloopback_put() argument
895 stac_dig_beep_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_dig_beep_switch_get() argument
903 stac_dig_beep_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_dig_beep_switch_put() argument
940 stac_smux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_smux_enum_get() argument
951 stac_smux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_smux_enum_put() argument
2932 stac_hp_bass_gpio_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_hp_bass_gpio_get() argument
2941 stac_hp_bass_gpio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac_hp_bass_gpio_put() argument
H A Dpatch_ca0132.c2923 struct snd_ctl_elem_value *ucontrol) tuning_ctl_get()
2928 long *valp = ucontrol->value.integer.value; tuning_ctl_get()
2949 struct snd_ctl_elem_value *ucontrol) voice_focus_ctl_put()
2954 long *valp = ucontrol->value.integer.value; voice_focus_ctl_put()
2984 struct snd_ctl_elem_value *ucontrol) mic_svm_ctl_put()
2989 long *valp = ucontrol->value.integer.value; mic_svm_ctl_put()
3019 struct snd_ctl_elem_value *ucontrol) equalizer_ctl_put()
3024 long *valp = ucontrol->value.integer.value; equalizer_ctl_put()
3519 struct snd_ctl_elem_value *ucontrol) ca0132_vnode_switch_set()
3566 ret = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); ca0132_vnode_switch_set()
3592 struct snd_ctl_elem_value *ucontrol) ca0132_voicefx_get()
3597 ucontrol->value.enumerated.item[0] = spec->voicefx_val; ca0132_voicefx_get()
3602 struct snd_ctl_elem_value *ucontrol) ca0132_voicefx_put()
3607 int sel = ucontrol->value.enumerated.item[0]; ca0132_voicefx_put()
3639 struct snd_ctl_elem_value *ucontrol) ca0132_switch_get()
3645 long *valp = ucontrol->value.integer.value; ca0132_switch_get()
3676 struct snd_ctl_elem_value *ucontrol) ca0132_switch_put()
3682 long *valp = ucontrol->value.integer.value; ca0132_switch_put()
3699 changed = ca0132_vnode_switch_set(kcontrol, ucontrol); ca0132_switch_put()
3782 struct snd_ctl_elem_value *ucontrol) ca0132_volume_get()
3788 long *valp = ucontrol->value.integer.value; ca0132_volume_get()
3803 struct snd_ctl_elem_value *ucontrol) ca0132_volume_put()
3809 long *valp = ucontrol->value.integer.value; ca0132_volume_put()
3835 changed = snd_hda_mixer_amp_volume_put(kcontrol, ucontrol); ca0132_volume_put()
2922 tuning_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tuning_ctl_get() argument
2948 voice_focus_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) voice_focus_ctl_put() argument
2983 mic_svm_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mic_svm_ctl_put() argument
3018 equalizer_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) equalizer_ctl_put() argument
3518 ca0132_vnode_switch_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_vnode_switch_set() argument
3591 ca0132_voicefx_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_voicefx_get() argument
3601 ca0132_voicefx_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_voicefx_put() argument
3638 ca0132_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_switch_get() argument
3675 ca0132_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_switch_put() argument
3781 ca0132_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_volume_get() argument
3802 ca0132_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ca0132_volume_put() argument
H A Dpatch_hdmi.c423 struct snd_ctl_elem_value *ucontrol) hdmi_eld_ctl_get()
436 if (eld->eld_size > ARRAY_SIZE(ucontrol->value.bytes.data) || hdmi_eld_ctl_get()
443 memset(ucontrol->value.bytes.data, 0, hdmi_eld_ctl_get()
444 ARRAY_SIZE(ucontrol->value.bytes.data)); hdmi_eld_ctl_get()
446 memcpy(ucontrol->value.bytes.data, eld->eld_buffer, hdmi_eld_ctl_get()
1985 struct snd_ctl_elem_value *ucontrol) hdmi_chmap_ctl_get()
1995 ucontrol->value.integer.value[i] = per_pin->chmap[i]; hdmi_chmap_ctl_get()
2000 struct snd_ctl_elem_value *ucontrol) hdmi_chmap_ctl_put()
2012 ctl_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); hdmi_chmap_ctl_put()
2028 chmap[i] = ucontrol->value.integer.value[i]; hdmi_chmap_ctl_put()
422 hdmi_eld_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hdmi_eld_ctl_get() argument
1984 hdmi_chmap_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hdmi_chmap_ctl_get() argument
1999 hdmi_chmap_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hdmi_chmap_ctl_put() argument
/linux-4.1.27/sound/drivers/pcsp/
H A Dpcsp_mixer.c24 struct snd_ctl_elem_value *ucontrol) pcsp_enable_get()
27 ucontrol->value.integer.value[0] = chip->enable; pcsp_enable_get()
32 struct snd_ctl_elem_value *ucontrol) pcsp_enable_put()
36 int enab = ucontrol->value.integer.value[0]; pcsp_enable_put()
59 struct snd_ctl_elem_value *ucontrol) pcsp_treble_get()
62 ucontrol->value.enumerated.item[0] = chip->treble; pcsp_treble_get()
67 struct snd_ctl_elem_value *ucontrol) pcsp_treble_put()
71 int treble = ucontrol->value.enumerated.item[0]; pcsp_treble_put()
93 struct snd_ctl_elem_value *ucontrol) pcsp_pcspkr_get()
96 ucontrol->value.integer.value[0] = chip->pcspkr; pcsp_pcspkr_get()
101 struct snd_ctl_elem_value *ucontrol) pcsp_pcspkr_put()
105 int spkr = ucontrol->value.integer.value[0]; pcsp_pcspkr_put()
23 pcsp_enable_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_enable_get() argument
31 pcsp_enable_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_enable_put() argument
58 pcsp_treble_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_treble_get() argument
66 pcsp_treble_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_treble_put() argument
92 pcsp_pcspkr_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_pcspkr_get() argument
100 pcsp_pcspkr_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcsp_pcspkr_put() argument
/linux-4.1.27/sound/pcmcia/vx/
H A Dvxp_mixer.c43 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_level_get() argument
47 ucontrol->value.integer.value[0] = chip->mic_level; vx_mic_level_get()
51 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_level_put() argument
55 unsigned int val = ucontrol->value.integer.value[0]; vx_mic_level_put()
60 if (chip->mic_level != ucontrol->value.integer.value[0]) { vx_mic_level_put()
61 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); vx_mic_level_put()
62 chip->mic_level = ucontrol->value.integer.value[0]; vx_mic_level_put()
88 static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_boost_get() argument
92 ucontrol->value.integer.value[0] = chip->mic_level; vx_mic_boost_get()
96 static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_boost_put() argument
100 int val = !!ucontrol->value.integer.value[0]; vx_mic_boost_put()
/linux-4.1.27/sound/usb/6fire/
H A Dcontrol.c190 struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_vol_put()
202 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { usb6fire_control_output_vol_put()
203 rt->output_vol[ch] = ucontrol->value.integer.value[0]; usb6fire_control_output_vol_put()
207 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { usb6fire_control_output_vol_put()
208 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; usb6fire_control_output_vol_put()
220 struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_vol_get()
231 ucontrol->value.integer.value[0] = rt->output_vol[ch]; usb6fire_control_output_vol_get()
232 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; usb6fire_control_output_vol_get()
237 struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_mute_put()
251 if (ucontrol->value.integer.value[0]) usb6fire_control_output_mute_put()
253 if (ucontrol->value.integer.value[1]) usb6fire_control_output_mute_put()
264 struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_mute_get()
276 ucontrol->value.integer.value[0] = 1 & value; usb6fire_control_output_mute_get()
278 ucontrol->value.integer.value[1] = 1 & value; usb6fire_control_output_mute_get()
294 struct snd_ctl_elem_value *ucontrol) usb6fire_control_input_vol_put()
299 if (rt->input_vol[0] != ucontrol->value.integer.value[0]) { usb6fire_control_input_vol_put()
300 rt->input_vol[0] = ucontrol->value.integer.value[0] - 15; usb6fire_control_input_vol_put()
304 if (rt->input_vol[1] != ucontrol->value.integer.value[1]) { usb6fire_control_input_vol_put()
305 rt->input_vol[1] = ucontrol->value.integer.value[1] - 15; usb6fire_control_input_vol_put()
317 struct snd_ctl_elem_value *ucontrol) usb6fire_control_input_vol_get()
321 ucontrol->value.integer.value[0] = rt->input_vol[0] + 15; usb6fire_control_input_vol_get()
322 ucontrol->value.integer.value[1] = rt->input_vol[1] + 15; usb6fire_control_input_vol_get()
334 struct snd_ctl_elem_value *ucontrol) usb6fire_control_line_phono_put()
338 if (rt->line_phono_switch != ucontrol->value.integer.value[0]) { usb6fire_control_line_phono_put()
339 rt->line_phono_switch = ucontrol->value.integer.value[0]; usb6fire_control_line_phono_put()
347 struct snd_ctl_elem_value *ucontrol) usb6fire_control_line_phono_get()
350 ucontrol->value.integer.value[0] = rt->line_phono_switch; usb6fire_control_line_phono_get()
361 struct snd_ctl_elem_value *ucontrol) usb6fire_control_opt_coax_put()
366 if (rt->opt_coax_switch != ucontrol->value.enumerated.item[0]) { usb6fire_control_opt_coax_put()
367 rt->opt_coax_switch = ucontrol->value.enumerated.item[0]; usb6fire_control_opt_coax_put()
375 struct snd_ctl_elem_value *ucontrol) usb6fire_control_opt_coax_get()
378 ucontrol->value.enumerated.item[0] = rt->opt_coax_switch; usb6fire_control_opt_coax_get()
383 struct snd_ctl_elem_value *ucontrol) usb6fire_control_digital_thru_put()
388 if (rt->digital_thru_switch != ucontrol->value.integer.value[0]) { usb6fire_control_digital_thru_put()
389 rt->digital_thru_switch = ucontrol->value.integer.value[0]; usb6fire_control_digital_thru_put()
397 struct snd_ctl_elem_value *ucontrol) usb6fire_control_digital_thru_get()
400 ucontrol->value.integer.value[0] = rt->digital_thru_switch; usb6fire_control_digital_thru_get()
189 usb6fire_control_output_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_vol_put() argument
219 usb6fire_control_output_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_vol_get() argument
236 usb6fire_control_output_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_mute_put() argument
263 usb6fire_control_output_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_output_mute_get() argument
293 usb6fire_control_input_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_input_vol_put() argument
316 usb6fire_control_input_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_input_vol_get() argument
333 usb6fire_control_line_phono_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_line_phono_put() argument
346 usb6fire_control_line_phono_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_line_phono_get() argument
360 usb6fire_control_opt_coax_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_opt_coax_put() argument
374 usb6fire_control_opt_coax_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_opt_coax_get() argument
382 usb6fire_control_digital_thru_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_digital_thru_put() argument
396 usb6fire_control_digital_thru_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb6fire_control_digital_thru_get() argument
/linux-4.1.27/sound/pci/ca0106/
H A Dca0106_mixer.c161 struct snd_ctl_elem_value *ucontrol) snd_ca0106_shared_spdif_get()
165 ucontrol->value.integer.value[0] = emu->spdif_enable; snd_ca0106_shared_spdif_get()
170 struct snd_ctl_elem_value *ucontrol) snd_ca0106_shared_spdif_put()
176 val = !!ucontrol->value.integer.value[0]; snd_ca0106_shared_spdif_put()
196 struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_source_get()
200 ucontrol->value.enumerated.item[0] = emu->capture_source; snd_ca0106_capture_source_get()
205 struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_source_put()
211 val = ucontrol->value.enumerated.item[0] ; snd_ca0106_capture_source_put()
233 struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_capture_source_get()
237 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; snd_ca0106_i2c_capture_source_get()
242 struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_capture_source_put()
251 source_id = ucontrol->value.enumerated.item[0] ; snd_ca0106_i2c_capture_source_put()
278 struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_mic_line_in_get()
282 ucontrol->value.enumerated.item[0] = emu->capture_mic_line_in; snd_ca0106_capture_mic_line_in_get()
287 struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_mic_line_in_put()
293 val = ucontrol->value.enumerated.item[0] ; snd_ca0106_capture_mic_line_in_put()
340 struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_default()
343 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ca0106_spdif_get_default()
345 decode_spdif_bits(ucontrol->value.iec958.status, snd_ca0106_spdif_get_default()
351 struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_stream()
354 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ca0106_spdif_get_stream()
356 decode_spdif_bits(ucontrol->value.iec958.status, snd_ca0106_spdif_get_stream()
362 struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_mask()
364 ucontrol->value.iec958.status[0] = 0xff; snd_ca0106_spdif_get_mask()
365 ucontrol->value.iec958.status[1] = 0xff; snd_ca0106_spdif_get_mask()
366 ucontrol->value.iec958.status[2] = 0xff; snd_ca0106_spdif_get_mask()
367 ucontrol->value.iec958.status[3] = 0xff; snd_ca0106_spdif_get_mask()
380 struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_put_default()
383 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ca0106_spdif_put_default()
386 val = encode_spdif_bits(ucontrol->value.iec958.status); snd_ca0106_spdif_put_default()
400 struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_put_stream()
403 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ca0106_spdif_put_stream()
406 val = encode_spdif_bits(ucontrol->value.iec958.status); snd_ca0106_spdif_put_stream()
426 struct snd_ctl_elem_value *ucontrol) snd_ca0106_volume_get()
436 ucontrol->value.integer.value[0] = 0xff - ((value >> 24) & 0xff); /* Left */ snd_ca0106_volume_get()
437 ucontrol->value.integer.value[1] = 0xff - ((value >> 16) & 0xff); /* Right */ snd_ca0106_volume_get()
442 struct snd_ctl_elem_value *ucontrol) snd_ca0106_volume_put()
452 nval = ((0xff - ucontrol->value.integer.value[0]) << 24) | snd_ca0106_volume_put()
453 ((0xff - ucontrol->value.integer.value[1]) << 16); snd_ca0106_volume_put()
454 nval |= ((0xff - ucontrol->value.integer.value[0]) << 8) | snd_ca0106_volume_put()
455 ((0xff - ucontrol->value.integer.value[1]) ); snd_ca0106_volume_put()
473 struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_volume_get()
480 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; snd_ca0106_i2c_volume_get()
481 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; snd_ca0106_i2c_volume_get()
486 struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_volume_put()
496 ngain = ucontrol->value.integer.value[0]; snd_ca0106_i2c_volume_put()
502 emu->i2c_capture_volume[source_id][0] = ucontrol->value.integer.value[0]; snd_ca0106_i2c_volume_put()
506 ngain = ucontrol->value.integer.value[1]; snd_ca0106_i2c_volume_put()
512 emu->i2c_capture_volume[source_id][1] = ucontrol->value.integer.value[1]; snd_ca0106_i2c_volume_put()
522 struct snd_ctl_elem_value *ucontrol) spi_mute_get()
528 ucontrol->value.integer.value[0] = !(emu->spi_dac_reg[reg] & bit); spi_mute_get()
533 struct snd_ctl_elem_value *ucontrol) spi_mute_put()
541 if (ucontrol->value.integer.value[0]) { spi_mute_put()
160 snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_shared_spdif_get() argument
169 snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_shared_spdif_put() argument
195 snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_source_get() argument
204 snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_source_put() argument
232 snd_ca0106_i2c_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_capture_source_get() argument
241 snd_ca0106_i2c_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_capture_source_put() argument
277 snd_ca0106_capture_mic_line_in_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_mic_line_in_get() argument
286 snd_ca0106_capture_mic_line_in_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_capture_mic_line_in_put() argument
339 snd_ca0106_spdif_get_default(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_default() argument
350 snd_ca0106_spdif_get_stream(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_stream() argument
361 snd_ca0106_spdif_get_mask(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_get_mask() argument
379 snd_ca0106_spdif_put_default(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_put_default() argument
399 snd_ca0106_spdif_put_stream(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_spdif_put_stream() argument
425 snd_ca0106_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_volume_get() argument
441 snd_ca0106_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_volume_put() argument
472 snd_ca0106_i2c_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_volume_get() argument
485 snd_ca0106_i2c_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ca0106_i2c_volume_put() argument
521 spi_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spi_mute_get() argument
532 spi_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spi_mute_put() argument
/linux-4.1.27/sound/pci/ice1712/
H A Dwtm.c128 struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_get()
141 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_mute_get()
148 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; stac9460_dac_mute_get()
155 struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_put()
165 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | stac9460_dac_mute_put()
173 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_mute_put()
179 new = (~ucontrol->value.integer.value[0] << 7 & 0x80) | stac9460_dac_mute_put()
206 struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_get()
216 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_vol_get()
223 ucontrol->value.integer.value[0] = 0x7f - vol; stac9460_dac_vol_get()
228 struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_put()
237 nvol = ucontrol->value.integer.value[0] & 0x7f; stac9460_dac_vol_put()
246 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_dac_vol_put()
248 nvol = ucontrol->value.integer.value[0] & 0x7f; stac9460_dac_vol_put()
273 struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_get()
279 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_mute_get()
283 ucontrol->value.integer.value[i] = ~val>>7 & 0x1; stac9460_adc_mute_get()
288 ucontrol->value.integer.value[i] = ~val>>7 & 0x1; stac9460_adc_mute_get()
295 struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_put()
302 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_mute_put()
307 new = (~ucontrol->value.integer.value[i]<<7&0x80) | stac9460_adc_mute_put()
317 new = (~ucontrol->value.integer.value[i]<<7&0x80) | stac9460_adc_mute_put()
341 struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_get()
347 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_vol_get()
352 ucontrol->value.integer.value[i] = 0x0f - vol; stac9460_adc_vol_get()
358 ucontrol->value.integer.value[i] = 0x0f - vol; stac9460_adc_vol_get()
365 struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_put()
372 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_adc_vol_put()
376 nvol = ucontrol->value.integer.value[i] & 0x0f; stac9460_adc_vol_put()
386 nvol = ucontrol->value.integer.value[i] & 0x0f; stac9460_adc_vol_put()
410 struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_get()
416 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_mic_sw_get()
421 ucontrol->value.enumerated.item[0] = (val >> 7) & 0x1; stac9460_mic_sw_get()
426 struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_put()
432 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); stac9460_mic_sw_put()
437 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80); stac9460_mic_sw_put()
127 stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_get() argument
154 stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_put() argument
205 stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_get() argument
227 stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_put() argument
272 stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_get() argument
294 stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_put() argument
340 stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_get() argument
364 stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_put() argument
409 stac9460_mic_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_get() argument
425 stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_put() argument
H A Dpontis.c123 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_dac_vol_get() argument
133 ucontrol->value.integer.value[i] = val; wm_dac_vol_get()
139 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_dac_vol_put() argument
147 nval = ucontrol->value.integer.value[i]; wm_dac_vol_put()
178 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_get() argument
188 ucontrol->value.integer.value[i] = val; wm_adc_vol_get()
194 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_put() argument
202 nvol = ucontrol->value.integer.value[i]; wm_adc_vol_put()
220 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_get() argument
226 ucontrol->value.integer.value[0] = (wm_get(ice, WM_ADC_MUX) & (1 << bit)) ? 1 : 0; wm_adc_mux_get()
231 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_put() argument
240 if (ucontrol->value.integer.value[0]) wm_adc_mux_put()
257 static int wm_bypass_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_bypass_get() argument
262 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX) & 0x04) ? 1 : 0; wm_bypass_get()
267 static int wm_bypass_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_bypass_put() argument
275 if (ucontrol->value.integer.value[0]) wm_bypass_put()
292 static int wm_chswap_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_chswap_get() argument
297 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL1) & 0xf0) != 0x90; wm_chswap_get()
302 static int wm_chswap_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_chswap_put() argument
311 if (ucontrol->value.integer.value[0]) wm_chswap_put()
423 static int cs_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs_source_get() argument
428 ucontrol->value.enumerated.item[0] = ice->gpio.saved[0]; cs_source_get()
433 static int cs_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs_source_put() argument
440 if (ucontrol->value.enumerated.item[0] != ice->gpio.saved[0]) { cs_source_put()
441 ice->gpio.saved[0] = ucontrol->value.enumerated.item[0] & 3; cs_source_put()
463 static int pontis_gpio_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_mask_get() argument
468 ucontrol->value.integer.value[0] = (~ice->gpio.write_mask & 0xffff) | 0x00f0; pontis_gpio_mask_get()
473 static int pontis_gpio_mask_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_mask_put() argument
480 val = (~ucontrol->value.integer.value[0] & 0xffff) | 0x00f0; pontis_gpio_mask_put()
487 static int pontis_gpio_dir_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_dir_get() argument
492 ucontrol->value.integer.value[0] = ice->gpio.direction & 0xff0f; pontis_gpio_dir_get()
497 static int pontis_gpio_dir_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_dir_put() argument
504 val = ucontrol->value.integer.value[0] & 0xff0f; pontis_gpio_dir_put()
511 static int pontis_gpio_data_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_data_get() argument
517 ucontrol->value.integer.value[0] = snd_ice1712_gpio_read(ice) & 0xffff; pontis_gpio_data_get()
522 static int pontis_gpio_data_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pontis_gpio_data_put() argument
531 nval = ucontrol->value.integer.value[0] & 0xffff; pontis_gpio_data_put()
H A Dphase.c300 struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_get()
305 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? wm_pcm_mute_get()
312 struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_put()
320 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); wm_pcm_mute_put()
343 struct snd_ctl_elem_value *ucontrol) wm_master_vol_get()
349 ucontrol->value.integer.value[i] = spec->master[i] & wm_master_vol_get()
355 struct snd_ctl_elem_value *ucontrol) wm_master_vol_put()
363 unsigned int vol = ucontrol->value.integer.value[ch]; wm_master_vol_put()
490 struct snd_ctl_elem_value *ucontrol) wm_vol_get()
499 ucontrol->value.integer.value[i] = wm_vol_get()
505 struct snd_ctl_elem_value *ucontrol) wm_vol_put()
517 vol = ucontrol->value.integer.value[i]; wm_vol_put()
546 struct snd_ctl_elem_value *ucontrol) wm_mute_get()
556 ucontrol->value.integer.value[i] = wm_mute_get()
562 struct snd_ctl_elem_value *ucontrol) wm_mute_put()
574 if (ucontrol->value.integer.value[i] != val) { wm_mute_put()
577 ucontrol->value.integer.value[i] ? 0 : wm_mute_put()
595 struct snd_ctl_elem_value *ucontrol) wm_master_mute_get()
600 ucontrol->value.integer.value[0] = wm_master_mute_get()
602 ucontrol->value.integer.value[1] = wm_master_mute_get()
608 struct snd_ctl_elem_value *ucontrol) wm_master_mute_put()
617 if (ucontrol->value.integer.value[i] != val) { wm_master_mute_put()
621 ucontrol->value.integer.value[i] ? 0 : wm_master_mute_put()
650 struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_get()
658 ucontrol->value.integer.value[0] = val; wm_pcm_vol_get()
664 struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_put()
670 nvol = ucontrol->value.integer.value[0]; wm_pcm_vol_put()
692 struct snd_ctl_elem_value *ucontrol) phase28_deemp_get()
695 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == phase28_deemp_get()
701 struct snd_ctl_elem_value *ucontrol) phase28_deemp_put()
707 if (ucontrol->value.integer.value[0]) phase28_deemp_put()
730 struct snd_ctl_elem_value *ucontrol) phase28_oversampling_get()
733 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == phase28_oversampling_get()
739 struct snd_ctl_elem_value *ucontrol) phase28_oversampling_put()
747 if (ucontrol->value.enumerated.item[0]) phase28_oversampling_put()
299 wm_pcm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_get() argument
311 wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_put() argument
342 wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_get() argument
354 wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_put() argument
489 wm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_vol_get() argument
504 wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_vol_put() argument
545 wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_mute_get() argument
561 wm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_mute_put() argument
594 wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_mute_get() argument
607 wm_master_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_mute_put() argument
649 wm_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_get() argument
663 wm_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_put() argument
691 phase28_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) phase28_deemp_get() argument
700 phase28_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) phase28_deemp_put() argument
729 phase28_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) phase28_oversampling_get() argument
738 phase28_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) phase28_oversampling_put() argument
H A Daureon.c212 struct snd_ctl_elem_value *ucontrol) aureon_universe_inmux_get()
216 ucontrol->value.enumerated.item[0] = spec->pca9554_out; aureon_universe_inmux_get()
221 struct snd_ctl_elem_value *ucontrol) aureon_universe_inmux_put()
228 nval = ucontrol->value.enumerated.item[0]; aureon_universe_inmux_put()
370 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_vol_get() argument
378 ucontrol->value.integer.value[0] = 0x1F - (vol & 0x1F); aureon_ac97_vol_get()
380 ucontrol->value.integer.value[1] = 0x1F - ((vol >> 8) & 0x1F); aureon_ac97_vol_get()
386 static int aureon_ac97_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_vol_put() argument
395 nvol = (0x1F - ucontrol->value.integer.value[0]) & 0x001F; aureon_ac97_vol_put()
397 nvol |= ((0x1F - ucontrol->value.integer.value[1]) << 8) & 0x1F00; aureon_ac97_vol_put()
414 static int aureon_ac97_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_mute_get() argument
420 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, aureon_ac97_mute_get()
427 static int aureon_ac97_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_mute_put() argument
436 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x8000) | (ovol & ~0x8000); aureon_ac97_mute_put()
452 static int aureon_ac97_micboost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_micboost_get() argument
458 ucontrol->value.integer.value[0] = aureon_ac97_read(ice, AC97_MIC) & 0x0020 ? 0 : 1; aureon_ac97_micboost_get()
464 static int aureon_ac97_micboost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_micboost_put() argument
473 nvol = (ucontrol->value.integer.value[0] ? 0x0000 : 0x0020) | (ovol & ~0x0020); aureon_ac97_micboost_put()
655 static int aureon_ac97_mmute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_mmute_get() argument
661 ucontrol->value.integer.value[0] = (wm_get(ice, WM_OUT_MUX1) >> 1) & 0x01; aureon_ac97_mmute_get()
667 static int aureon_ac97_mmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_ac97_mmute_put() argument
676 nvol = (ovol & ~0x02) | (ucontrol->value.integer.value[0] ? 0x02 : 0x00); aureon_ac97_mmute_put()
717 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_get() argument
722 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? 0 : 1; wm_pcm_mute_get()
727 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_mute_put() argument
735 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); wm_pcm_mute_put()
756 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_get() argument
762 ucontrol->value.integer.value[i] = wm_master_vol_get()
767 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_put() argument
775 unsigned int vol = ucontrol->value.integer.value[ch]; wm_master_vol_put()
806 static int wm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_vol_get() argument
815 ucontrol->value.integer.value[i] = wm_vol_get()
820 static int wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_vol_put() argument
831 unsigned int vol = ucontrol->value.integer.value[i]; wm_vol_put()
859 static int wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_mute_get() argument
869 ucontrol->value.integer.value[i] = wm_mute_get()
874 static int wm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_mute_put() argument
886 if (ucontrol->value.integer.value[i] != val) { wm_mute_put()
889 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; wm_mute_put()
905 static int wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_mute_get() argument
910 ucontrol->value.integer.value[0] = wm_master_mute_get()
912 ucontrol->value.integer.value[1] = wm_master_mute_get()
917 static int wm_master_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_mute_put() argument
926 if (ucontrol->value.integer.value[i] != val) { wm_master_mute_put()
930 ucontrol->value.integer.value[i] ? 0 : WM_VOL_MUTE; wm_master_mute_put()
956 static int wm_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_get() argument
964 ucontrol->value.integer.value[0] = val; wm_pcm_vol_get()
969 static int wm_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_pcm_vol_put() argument
975 nvol = ucontrol->value.integer.value[0]; wm_pcm_vol_put()
995 static int wm_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mute_get() argument
1004 ucontrol->value.integer.value[i] = ~val>>5 & 0x1; wm_adc_mute_get()
1010 static int wm_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mute_put() argument
1019 new = (~ucontrol->value.integer.value[i]<<5&0x20) | (old&~0x20); wm_adc_mute_put()
1042 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_get() argument
1052 ucontrol->value.integer.value[i] = vol; wm_adc_vol_get()
1058 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_put() argument
1068 nvol = ucontrol->value.integer.value[i] & 0x1f; wm_adc_vol_put()
1109 static int wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_get() argument
1116 ucontrol->value.enumerated.item[0] = val & 7; wm_adc_mux_get()
1117 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; wm_adc_mux_get()
1122 static int wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_put() argument
1131 nval |= ucontrol->value.enumerated.item[0] & 7; wm_adc_mux_put()
1132 nval |= (ucontrol->value.enumerated.item[1] & 7) << 4; wm_adc_mux_put()
1160 static int aureon_cs8415_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_mux_get() argument
1167 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; aureon_cs8415_mux_get()
1172 static int aureon_cs8415_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_mux_put() argument
1182 nval |= ucontrol->value.enumerated.item[0] & 7; aureon_cs8415_mux_put()
1187 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; aureon_cs8415_mux_put()
1200 static int aureon_cs8415_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_rate_get() argument
1205 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); aureon_cs8415_rate_get()
1214 static int aureon_cs8415_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_mute_get() argument
1218 ucontrol->value.integer.value[0] = (aureon_cs8415_get(ice, CS8415_CTRL1) & 0x20) ? 0 : 1; aureon_cs8415_mute_get()
1223 static int aureon_cs8415_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_mute_put() argument
1230 if (ucontrol->value.integer.value[0]) aureon_cs8415_mute_put()
1251 static int aureon_cs8415_qsub_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_qsub_get() argument
1256 aureon_cs8415_read(ice, CS8415_QSUB, ucontrol->value.bytes.data, 10); aureon_cs8415_qsub_get()
1269 static int aureon_cs8415_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_mask_get() argument
1271 memset(ucontrol->value.iec958.status, 0xFF, 24); aureon_cs8415_mask_get()
1275 static int aureon_cs8415_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_cs8415_spdif_get() argument
1280 aureon_cs8415_read(ice, CS8415_C_BUFFER, ucontrol->value.iec958.status, 24); aureon_cs8415_spdif_get()
1321 static int aureon_hpamp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_hpamp_get() argument
1325 ucontrol->value.integer.value[0] = aureon_get_headphone_amp(ice); aureon_hpamp_get()
1330 static int aureon_hpamp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_hpamp_put() argument
1334 return aureon_set_headphone_amp(ice, ucontrol->value.integer.value[0]); aureon_hpamp_put()
1343 static int aureon_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_deemp_get() argument
1346 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; aureon_deemp_get()
1350 static int aureon_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_deemp_put() argument
1355 if (ucontrol->value.integer.value[0]) aureon_deemp_put()
1376 static int aureon_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_oversampling_get() argument
1379 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; aureon_oversampling_get()
1383 static int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_oversampling_put() argument
1390 if (ucontrol->value.enumerated.item[0]) aureon_oversampling_put()
211 aureon_universe_inmux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_universe_inmux_get() argument
220 aureon_universe_inmux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aureon_universe_inmux_put() argument
H A Dprodigy192.c108 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_get() argument
117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; stac9460_dac_mute_get()
119 ucontrol->value.integer.value[0] = (~val >> 7) & 0x1; stac9460_dac_mute_get()
123 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_mute_put() argument
132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; stac9460_dac_mute_put()
137 ucontrol->value.integer.value[0]); stac9460_dac_mute_put()
139 change = stac9460_dac_mute(ice, idx, ucontrol->value.integer.value[0]); stac9460_dac_mute_put()
156 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_get() argument
165 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; stac9460_dac_vol_get()
167 ucontrol->value.integer.value[0] = 0x7f - vol; stac9460_dac_vol_get()
172 static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_dac_vol_put() argument
182 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; stac9460_dac_vol_put()
183 nvol = ucontrol->value.integer.value[0]; stac9460_dac_vol_put()
203 static int stac9460_adc_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_get() argument
211 ucontrol->value.integer.value[i] = ~val>>7 & 0x1; stac9460_adc_mute_get()
217 static int stac9460_adc_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_mute_put() argument
227 new = (~ucontrol->value.integer.value[i]<<7&0x80) | (old&~0x80); stac9460_adc_mute_put()
248 static int stac9460_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_get() argument
257 ucontrol->value.integer.value[i] = 0x0f - vol; stac9460_adc_vol_get()
263 static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_adc_vol_put() argument
272 nvol = ucontrol->value.integer.value[i] & 0x0f; stac9460_adc_vol_put()
292 struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_get()
298 ucontrol->value.enumerated.item[0] = (val >> 7) & 0x1; stac9460_mic_sw_get()
303 struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_put()
309 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80); stac9460_mic_sw_put()
563 struct snd_ctl_elem_value *ucontrol) ak4114_input_sw_get()
572 ucontrol->value.enumerated.item[0] = (val & AK4114_IPS0) ? 1 : 0; ak4114_input_sw_get()
577 struct snd_ctl_elem_value *ucontrol) ak4114_input_sw_put()
585 itemvalue = (ucontrol->value.enumerated.item[0]) ? 0xff : 0x00; ak4114_input_sw_put()
291 stac9460_mic_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_get() argument
302 stac9460_mic_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) stac9460_mic_sw_put() argument
562 ak4114_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4114_input_sw_get() argument
576 ak4114_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4114_input_sw_put() argument
H A Dmaya44.c185 struct snd_ctl_elem_value *ucontrol) maya_vol_get()
189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; maya_vol_get()
193 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; maya_vol_get()
194 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; maya_vol_get()
200 struct snd_ctl_elem_value *ucontrol) maya_vol_put()
204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; maya_vol_put()
212 val = ucontrol->value.integer.value[ch]; maya_vol_put()
246 struct snd_ctl_elem_value *ucontrol) maya_sw_get()
250 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; maya_sw_get()
253 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; maya_sw_get()
258 struct snd_ctl_elem_value *ucontrol) maya_sw_put()
262 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; maya_sw_put()
270 val = ucontrol->value.integer.value[0]; maya_sw_put()
311 struct snd_ctl_elem_value *ucontrol) maya_gpio_sw_get()
320 ucontrol->value.integer.value[0] = val; maya_gpio_sw_get()
325 struct snd_ctl_elem_value *ucontrol) maya_gpio_sw_put()
334 val = ucontrol->value.integer.value[0]; maya_gpio_sw_put()
366 struct snd_ctl_elem_value *ucontrol) maya_rec_src_get()
375 ucontrol->value.enumerated.item[0] = sel; maya_rec_src_get()
380 struct snd_ctl_elem_value *ucontrol) maya_rec_src_put()
383 int sel = ucontrol->value.enumerated.item[0]; maya_rec_src_put()
417 struct snd_ctl_elem_value *ucontrol) maya_pb_route_get()
420 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); maya_pb_route_get()
421 ucontrol->value.enumerated.item[0] = maya_pb_route_get()
427 struct snd_ctl_elem_value *ucontrol) maya_pb_route_put()
430 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); maya_pb_route_put()
432 ucontrol->value.enumerated.item[0], maya_pb_route_put()
184 maya_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_vol_get() argument
199 maya_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_vol_put() argument
245 maya_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_sw_get() argument
257 maya_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_sw_put() argument
310 maya_gpio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_gpio_sw_get() argument
324 maya_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_gpio_sw_put() argument
365 maya_rec_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_rec_src_get() argument
379 maya_rec_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_rec_src_put() argument
416 maya_pb_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_pb_route_get() argument
426 maya_pb_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) maya_pb_route_put() argument
H A Dprodigy_hifi.c266 struct snd_ctl_elem_value *ucontrol) ak4396_dac_vol_get()
273 ucontrol->value.integer.value[i] = spec->vol[i]; ak4396_dac_vol_get()
278 static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4396_dac_vol_put() argument
287 if (ucontrol->value.integer.value[i] != spec->vol[i]) { ak4396_dac_vol_put()
288 spec->vol[i] = ucontrol->value.integer.value[i]; ak4396_dac_vol_put()
394 struct snd_ctl_elem_value *ucontrol) wm_dac_vol_get()
401 ucontrol->value.integer.value[i] = wm_dac_vol_get()
406 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_dac_vol_put() argument
414 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { wm_dac_vol_put()
417 spec->vol[2 + i] |= ucontrol->value.integer.value[i]; wm_dac_vol_put()
442 struct snd_ctl_elem_value *ucontrol) wm8766_vol_get()
451 ucontrol->value.integer.value[i] = spec->vol[ofs + i]; wm8766_vol_get()
455 static int wm8766_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8766_vol_put() argument
466 if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) { wm8766_vol_put()
469 spec->vol[ofs + i] |= ucontrol->value.integer.value[i]; wm8766_vol_put()
493 struct snd_ctl_elem_value *ucontrol) wm_master_vol_get()
499 ucontrol->value.integer.value[i] = spec->master[i]; wm_master_vol_get()
504 struct snd_ctl_elem_value *ucontrol) wm_master_vol_put()
512 if (ucontrol->value.integer.value[ch] != spec->master[ch]) { wm_master_vol_put()
513 spec->master[ch] = ucontrol->value.integer.value[ch]; wm_master_vol_put()
567 struct snd_ctl_elem_value *ucontrol) wm_adc_mux_enum_get()
572 ucontrol->value.integer.value[0] = wm_get(ice, WM_ADC_MUX) & 0x1f; wm_adc_mux_enum_get()
578 struct snd_ctl_elem_value *ucontrol) wm_adc_mux_enum_put()
586 nval = (oval & 0xe0) | ucontrol->value.integer.value[0]; wm_adc_mux_enum_put()
616 struct snd_ctl_elem_value *ucontrol) wm_adc_vol_get()
626 ucontrol->value.integer.value[i] = val; wm_adc_vol_get()
633 struct snd_ctl_elem_value *ucontrol) wm_adc_vol_put()
641 nvol = ucontrol->value.integer.value[i]; wm_adc_vol_put()
660 struct snd_ctl_elem_value *ucontrol) wm_adc_mux_get()
666 ucontrol->value.integer.value[0] = wm_adc_mux_get()
673 struct snd_ctl_elem_value *ucontrol) wm_adc_mux_put()
682 if (ucontrol->value.integer.value[0]) wm_adc_mux_put()
700 struct snd_ctl_elem_value *ucontrol) wm_bypass_get()
705 ucontrol->value.integer.value[0] = wm_bypass_get()
712 struct snd_ctl_elem_value *ucontrol) wm_bypass_put()
720 if (ucontrol->value.integer.value[0]) wm_bypass_put()
738 struct snd_ctl_elem_value *ucontrol) wm_chswap_get()
743 ucontrol->value.integer.value[0] = wm_chswap_get()
750 struct snd_ctl_elem_value *ucontrol) wm_chswap_put()
759 if (ucontrol->value.integer.value[0]) wm_chswap_put()
265 ak4396_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4396_dac_vol_get() argument
393 wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_dac_vol_get() argument
441 wm8766_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8766_vol_get() argument
492 wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_get() argument
503 wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_master_vol_put() argument
566 wm_adc_mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_enum_get() argument
577 wm_adc_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_enum_put() argument
615 wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_get() argument
632 wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_vol_put() argument
659 wm_adc_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_get() argument
672 wm_adc_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adc_mux_put() argument
699 wm_bypass_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_bypass_get() argument
711 wm_bypass_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_bypass_put() argument
737 wm_chswap_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_chswap_get() argument
749 wm_chswap_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_chswap_put() argument
H A Dice1712.c259 static int snd_ice1712_digmix_route_ac97_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_digmix_route_ac97_get() argument
263 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_ROUTECTRL)) & ICE1712_ROUTE_AC97 ? 1 : 0; snd_ice1712_digmix_route_ac97_get()
267 static int snd_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_digmix_route_ac97_put() argument
275 if (ucontrol->value.integer.value[0]) snd_ice1712_digmix_route_ac97_put()
1303 static int snd_ice1712_pro_mixer_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_mixer_switch_get() argument
1306 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + snd_ice1712_pro_mixer_switch_get()
1310 ucontrol->value.integer.value[0] = snd_ice1712_pro_mixer_switch_get()
1312 ucontrol->value.integer.value[1] = snd_ice1712_pro_mixer_switch_get()
1318 static int snd_ice1712_pro_mixer_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_mixer_switch_put() argument
1321 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + snd_ice1712_pro_mixer_switch_put()
1325 nval = (ucontrol->value.integer.value[0] ? 0 : 0x00008000) | snd_ice1712_pro_mixer_switch_put()
1326 (ucontrol->value.integer.value[1] ? 0 : 0x80000000); snd_ice1712_pro_mixer_switch_put()
1345 static int snd_ice1712_pro_mixer_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_mixer_volume_get() argument
1348 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + snd_ice1712_pro_mixer_volume_get()
1352 ucontrol->value.integer.value[0] = snd_ice1712_pro_mixer_volume_get()
1354 ucontrol->value.integer.value[1] = snd_ice1712_pro_mixer_volume_get()
1360 static int snd_ice1712_pro_mixer_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_mixer_volume_put() argument
1363 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + snd_ice1712_pro_mixer_volume_put()
1367 nval = (ucontrol->value.integer.value[0] & 127) | snd_ice1712_pro_mixer_volume_put()
1368 ((ucontrol->value.integer.value[1] & 127) << 16); snd_ice1712_pro_mixer_volume_put()
1625 struct snd_ctl_elem_value *ucontrol) snd_ice1712_eeprom_get()
1629 memcpy(ucontrol->value.bytes.data, &ice->eeprom, sizeof(ice->eeprom)); snd_ice1712_eeprom_get()
1652 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_default_get()
1656 ice->spdif.ops.default_get(ice, ucontrol); snd_ice1712_spdif_default_get()
1661 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_default_put()
1665 return ice->spdif.ops.default_put(ice, ucontrol); snd_ice1712_spdif_default_put()
1679 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_maskc_get()
1683 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | snd_ice1712_spdif_maskc_get()
1687 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL | snd_ice1712_spdif_maskc_get()
1689 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; snd_ice1712_spdif_maskc_get()
1691 ucontrol->value.iec958.status[0] = 0xff; snd_ice1712_spdif_maskc_get()
1692 ucontrol->value.iec958.status[1] = 0xff; snd_ice1712_spdif_maskc_get()
1693 ucontrol->value.iec958.status[2] = 0xff; snd_ice1712_spdif_maskc_get()
1694 ucontrol->value.iec958.status[3] = 0xff; snd_ice1712_spdif_maskc_get()
1695 ucontrol->value.iec958.status[4] = 0xff; snd_ice1712_spdif_maskc_get()
1701 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_maskp_get()
1705 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | snd_ice1712_spdif_maskp_get()
1709 ucontrol->value.iec958.status[1] = IEC958_AES1_PRO_MODE; snd_ice1712_spdif_maskp_get()
1711 ucontrol->value.iec958.status[0] = 0xff; snd_ice1712_spdif_maskp_get()
1712 ucontrol->value.iec958.status[1] = 0xff; snd_ice1712_spdif_maskp_get()
1713 ucontrol->value.iec958.status[2] = 0xff; snd_ice1712_spdif_maskp_get()
1714 ucontrol->value.iec958.status[3] = 0xff; snd_ice1712_spdif_maskp_get()
1715 ucontrol->value.iec958.status[4] = 0xff; snd_ice1712_spdif_maskp_get()
1739 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_stream_get()
1743 ice->spdif.ops.stream_get(ice, ucontrol); snd_ice1712_spdif_stream_get()
1748 struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_stream_put()
1752 return ice->spdif.ops.stream_put(ice, ucontrol); snd_ice1712_spdif_stream_put()
1768 struct snd_ctl_elem_value *ucontrol) snd_ice1712_gpio_get()
1775 ucontrol->value.integer.value[0] = snd_ice1712_gpio_get()
1782 struct snd_ctl_elem_value *ucontrol) snd_ice1712_gpio_put()
1791 nval = (ucontrol->value.integer.value[0] ? mask : 0) ^ invert; snd_ice1712_gpio_put()
1827 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_get()
1837 ucontrol->value.enumerated.item[0] = 13; snd_ice1712_pro_internal_clock_get()
1844 ucontrol->value.enumerated.item[0] = val; snd_ice1712_pro_internal_clock_get()
1851 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_put()
1863 if (ucontrol->value.enumerated.item[0] == 13) { snd_ice1712_pro_internal_clock_put()
1866 PRO_RATE_DEFAULT = xrate[ucontrol->value.integer.value[0] % 13]; snd_ice1712_pro_internal_clock_put()
1912 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_default_get()
1925 ucontrol->value.enumerated.item[0] = val; snd_ice1712_pro_internal_clock_default_get()
1930 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_default_put()
1940 PRO_RATE_DEFAULT = xrate[ucontrol->value.integer.value[0] % 13]; snd_ice1712_pro_internal_clock_default_put()
1957 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_locking_get()
1959 ucontrol->value.integer.value[0] = PRO_RATE_LOCKED; snd_ice1712_pro_rate_locking_get()
1964 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_locking_put()
1969 nval = ucontrol->value.integer.value[0] ? 1 : 0; snd_ice1712_pro_rate_locking_put()
1988 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_reset_get()
1990 ucontrol->value.integer.value[0] = PRO_RATE_RESET; snd_ice1712_pro_rate_reset_get()
1995 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_reset_put()
2000 nval = ucontrol->value.integer.value[0] ? 1 : 0; snd_ice1712_pro_rate_reset_put()
2034 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_analog_get()
2037 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_pro_route_analog_get()
2049 ucontrol->value.enumerated.item[0] = 11; snd_ice1712_pro_route_analog_get()
2051 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; snd_ice1712_pro_route_analog_get()
2053 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; snd_ice1712_pro_route_analog_get()
2055 ucontrol->value.enumerated.item[0] = 0; snd_ice1712_pro_route_analog_get()
2060 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_analog_put()
2064 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_pro_route_analog_put()
2068 if (ucontrol->value.enumerated.item[0] >= 11) snd_ice1712_pro_route_analog_put()
2070 else if (ucontrol->value.enumerated.item[0] >= 9) snd_ice1712_pro_route_analog_put()
2072 else if (ucontrol->value.enumerated.item[0] >= 1) snd_ice1712_pro_route_analog_put()
2093 nval = ucontrol->value.enumerated.item[0] - 1; snd_ice1712_pro_route_analog_put()
2097 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; snd_ice1712_pro_route_analog_put()
2110 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_spdif_get()
2113 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_pro_route_spdif_get()
2119 ucontrol->value.enumerated.item[0] = 11; snd_ice1712_pro_route_spdif_get()
2121 ucontrol->value.enumerated.item[0] = (cval & 7) + 1; snd_ice1712_pro_route_spdif_get()
2123 ucontrol->value.enumerated.item[0] = ((cval >> 3) & 1) + 9; snd_ice1712_pro_route_spdif_get()
2125 ucontrol->value.enumerated.item[0] = 0; snd_ice1712_pro_route_spdif_get()
2130 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_spdif_put()
2134 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_pro_route_spdif_put()
2140 if (ucontrol->value.enumerated.item[0] >= 11) snd_ice1712_pro_route_spdif_put()
2142 else if (ucontrol->value.enumerated.item[0] >= 9) snd_ice1712_pro_route_spdif_put()
2144 else if (ucontrol->value.enumerated.item[0] >= 1) snd_ice1712_pro_route_spdif_put()
2153 nval = ucontrol->value.enumerated.item[0] - 1; snd_ice1712_pro_route_spdif_put()
2157 nval = (ucontrol->value.enumerated.item[0] - 9) << 3; snd_ice1712_pro_route_spdif_put()
2197 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_volume_rate_get()
2201 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_RATE)); snd_ice1712_pro_volume_rate_get()
2206 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_volume_rate_put()
2212 change = inb(ICEMT(ice, MONITOR_RATE)) != ucontrol->value.integer.value[0]; snd_ice1712_pro_volume_rate_put()
2213 outb(ucontrol->value.integer.value[0], ICEMT(ice, MONITOR_RATE)); snd_ice1712_pro_volume_rate_put()
2237 struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_peak_get()
2245 ucontrol->value.integer.value[idx] = inb(ICEMT(ice, MONITOR_PEAKDATA)); snd_ice1712_pro_peak_get()
1624 snd_ice1712_eeprom_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_eeprom_get() argument
1651 snd_ice1712_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_default_get() argument
1660 snd_ice1712_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_default_put() argument
1678 snd_ice1712_spdif_maskc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_maskc_get() argument
1700 snd_ice1712_spdif_maskp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_maskp_get() argument
1738 snd_ice1712_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_stream_get() argument
1747 snd_ice1712_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_spdif_stream_put() argument
1767 snd_ice1712_gpio_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_gpio_get() argument
1781 snd_ice1712_gpio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_gpio_put() argument
1826 snd_ice1712_pro_internal_clock_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_get() argument
1850 snd_ice1712_pro_internal_clock_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_put() argument
1911 snd_ice1712_pro_internal_clock_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_default_get() argument
1929 snd_ice1712_pro_internal_clock_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_internal_clock_default_put() argument
1956 snd_ice1712_pro_rate_locking_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_locking_get() argument
1963 snd_ice1712_pro_rate_locking_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_locking_put() argument
1987 snd_ice1712_pro_rate_reset_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_reset_get() argument
1994 snd_ice1712_pro_rate_reset_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_rate_reset_put() argument
2033 snd_ice1712_pro_route_analog_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_analog_get() argument
2059 snd_ice1712_pro_route_analog_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_analog_put() argument
2109 snd_ice1712_pro_route_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_spdif_get() argument
2129 snd_ice1712_pro_route_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_route_spdif_put() argument
2196 snd_ice1712_pro_volume_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_volume_rate_get() argument
2205 snd_ice1712_pro_volume_rate_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_volume_rate_put() argument
2236 snd_ice1712_pro_peak_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_pro_peak_get() argument
H A Dews.c266 static void ews88_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) ews88_spdif_default_get() argument
268 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); ews88_spdif_default_get()
271 static int ews88_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) ews88_spdif_default_put() argument
276 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); ews88_spdif_default_put()
289 static void ews88_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) ews88_spdif_stream_get() argument
291 snd_cs8404_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); ews88_spdif_stream_get()
294 static int ews88_spdif_stream_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) ews88_spdif_stream_put() argument
299 val = snd_cs8404_encode_spdif_bits(&ucontrol->value.iec958); ews88_spdif_stream_put()
586 static int snd_ice1712_ewx_io_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ewx_io_sense_get() argument
592 ucontrol->value.enumerated.item[0] = snd_ice1712_read(ice, ICE1712_IREG_GPIO_DATA) & mask ? 1 : 0; snd_ice1712_ewx_io_sense_get()
597 static int snd_ice1712_ewx_io_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ewx_io_sense_put() argument
605 nval = ucontrol->value.enumerated.item[0] ? mask : 0; snd_ice1712_ewx_io_sense_put()
638 static int snd_ice1712_ews88mt_output_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88mt_output_sense_get() argument
650 ucontrol->value.enumerated.item[0] = data & ICE1712_EWS88MT_OUTPUT_SENSE ? 1 : 0; /* high = -10dBV, low = +4dBu */ snd_ice1712_ews88mt_output_sense_get()
655 static int snd_ice1712_ews88mt_output_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88mt_output_sense_put() argument
666 ndata = (data & ~ICE1712_EWS88MT_OUTPUT_SENSE) | (ucontrol->value.enumerated.item[0] ? ICE1712_EWS88MT_OUTPUT_SENSE : 0); snd_ice1712_ews88mt_output_sense_put()
677 static int snd_ice1712_ews88mt_input_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88mt_input_sense_get() argument
681 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_ews88mt_input_sense_get()
692 ucontrol->value.enumerated.item[0] = data & (1 << channel) ? 0 : 1; snd_ice1712_ews88mt_input_sense_get()
698 static int snd_ice1712_ews88mt_input_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88mt_input_sense_put() argument
702 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_ice1712_ews88mt_input_sense_put()
712 ndata = (data & ~(1 << channel)) | (ucontrol->value.enumerated.item[0] ? 0 : (1 << channel)); snd_ice1712_ews88mt_input_sense_put()
746 static int snd_ice1712_ews88d_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88d_control_get() argument
763 ucontrol->value.integer.value[0] = data[0]; snd_ice1712_ews88d_control_get()
767 static int snd_ice1712_ews88d_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_ews88d_control_put() argument
783 if (! ucontrol->value.integer.value[0]) snd_ice1712_ews88d_control_put()
786 if (ucontrol->value.integer.value[0]) snd_ice1712_ews88d_control_put()
858 static int snd_ice1712_6fire_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_6fire_control_get() argument
870 ucontrol->value.integer.value[0] = data; snd_ice1712_6fire_control_get()
874 static int snd_ice1712_6fire_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_6fire_control_put() argument
884 if (ucontrol->value.integer.value[0]) snd_ice1712_6fire_control_put()
903 static int snd_ice1712_6fire_select_input_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_6fire_select_input_get() argument
910 ucontrol->value.integer.value[0] = data & 3; snd_ice1712_6fire_select_input_get()
914 static int snd_ice1712_6fire_select_input_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_6fire_select_input_put() argument
922 ndata |= (ucontrol->value.integer.value[0] & 3); snd_ice1712_6fire_select_input_put()
H A Dice1724.c685 /* force means the rate was switched by ucontrol, otherwise snd_vt1724_set_pro_rate()
1595 struct snd_ctl_elem_value *ucontrol) snd_vt1724_eeprom_get()
1599 memcpy(ucontrol->value.bytes.data, &ice->eeprom, sizeof(ice->eeprom)); snd_vt1724_eeprom_get()
1692 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_default_get()
1697 decode_spdif_bits(&ucontrol->value.iec958, val); snd_vt1724_spdif_default_get()
1702 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_default_put()
1707 val = encode_spdif_bits(&ucontrol->value.iec958); snd_vt1724_spdif_default_put()
1726 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_maskc_get()
1728 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | snd_vt1724_spdif_maskc_get()
1732 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL | snd_vt1724_spdif_maskc_get()
1734 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; snd_vt1724_spdif_maskc_get()
1739 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_maskp_get()
1741 ucontrol->value.iec958.status[0] = IEC958_AES0_NONAUDIO | snd_vt1724_spdif_maskp_get()
1769 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_sw_get()
1772 ucontrol->value.integer.value[0] = inb(ICEREG1724(ice, SPDIF_CFG)) & snd_vt1724_spdif_sw_get()
1778 struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_sw_put()
1786 if (ucontrol->value.integer.value[0]) snd_vt1724_spdif_sw_put()
1814 struct snd_ctl_elem_value *ucontrol)
1821 ucontrol->value.integer.value[0] =
1828 struct snd_ctl_elem_value *ucontrol)
1837 nval = (ucontrol->value.integer.value[0] ? (1 << shift) : 0) ^ invert;
1881 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_internal_clock_get()
1888 ucontrol->value.enumerated.item[0] = ice->hw_rates->count + snd_vt1724_pro_internal_clock_get()
1892 ucontrol->value.enumerated.item[0] = 0; snd_vt1724_pro_internal_clock_get()
1895 ucontrol->value.enumerated.item[0] = i; snd_vt1724_pro_internal_clock_get()
1925 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_internal_clock_put()
1929 unsigned int item = ucontrol->value.enumerated.item[0]; snd_vt1724_pro_internal_clock_put()
1980 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_locking_get()
1982 ucontrol->value.integer.value[0] = PRO_RATE_LOCKED; snd_vt1724_pro_rate_locking_get()
1987 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_locking_put()
1992 nval = ucontrol->value.integer.value[0] ? 1 : 0; snd_vt1724_pro_rate_locking_put()
2011 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_reset_get()
2013 ucontrol->value.integer.value[0] = PRO_RATE_RESET ? 1 : 0; snd_vt1724_pro_rate_reset_get()
2018 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_reset_put()
2023 nval = ucontrol->value.integer.value[0] ? 1 : 0; snd_vt1724_pro_rate_reset_put()
2108 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_analog_get()
2111 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_vt1724_pro_route_analog_get()
2112 ucontrol->value.enumerated.item[0] = snd_vt1724_pro_route_analog_get()
2118 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_analog_put()
2121 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_vt1724_pro_route_analog_put()
2123 ucontrol->value.enumerated.item[0], snd_vt1724_pro_route_analog_put()
2128 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_spdif_get()
2131 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_vt1724_pro_route_spdif_get()
2132 ucontrol->value.enumerated.item[0] = snd_vt1724_pro_route_spdif_get()
2138 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_spdif_put()
2141 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_vt1724_pro_route_spdif_put()
2143 ucontrol->value.enumerated.item[0], snd_vt1724_pro_route_spdif_put()
2177 struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_peak_get()
2185 ucontrol->value.integer.value[idx] = snd_vt1724_pro_peak_get()
1594 snd_vt1724_eeprom_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_eeprom_get() argument
1691 snd_vt1724_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_default_get() argument
1701 snd_vt1724_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_default_put() argument
1725 snd_vt1724_spdif_maskc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_maskc_get() argument
1738 snd_vt1724_spdif_maskp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_maskp_get() argument
1768 snd_vt1724_spdif_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_sw_get() argument
1777 snd_vt1724_spdif_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_spdif_sw_put() argument
1880 snd_vt1724_pro_internal_clock_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_internal_clock_get() argument
1924 snd_vt1724_pro_internal_clock_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_internal_clock_put() argument
1979 snd_vt1724_pro_rate_locking_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_locking_get() argument
1986 snd_vt1724_pro_rate_locking_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_locking_put() argument
2010 snd_vt1724_pro_rate_reset_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_reset_get() argument
2017 snd_vt1724_pro_rate_reset_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_rate_reset_put() argument
2107 snd_vt1724_pro_route_analog_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_analog_get() argument
2117 snd_vt1724_pro_route_analog_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_analog_put() argument
2127 snd_vt1724_pro_route_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_spdif_get() argument
2137 snd_vt1724_pro_route_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_route_spdif_put() argument
2176 snd_vt1724_pro_peak_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vt1724_pro_peak_get() argument
H A Dwm8766.c220 struct snd_ctl_elem_value *ucontrol) snd_wm8766_ctl_get()
243 ucontrol->value.integer.value[0] = val1; snd_wm8766_ctl_get()
245 ucontrol->value.integer.value[1] = val2; snd_wm8766_ctl_get()
251 struct snd_ctl_elem_value *ucontrol) snd_wm8766_ctl_put()
258 regval1 = ucontrol->value.integer.value[0]; snd_wm8766_ctl_put()
259 regval2 = ucontrol->value.integer.value[1]; snd_wm8766_ctl_put()
219 snd_wm8766_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wm8766_ctl_get() argument
250 snd_wm8766_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wm8766_ctl_put() argument
H A Dquartet.c515 struct snd_ctl_elem_value *ucontrol) qtet_mute_get()
520 ucontrol->value.integer.value[0] = (val) ? 0 : 1; qtet_mute_get()
525 struct snd_ctl_elem_value *ucontrol) qtet_mute_put()
530 if (ucontrol->value.integer.value[0]) { qtet_mute_put()
561 struct snd_ctl_elem_value *ucontrol) qtet_ain12_sw_get()
581 ucontrol->value.integer.value[0] = result; qtet_ain12_sw_get()
586 struct snd_ctl_elem_value *ucontrol) qtet_ain12_sw_put()
592 tmp = ucontrol->value.integer.value[0]; qtet_ain12_sw_put()
630 struct snd_ctl_elem_value *ucontrol) qtet_php_get()
636 ucontrol->value.integer.value[0] = val ? 1 : 0; qtet_php_get()
641 struct snd_ctl_elem_value *ucontrol) qtet_php_put()
646 if (ucontrol->value.integer.value[0] /* phantom on requested */ qtet_php_put()
655 } else if (!ucontrol->value.integer.value[0] && (old & SCR_PHP_V)) { qtet_php_put()
704 struct snd_ctl_elem_value *ucontrol) qtet_sw_get()
709 ucontrol->value.integer.value[0] = qtet_sw_get()
715 struct snd_ctl_elem_value *ucontrol) qtet_sw_put()
722 if (ucontrol->value.integer.value[0]) qtet_sw_put()
514 qtet_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_mute_get() argument
524 qtet_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_mute_put() argument
560 qtet_ain12_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_ain12_sw_get() argument
585 qtet_ain12_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_ain12_sw_put() argument
629 qtet_php_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_php_get() argument
640 qtet_php_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_php_put() argument
703 qtet_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_sw_get() argument
714 qtet_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) qtet_sw_put() argument
H A Ddelta.c211 static void delta_spdif_default_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) delta_spdif_default_get() argument
213 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_bits); delta_spdif_default_get()
216 static int delta_spdif_default_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) delta_spdif_default_put() argument
221 val = snd_cs8403_encode_spdif_bits(&ucontrol->value.iec958); delta_spdif_default_put()
234 static void delta_spdif_stream_get(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) delta_spdif_stream_get() argument
236 snd_cs8403_decode_spdif_bits(&ucontrol->value.iec958, ice->spdif.cs8403_stream_bits); delta_spdif_stream_get()
239 static int delta_spdif_stream_put(struct snd_ice1712 *ice, struct snd_ctl_elem_value *ucontrol) delta_spdif_stream_put() argument
244 val = snd_cs8403_encode_spdif_bits(&ucontrol->value.iec958); delta_spdif_stream_put()
422 struct snd_ctl_elem_value *ucontrol) snd_ice1712_delta1010lt_wordclock_status_get()
431 ucontrol->value.integer.value[0] = (reg & CS8427_UNLOCK) ? 1 : 0; snd_ice1712_delta1010lt_wordclock_status_get()
421 snd_ice1712_delta1010lt_wordclock_status_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ice1712_delta1010lt_wordclock_status_get() argument
H A Dwm8776.c494 struct snd_ctl_elem_value *ucontrol) snd_wm8776_ctl_get()
517 ucontrol->value.integer.value[0] = val1; snd_wm8776_ctl_get()
519 ucontrol->value.integer.value[1] = val2; snd_wm8776_ctl_get()
525 struct snd_ctl_elem_value *ucontrol) snd_wm8776_ctl_put()
532 regval1 = ucontrol->value.integer.value[0]; snd_wm8776_ctl_put()
533 regval2 = ucontrol->value.integer.value[1]; snd_wm8776_ctl_put()
493 snd_wm8776_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wm8776_ctl_get() argument
524 snd_wm8776_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wm8776_ctl_put() argument
H A Dice1712.h288 void (*default_get)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol);
289 int (*default_put)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol);
290 void (*stream_get)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol);
291 int (*stream_put)(struct snd_ice1712 *, struct snd_ctl_elem_value *ucontrol);
460 int snd_ice1712_gpio_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
461 int snd_ice1712_gpio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol);
H A Djuli.c304 struct snd_ctl_elem_value *ucontrol) juli_mute_get()
311 ucontrol->value.integer.value[0] = (val) ? 0 : 1; juli_mute_get()
314 ucontrol->value.integer.value[0] = (val) ? 1 : 0; juli_mute_get()
319 struct snd_ctl_elem_value *ucontrol) juli_mute_put()
324 if (ucontrol->value.integer.value[0]) { juli_mute_put()
350 (unsigned int)ucontrol->value.integer.value[0], old_gpio, juli_mute_put()
303 juli_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) juli_mute_get() argument
318 juli_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) juli_mute_put() argument
H A Dpsc724.c276 struct snd_ctl_elem_value *ucontrol) psc724_ctl_get()
281 ucontrol->value.integer.value[0] = psc724_cont[n].get(ice); psc724_ctl_get()
287 struct snd_ctl_elem_value *ucontrol) psc724_ctl_put()
292 psc724_cont[n].set(ice, ucontrol->value.integer.value[0]); psc724_ctl_put()
275 psc724_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) psc724_ctl_get() argument
286 psc724_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) psc724_ctl_put() argument
/linux-4.1.27/sound/drivers/opl4/
H A Dopl4_mixer.c32 static int snd_opl4_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl4_ctl_get() argument
42 ucontrol->value.integer.value[0] = 7 - (value & 7); snd_opl4_ctl_get()
43 ucontrol->value.integer.value[1] = 7 - ((value >> 3) & 7); snd_opl4_ctl_get()
47 static int snd_opl4_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl4_ctl_put() argument
54 value = (7 - (ucontrol->value.integer.value[0] & 7)) | snd_opl4_ctl_put()
55 ((7 - (ucontrol->value.integer.value[1] & 7)) << 3); snd_opl4_ctl_put()
/linux-4.1.27/sound/drivers/vx/
H A Dvx_mixer.c423 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_output_level_get() argument
428 ucontrol->value.integer.value[0] = chip->output_level[codec][0]; vx_output_level_get()
429 ucontrol->value.integer.value[1] = chip->output_level[codec][1]; vx_output_level_get()
434 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_output_level_put() argument
441 val[0] = ucontrol->value.integer.value[0]; vx_output_level_put()
442 val[1] = ucontrol->value.integer.value[1]; vx_output_level_put()
488 static int vx_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_src_get() argument
491 ucontrol->value.enumerated.item[0] = chip->audio_source_target; vx_audio_src_get()
495 static int vx_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_src_put() argument
500 if (ucontrol->value.enumerated.item[0] > 2) vx_audio_src_put()
503 if (ucontrol->value.enumerated.item[0] > 1) vx_audio_src_put()
507 if (chip->audio_source_target != ucontrol->value.enumerated.item[0]) { vx_audio_src_put()
508 chip->audio_source_target = ucontrol->value.enumerated.item[0]; vx_audio_src_put()
537 static int vx_clock_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_clock_mode_get() argument
540 ucontrol->value.enumerated.item[0] = chip->clock_mode; vx_clock_mode_get()
544 static int vx_clock_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_clock_mode_put() argument
548 if (ucontrol->value.enumerated.item[0] > 2) vx_clock_mode_put()
551 if (chip->clock_mode != ucontrol->value.enumerated.item[0]) { vx_clock_mode_put()
552 chip->clock_mode = ucontrol->value.enumerated.item[0]; vx_clock_mode_put()
581 static int vx_audio_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_gain_get() argument
588 ucontrol->value.integer.value[0] = chip->audio_gain[capture][audio]; vx_audio_gain_get()
589 ucontrol->value.integer.value[1] = chip->audio_gain[capture][audio+1]; vx_audio_gain_get()
594 static int vx_audio_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_gain_put() argument
601 val[0] = ucontrol->value.integer.value[0]; vx_audio_gain_put()
602 val[1] = ucontrol->value.integer.value[1]; vx_audio_gain_put()
617 static int vx_audio_monitor_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_monitor_get() argument
623 ucontrol->value.integer.value[0] = chip->audio_monitor[audio]; vx_audio_monitor_get()
624 ucontrol->value.integer.value[1] = chip->audio_monitor[audio+1]; vx_audio_monitor_get()
629 static int vx_audio_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_monitor_put() argument
635 val[0] = ucontrol->value.integer.value[0]; vx_audio_monitor_put()
636 val[1] = ucontrol->value.integer.value[1]; vx_audio_monitor_put()
656 static int vx_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_sw_get() argument
662 ucontrol->value.integer.value[0] = chip->audio_active[audio]; vx_audio_sw_get()
663 ucontrol->value.integer.value[1] = chip->audio_active[audio+1]; vx_audio_sw_get()
668 static int vx_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_audio_sw_put() argument
674 if (ucontrol->value.integer.value[0] != chip->audio_active[audio] || vx_audio_sw_put()
675 ucontrol->value.integer.value[1] != chip->audio_active[audio+1]) { vx_audio_sw_put()
677 !!ucontrol->value.integer.value[0]); vx_audio_sw_put()
679 !!ucontrol->value.integer.value[1]); vx_audio_sw_put()
687 static int vx_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_monitor_sw_get() argument
693 ucontrol->value.integer.value[0] = chip->audio_monitor_active[audio]; vx_monitor_sw_get()
694 ucontrol->value.integer.value[1] = chip->audio_monitor_active[audio+1]; vx_monitor_sw_get()
699 static int vx_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_monitor_sw_put() argument
705 if (ucontrol->value.integer.value[0] != chip->audio_monitor_active[audio] || vx_monitor_sw_put()
706 ucontrol->value.integer.value[1] != chip->audio_monitor_active[audio+1]) { vx_monitor_sw_put()
708 !!ucontrol->value.integer.value[0]); vx_monitor_sw_put()
710 !!ucontrol->value.integer.value[1]); vx_monitor_sw_put()
766 static int vx_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_iec958_get() argument
771 ucontrol->value.iec958.status[0] = (chip->uer_bits >> 0) & 0xff; vx_iec958_get()
772 ucontrol->value.iec958.status[1] = (chip->uer_bits >> 8) & 0xff; vx_iec958_get()
773 ucontrol->value.iec958.status[2] = (chip->uer_bits >> 16) & 0xff; vx_iec958_get()
774 ucontrol->value.iec958.status[3] = (chip->uer_bits >> 24) & 0xff; vx_iec958_get()
779 static int vx_iec958_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_iec958_mask_get() argument
781 ucontrol->value.iec958.status[0] = 0xff; vx_iec958_mask_get()
782 ucontrol->value.iec958.status[1] = 0xff; vx_iec958_mask_get()
783 ucontrol->value.iec958.status[2] = 0xff; vx_iec958_mask_get()
784 ucontrol->value.iec958.status[3] = 0xff; vx_iec958_mask_get()
788 static int vx_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_iec958_put() argument
793 val = (ucontrol->value.iec958.status[0] << 0) | vx_iec958_put()
794 (ucontrol->value.iec958.status[1] << 8) | vx_iec958_put()
795 (ucontrol->value.iec958.status[2] << 16) | vx_iec958_put()
796 (ucontrol->value.iec958.status[3] << 24); vx_iec958_put()
841 static int vx_vu_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_vu_meter_get() argument
849 ucontrol->value.integer.value[0] = meter[0].vu_level >> METER_SHIFT; vx_vu_meter_get()
850 ucontrol->value.integer.value[1] = meter[1].vu_level >> METER_SHIFT; vx_vu_meter_get()
854 static int vx_peak_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_peak_meter_get() argument
862 ucontrol->value.integer.value[0] = meter[0].peak_level >> METER_SHIFT; vx_peak_meter_get()
863 ucontrol->value.integer.value[1] = meter[1].peak_level >> METER_SHIFT; vx_peak_meter_get()
869 static int vx_saturation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_saturation_get() argument
876 ucontrol->value.integer.value[0] = meter[0].saturated; vx_saturation_get()
877 ucontrol->value.integer.value[1] = meter[1].saturated; vx_saturation_get()
/linux-4.1.27/sound/soc/
H A Dsoc-ops.c58 * @ucontrol: control element information
65 struct snd_ctl_elem_value *ucontrol) snd_soc_get_enum_double()
78 ucontrol->value.enumerated.item[0] = item; snd_soc_get_enum_double()
82 ucontrol->value.enumerated.item[1] = item; snd_soc_get_enum_double()
92 * @ucontrol: control element information
99 struct snd_ctl_elem_value *ucontrol) snd_soc_put_enum_double()
103 unsigned int *item = ucontrol->value.enumerated.item; snd_soc_put_enum_double()
240 * @ucontrol: control element information
248 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw()
272 ucontrol->value.integer.value[0] = val - min; snd_soc_get_volsw()
274 ucontrol->value.integer.value[0] = snd_soc_get_volsw()
275 max - ucontrol->value.integer.value[0]; snd_soc_get_volsw()
287 ucontrol->value.integer.value[1] = val - min; snd_soc_get_volsw()
289 ucontrol->value.integer.value[1] = snd_soc_get_volsw()
290 max - ucontrol->value.integer.value[1]; snd_soc_get_volsw()
300 * @ucontrol: control element information
308 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw()
330 val = ((ucontrol->value.integer.value[0] + min) & mask); snd_soc_put_volsw()
336 val2 = ((ucontrol->value.integer.value[1] + min) & mask); snd_soc_put_volsw()
362 * @ucontrol: control element information
370 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_sx()
389 ucontrol->value.integer.value[0] = ((val >> shift) - min) & mask; snd_soc_get_volsw_sx()
397 ucontrol->value.integer.value[1] = val; snd_soc_get_volsw_sx()
414 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_sx()
431 val = (ucontrol->value.integer.value[0] + min) & mask; snd_soc_put_volsw_sx()
440 val2 = (ucontrol->value.integer.value[1] + min) & mask; snd_soc_put_volsw_sx()
484 * @ucontrol: control element information
491 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_range()
507 val = (max - ucontrol->value.integer.value[0]) & mask; snd_soc_put_volsw_range()
509 val = ((ucontrol->value.integer.value[0] + min) & mask); snd_soc_put_volsw_range()
519 val = (max - ucontrol->value.integer.value[1]) & mask; snd_soc_put_volsw_range()
521 val = ((ucontrol->value.integer.value[1] + min) & mask); snd_soc_put_volsw_range()
536 * @ucontrol: control element information
543 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_range()
562 ucontrol->value.integer.value[0] = (val >> shift) & mask; snd_soc_get_volsw_range()
564 ucontrol->value.integer.value[0] = snd_soc_get_volsw_range()
565 max - ucontrol->value.integer.value[0]; snd_soc_get_volsw_range()
567 ucontrol->value.integer.value[0] = snd_soc_get_volsw_range()
568 ucontrol->value.integer.value[0] - min; snd_soc_get_volsw_range()
575 ucontrol->value.integer.value[1] = (val >> shift) & mask; snd_soc_get_volsw_range()
577 ucontrol->value.integer.value[1] = snd_soc_get_volsw_range()
578 max - ucontrol->value.integer.value[1]; snd_soc_get_volsw_range()
580 ucontrol->value.integer.value[1] = snd_soc_get_volsw_range()
581 ucontrol->value.integer.value[1] - min; snd_soc_get_volsw_range()
641 struct snd_ctl_elem_value *ucontrol) snd_soc_bytes_get()
649 ucontrol->value.bytes.data, snd_soc_bytes_get()
658 ucontrol->value.bytes.data[0] &= ~params->mask; snd_soc_bytes_get()
661 ((u16 *)(&ucontrol->value.bytes.data))[0] snd_soc_bytes_get()
665 ((u32 *)(&ucontrol->value.bytes.data))[0] snd_soc_bytes_get()
678 struct snd_ctl_elem_value *ucontrol) snd_soc_bytes_put()
691 data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA); snd_soc_bytes_put()
761 struct snd_ctl_elem_info *ucontrol) snd_soc_bytes_info_ext()
765 ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; snd_soc_bytes_info_ext()
766 ucontrol->count = params->max; snd_soc_bytes_info_ext()
821 * @ucontrol: control element information
832 struct snd_ctl_elem_value *ucontrol) snd_soc_get_xr_sx()
861 ucontrol->value.integer.value[0] = val; snd_soc_get_xr_sx()
870 * @ucontrol: control element information
881 struct snd_ctl_elem_value *ucontrol) snd_soc_put_xr_sx()
893 long val = ucontrol->value.integer.value[0]; snd_soc_put_xr_sx()
916 * @ucontrol: control element information
923 struct snd_ctl_elem_value *ucontrol) snd_soc_get_strobe()
943 ucontrol->value.enumerated.item[0] = val ^ invert; snd_soc_get_strobe()
952 * @ucontrol: control element information
960 struct snd_ctl_elem_value *ucontrol) snd_soc_put_strobe()
969 unsigned int strobe = ucontrol->value.enumerated.item[0] != 0; snd_soc_put_strobe()
64 snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_enum_double() argument
98 snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_enum_double() argument
247 snd_soc_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw() argument
307 snd_soc_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw() argument
369 snd_soc_get_volsw_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_sx() argument
413 snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_sx() argument
490 snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_range() argument
542 snd_soc_get_volsw_range(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_range() argument
640 snd_soc_bytes_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_bytes_get() argument
677 snd_soc_bytes_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_bytes_put() argument
760 snd_soc_bytes_info_ext(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ucontrol) snd_soc_bytes_info_ext() argument
831 snd_soc_get_xr_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_xr_sx() argument
880 snd_soc_put_xr_sx(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_xr_sx() argument
922 snd_soc_get_strobe(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_strobe() argument
959 snd_soc_put_strobe(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_strobe() argument
H A Dsoc-dapm.c2785 * @ucontrol: control element information
2792 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_volsw()
2821 ucontrol->value.integer.value[0] = max - val; snd_soc_dapm_get_volsw()
2823 ucontrol->value.integer.value[0] = val; snd_soc_dapm_get_volsw()
2832 * @ucontrol: control element information
2839 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_volsw()
2860 val = (ucontrol->value.integer.value[0] & mask); snd_soc_dapm_put_volsw()
2904 * @ucontrol: control element information
2911 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_enum_double()
2926 ucontrol->value.enumerated.item[0] = snd_soc_enum_val_to_item(e, val); snd_soc_dapm_get_enum_double()
2930 ucontrol->value.enumerated.item[1] = val; snd_soc_dapm_get_enum_double()
2940 * @ucontrol: control element information
2947 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_enum_double()
2952 unsigned int *item = ucontrol->value.enumerated.item; snd_soc_dapm_put_enum_double()
3024 * @ucontrol: Value
3027 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_pin_switch()
3034 ucontrol->value.integer.value[0] = snd_soc_dapm_get_pin_switch()
3047 * @ucontrol: Value
3050 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_pin_switch()
3055 if (ucontrol->value.integer.value[0]) snd_soc_dapm_put_pin_switch()
3323 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_dai_link_get()
3327 ucontrol->value.enumerated.item[0] = w->params_select; snd_soc_dapm_dai_link_get()
3333 struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_dai_link_put()
3341 if (ucontrol->value.enumerated.item[0] == w->params_select) snd_soc_dapm_dai_link_put()
3344 if (ucontrol->value.enumerated.item[0] >= w->num_params) snd_soc_dapm_dai_link_put()
3347 w->params_select = ucontrol->value.enumerated.item[0]; snd_soc_dapm_dai_link_put()
2791 snd_soc_dapm_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_volsw() argument
2838 snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_volsw() argument
2910 snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_enum_double() argument
2946 snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_enum_double() argument
3026 snd_soc_dapm_get_pin_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_get_pin_switch() argument
3049 snd_soc_dapm_put_pin_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_put_pin_switch() argument
3322 snd_soc_dapm_dai_link_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_dai_link_get() argument
3332 snd_soc_dapm_dai_link_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_dapm_dai_link_put() argument
/linux-4.1.27/sound/isa/sb/
H A Dsb_mixer.c71 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sbmixer_get_single() argument
83 ucontrol->value.integer.value[0] = val; snd_sbmixer_get_single()
87 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sbmixer_put_single() argument
97 val = (ucontrol->value.integer.value[0] & mask) << shift; snd_sbmixer_put_single()
123 static int snd_sbmixer_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sbmixer_get_double() argument
138 ucontrol->value.integer.value[0] = left; snd_sbmixer_get_double()
139 ucontrol->value.integer.value[1] = right; snd_sbmixer_get_double()
143 static int snd_sbmixer_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sbmixer_put_double() argument
155 left = (ucontrol->value.integer.value[0] & mask) << left_shift; snd_sbmixer_put_double()
156 right = (ucontrol->value.integer.value[1] & mask) << right_shift; snd_sbmixer_put_double()
192 static int snd_dt019x_input_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dt019x_input_sw_get() argument
203 ucontrol->value.enumerated.item[0] = 0; snd_dt019x_input_sw_get()
206 ucontrol->value.enumerated.item[0] = 1; snd_dt019x_input_sw_get()
209 ucontrol->value.enumerated.item[0] = 2; snd_dt019x_input_sw_get()
212 ucontrol->value.enumerated.item[0] = 4; snd_dt019x_input_sw_get()
218 * ucontrol->value.enumerated.item[0] = 3; snd_dt019x_input_sw_get()
222 ucontrol->value.enumerated.item[0] = 4; snd_dt019x_input_sw_get()
228 static int snd_dt019x_input_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dt019x_input_sw_put() argument
235 if (ucontrol->value.enumerated.item[0] > 4) snd_dt019x_input_sw_put()
237 switch (ucontrol->value.enumerated.item[0]) { snd_dt019x_input_sw_put()
280 struct snd_ctl_elem_value *ucontrol) snd_als4k_mono_capture_route_get()
293 ucontrol->value.enumerated.item[0] = oval; snd_als4k_mono_capture_route_get()
298 struct snd_ctl_elem_value *ucontrol) snd_als4k_mono_capture_route_put()
305 if (ucontrol->value.enumerated.item[0] > 2) snd_als4k_mono_capture_route_put()
311 | (ucontrol->value.enumerated.item[0] << 6); snd_als4k_mono_capture_route_put()
333 static int snd_sb8mixer_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb8mixer_get_mux() argument
344 ucontrol->value.enumerated.item[0] = 1; snd_sb8mixer_get_mux()
347 ucontrol->value.enumerated.item[0] = 2; snd_sb8mixer_get_mux()
350 ucontrol->value.enumerated.item[0] = 0; snd_sb8mixer_get_mux()
356 static int snd_sb8mixer_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb8mixer_put_mux() argument
363 if (ucontrol->value.enumerated.item[0] > 2) snd_sb8mixer_put_mux()
365 switch (ucontrol->value.enumerated.item[0]) { snd_sb8mixer_put_mux()
399 static int snd_sb16mixer_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb16mixer_get_input_sw() argument
413 ucontrol->value.integer.value[0] = (val1 >> left_shift) & 0x01; snd_sb16mixer_get_input_sw()
414 ucontrol->value.integer.value[1] = (val2 >> left_shift) & 0x01; snd_sb16mixer_get_input_sw()
415 ucontrol->value.integer.value[2] = (val1 >> right_shift) & 0x01; snd_sb16mixer_get_input_sw()
416 ucontrol->value.integer.value[3] = (val2 >> right_shift) & 0x01; snd_sb16mixer_get_input_sw()
420 static int snd_sb16mixer_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb16mixer_put_input_sw() argument
436 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; snd_sb16mixer_put_input_sw()
437 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; snd_sb16mixer_put_input_sw()
438 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; snd_sb16mixer_put_input_sw()
439 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; snd_sb16mixer_put_input_sw()
279 snd_als4k_mono_capture_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_als4k_mono_capture_route_get() argument
297 snd_als4k_mono_capture_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_als4k_mono_capture_route_put() argument
H A Demu8000.c842 static int mixer_bass_treble_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_bass_treble_get() argument
846 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->treble_level : emu->bass_level; mixer_bass_treble_get()
850 static int mixer_bass_treble_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_bass_treble_put() argument
857 val1 = ucontrol->value.integer.value[0] % 12; mixer_bass_treble_put()
903 static int mixer_chorus_reverb_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_chorus_reverb_get() argument
907 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->chorus_mode : emu->reverb_mode; mixer_chorus_reverb_get()
911 static int mixer_chorus_reverb_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_chorus_reverb_put() argument
920 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_CHORUS_NUMBERS; mixer_chorus_reverb_put()
924 val1 = ucontrol->value.integer.value[0] % SNDRV_EMU8000_REVERB_NUMBERS; mixer_chorus_reverb_put()
970 static int mixer_fm_depth_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_fm_depth_get() argument
974 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->fm_chorus_depth : emu->fm_reverb_depth; mixer_fm_depth_get()
978 static int mixer_fm_depth_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_fm_depth_put() argument
985 val1 = ucontrol->value.integer.value[0] % 256; mixer_fm_depth_put()
H A Dsb16_csp.c966 static int snd_sb_qsound_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb_qsound_switch_get() argument
970 ucontrol->value.integer.value[0] = p->q_enabled ? 1 : 0; snd_sb_qsound_switch_get()
974 static int snd_sb_qsound_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb_qsound_switch_put() argument
981 nval = ucontrol->value.integer.value[0] & 0x01; snd_sb_qsound_switch_put()
998 static int snd_sb_qsound_space_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb_qsound_space_get() argument
1004 ucontrol->value.integer.value[0] = p->qpos_left; snd_sb_qsound_space_get()
1005 ucontrol->value.integer.value[1] = p->qpos_right; snd_sb_qsound_space_get()
1010 static int snd_sb_qsound_space_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb_qsound_space_put() argument
1017 nval1 = ucontrol->value.integer.value[0]; snd_sb_qsound_space_put()
1020 nval2 = ucontrol->value.integer.value[1]; snd_sb_qsound_space_put()
H A Dsb16_main.c712 static int snd_sb16_dma_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb16_dma_control_get() argument
718 ucontrol->value.enumerated.item[0] = snd_sb16_get_dma_mode(chip); snd_sb16_dma_control_get()
723 static int snd_sb16_dma_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sb16_dma_control_put() argument
730 if ((nval = ucontrol->value.enumerated.item[0]) > 2) snd_sb16_dma_control_put()
/linux-4.1.27/sound/ppc/
H A Ddaca.c96 struct snd_ctl_elem_value *ucontrol) daca_get_deemphasis()
102 ucontrol->value.integer.value[0] = mix->deemphasis ? 1 : 0; daca_get_deemphasis()
107 struct snd_ctl_elem_value *ucontrol) daca_put_deemphasis()
115 change = mix->deemphasis != ucontrol->value.integer.value[0]; daca_put_deemphasis()
117 mix->deemphasis = !!ucontrol->value.integer.value[0]; daca_put_deemphasis()
135 struct snd_ctl_elem_value *ucontrol) daca_get_volume()
141 ucontrol->value.integer.value[0] = mix->left_vol; daca_get_volume()
142 ucontrol->value.integer.value[1] = mix->right_vol; daca_get_volume()
147 struct snd_ctl_elem_value *ucontrol) daca_put_volume()
156 vol[0] = ucontrol->value.integer.value[0]; daca_put_volume()
157 vol[1] = ucontrol->value.integer.value[1]; daca_put_volume()
174 struct snd_ctl_elem_value *ucontrol) daca_get_amp()
180 ucontrol->value.integer.value[0] = mix->amp_on ? 1 : 0; daca_get_amp()
185 struct snd_ctl_elem_value *ucontrol) daca_put_amp()
193 change = mix->amp_on != ucontrol->value.integer.value[0]; daca_put_amp()
195 mix->amp_on = !!ucontrol->value.integer.value[0]; daca_put_amp()
95 daca_get_deemphasis(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_get_deemphasis() argument
106 daca_put_deemphasis(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_put_deemphasis() argument
134 daca_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_get_volume() argument
146 daca_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_put_volume() argument
173 daca_get_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_get_amp() argument
184 daca_put_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) daca_put_amp() argument
H A Dburgundy.c185 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_volume()
191 ucontrol->value.integer.value, shift); snd_pmac_burgundy_get_volume()
196 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_volume()
204 ucontrol->value.integer.value, shift); snd_pmac_burgundy_put_volume()
206 return (nvoices[0] != ucontrol->value.integer.value[0] || snd_pmac_burgundy_put_volume()
207 nvoices[1] != ucontrol->value.integer.value[1]); snd_pmac_burgundy_put_volume()
261 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_volume_2b()
267 ucontrol->value.integer.value, off); snd_pmac_burgundy_get_volume_2b()
272 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_volume_2b()
280 ucontrol->value.integer.value, off); snd_pmac_burgundy_put_volume_2b()
282 return (nvoices[0] != ucontrol->value.integer.value[0] || snd_pmac_burgundy_put_volume_2b()
283 nvoices[1] != ucontrol->value.integer.value[1]); snd_pmac_burgundy_put_volume_2b()
308 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_gain()
319 ucontrol->value.integer.value[0] = oval & 0xf; snd_pmac_burgundy_get_gain()
321 ucontrol->value.integer.value[1] = (oval >> 4) & 0xf; snd_pmac_burgundy_get_gain()
326 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_gain()
337 val = ucontrol->value.integer.value[0]; snd_pmac_burgundy_put_gain()
339 val |= ucontrol->value.integer.value[1] << 4; snd_pmac_burgundy_put_gain()
341 val |= ucontrol->value.integer.value[0] << 4; snd_pmac_burgundy_put_gain()
370 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_switch_w()
378 ucontrol->value.integer.value[0] = (val & lmask) ? 1 : 0; snd_pmac_burgundy_get_switch_w()
380 ucontrol->value.integer.value[1] = (val & rmask) ? 1 : 0; snd_pmac_burgundy_get_switch_w()
385 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_switch_w()
395 if (ucontrol->value.integer.value[0]) snd_pmac_burgundy_put_switch_w()
397 if (stereo && ucontrol->value.integer.value[1]) snd_pmac_burgundy_put_switch_w()
426 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_switch_b()
434 ucontrol->value.integer.value[0] = (val & lmask) ? 1 : 0; snd_pmac_burgundy_get_switch_b()
436 ucontrol->value.integer.value[1] = (val & rmask) ? 1 : 0; snd_pmac_burgundy_get_switch_b()
441 struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_switch_b()
451 if (ucontrol->value.integer.value[0]) snd_pmac_burgundy_put_switch_b()
453 if (stereo && ucontrol->value.integer.value[1]) snd_pmac_burgundy_put_switch_b()
184 snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_volume() argument
195 snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_volume() argument
260 snd_pmac_burgundy_get_volume_2b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_volume_2b() argument
271 snd_pmac_burgundy_put_volume_2b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_volume_2b() argument
307 snd_pmac_burgundy_get_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_gain() argument
325 snd_pmac_burgundy_put_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_gain() argument
369 snd_pmac_burgundy_get_switch_w(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_switch_w() argument
384 snd_pmac_burgundy_put_switch_w(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_switch_w() argument
425 snd_pmac_burgundy_get_switch_b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_get_switch_b() argument
440 snd_pmac_burgundy_put_switch_b(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_burgundy_put_switch_b() argument
H A Dtumbler.c267 struct snd_ctl_elem_value *ucontrol) tumbler_get_master_volume()
272 ucontrol->value.integer.value[0] = mix->master_vol[0]; tumbler_get_master_volume()
273 ucontrol->value.integer.value[1] = mix->master_vol[1]; tumbler_get_master_volume()
278 struct snd_ctl_elem_value *ucontrol) tumbler_put_master_volume()
285 vol[0] = ucontrol->value.integer.value[0]; tumbler_put_master_volume()
286 vol[1] = ucontrol->value.integer.value[1]; tumbler_put_master_volume()
302 struct snd_ctl_elem_value *ucontrol) tumbler_get_master_switch()
307 ucontrol->value.integer.value[0] = mix->master_switch[0]; tumbler_get_master_switch()
308 ucontrol->value.integer.value[1] = mix->master_switch[1]; tumbler_get_master_switch()
313 struct snd_ctl_elem_value *ucontrol) tumbler_put_master_switch()
319 change = mix->master_switch[0] != ucontrol->value.integer.value[0] || tumbler_put_master_switch()
320 mix->master_switch[1] != ucontrol->value.integer.value[1]; tumbler_put_master_switch()
322 mix->master_switch[0] = !!ucontrol->value.integer.value[0]; tumbler_put_master_switch()
323 mix->master_switch[1] = !!ucontrol->value.integer.value[1]; tumbler_put_master_switch()
415 struct snd_ctl_elem_value *ucontrol) tumbler_get_drc_value()
421 ucontrol->value.integer.value[0] = mix->drc_range; tumbler_get_drc_value()
426 struct snd_ctl_elem_value *ucontrol) tumbler_put_drc_value()
435 val = ucontrol->value.integer.value[0]; tumbler_put_drc_value()
455 struct snd_ctl_elem_value *ucontrol) tumbler_get_drc_switch()
461 ucontrol->value.integer.value[0] = mix->drc_enable; tumbler_get_drc_switch()
466 struct snd_ctl_elem_value *ucontrol) tumbler_put_drc_switch()
474 change = mix->drc_enable != ucontrol->value.integer.value[0]; tumbler_put_drc_switch()
476 mix->drc_enable = !!ucontrol->value.integer.value[0]; tumbler_put_drc_switch()
536 struct snd_ctl_elem_value *ucontrol) tumbler_get_mono()
543 ucontrol->value.integer.value[0] = mix->mono_vol[info->index]; tumbler_get_mono()
548 struct snd_ctl_elem_value *ucontrol) tumbler_put_mono()
558 vol = ucontrol->value.integer.value[0]; tumbler_put_mono()
681 struct snd_ctl_elem_value *ucontrol) snapper_get_mix()
688 ucontrol->value.integer.value[0] = mix->mix_vol[idx][0]; snapper_get_mix()
689 ucontrol->value.integer.value[1] = mix->mix_vol[idx][1]; snapper_get_mix()
694 struct snd_ctl_elem_value *ucontrol) snapper_put_mix()
704 vol[0] = ucontrol->value.integer.value[0]; snapper_put_mix()
705 vol[1] = ucontrol->value.integer.value[1]; snapper_put_mix()
728 struct snd_ctl_elem_value *ucontrol) tumbler_get_mute_switch()
747 ucontrol->value.integer.value[0] = !check_audio_gpio(gp); tumbler_get_mute_switch()
752 struct snd_ctl_elem_value *ucontrol) tumbler_put_mute_switch()
777 if (val != ucontrol->value.integer.value[0]) { tumbler_put_mute_switch()
778 write_audio_gpio(gp, ! ucontrol->value.integer.value[0]); tumbler_put_mute_switch()
806 struct snd_ctl_elem_value *ucontrol) snapper_get_capture_source()
811 ucontrol->value.enumerated.item[0] = mix->capture_source; snapper_get_capture_source()
816 struct snd_ctl_elem_value *ucontrol) snapper_put_capture_source()
822 change = ucontrol->value.enumerated.item[0] != mix->capture_source; snapper_put_capture_source()
824 mix->capture_source = !!ucontrol->value.enumerated.item[0]; snapper_put_capture_source()
266 tumbler_get_master_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_master_volume() argument
277 tumbler_put_master_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_master_volume() argument
301 tumbler_get_master_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_master_switch() argument
312 tumbler_put_master_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_master_switch() argument
414 tumbler_get_drc_value(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_drc_value() argument
425 tumbler_put_drc_value(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_drc_value() argument
454 tumbler_get_drc_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_drc_switch() argument
465 tumbler_put_drc_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_drc_switch() argument
535 tumbler_get_mono(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_mono() argument
547 tumbler_put_mono(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_mono() argument
680 snapper_get_mix(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snapper_get_mix() argument
693 snapper_put_mix(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snapper_put_mix() argument
727 tumbler_get_mute_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_get_mute_switch() argument
751 tumbler_put_mute_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tumbler_put_mute_switch() argument
805 snapper_get_capture_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snapper_get_capture_source() argument
815 snapper_put_capture_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snapper_put_capture_source() argument
H A Dawacs.c146 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_volume()
163 ucontrol->value.integer.value[0] = vol[0]; snd_pmac_awacs_get_volume()
164 ucontrol->value.integer.value[1] = vol[1]; snd_pmac_awacs_get_volume()
169 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_volume()
179 vol[0] = ucontrol->value.integer.value[0]; snd_pmac_awacs_put_volume()
180 vol[1] = ucontrol->value.integer.value[1]; snd_pmac_awacs_put_volume()
212 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_switch()
226 ucontrol->value.integer.value[0] = val; snd_pmac_awacs_get_switch()
231 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_switch()
243 if (ucontrol->value.integer.value[0] != invert) snd_pmac_awacs_put_switch()
344 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_volume_amp()
350 ucontrol->value.integer.value[0] = 31 - (amp->amp_vol[index][0] & 31); snd_pmac_awacs_get_volume_amp()
351 ucontrol->value.integer.value[1] = 31 - (amp->amp_vol[index][1] & 31); snd_pmac_awacs_get_volume_amp()
356 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_volume_amp()
363 vol[0] = (31 - (ucontrol->value.integer.value[0] & 31)) snd_pmac_awacs_put_volume_amp()
365 vol[1] = (31 - (ucontrol->value.integer.value[1] & 31)) snd_pmac_awacs_put_volume_amp()
371 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_switch_amp()
377 ucontrol->value.integer.value[0] = (amp->amp_vol[index][0] & 32) snd_pmac_awacs_get_switch_amp()
379 ucontrol->value.integer.value[1] = (amp->amp_vol[index][1] & 32) snd_pmac_awacs_get_switch_amp()
385 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_switch_amp()
392 vol[0] = (ucontrol->value.integer.value[0] ? 0 : 32) snd_pmac_awacs_put_switch_amp()
394 vol[1] = (ucontrol->value.integer.value[1] ? 0 : 32) snd_pmac_awacs_put_switch_amp()
410 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_tone_amp()
416 ucontrol->value.integer.value[0] = amp->amp_tone[index]; snd_pmac_awacs_get_tone_amp()
421 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_tone_amp()
428 val = ucontrol->value.integer.value[0]; snd_pmac_awacs_put_tone_amp()
450 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_master_amp()
455 ucontrol->value.integer.value[0] = amp->amp_master; snd_pmac_awacs_get_master_amp()
460 struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_master_amp()
466 val = ucontrol->value.integer.value[0]; snd_pmac_awacs_put_master_amp()
552 struct snd_ctl_elem_value *ucontrol) snd_pmac_screamer_mic_boost_get()
564 ucontrol->value.integer.value[0] = val; snd_pmac_screamer_mic_boost_get()
569 struct snd_ctl_elem_value *ucontrol) snd_pmac_screamer_mic_boost_put()
579 if (ucontrol->value.integer.value[0] & 1) snd_pmac_screamer_mic_boost_put()
581 if (ucontrol->value.integer.value[0] & 2) snd_pmac_screamer_mic_boost_put()
145 snd_pmac_awacs_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_volume() argument
168 snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_volume() argument
211 snd_pmac_awacs_get_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_switch() argument
230 snd_pmac_awacs_put_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_switch() argument
343 snd_pmac_awacs_get_volume_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_volume_amp() argument
355 snd_pmac_awacs_put_volume_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_volume_amp() argument
370 snd_pmac_awacs_get_switch_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_switch_amp() argument
384 snd_pmac_awacs_put_switch_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_switch_amp() argument
409 snd_pmac_awacs_get_tone_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_tone_amp() argument
420 snd_pmac_awacs_put_tone_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_tone_amp() argument
449 snd_pmac_awacs_get_master_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_get_master_amp() argument
459 snd_pmac_awacs_put_master_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_awacs_put_master_amp() argument
551 snd_pmac_screamer_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_screamer_mic_boost_get() argument
568 snd_pmac_screamer_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_screamer_mic_boost_put() argument
H A Dbeep.c185 struct snd_ctl_elem_value *ucontrol) snd_pmac_get_beep()
190 ucontrol->value.integer.value[0] = chip->beep->volume; snd_pmac_get_beep()
195 struct snd_ctl_elem_value *ucontrol) snd_pmac_put_beep()
202 nval = ucontrol->value.integer.value[0]; snd_pmac_put_beep()
184 snd_pmac_get_beep(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_get_beep() argument
194 snd_pmac_put_beep(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pmac_put_beep() argument
H A Dsnd_ps3.c724 struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_cmask_get()
726 memset(ucontrol->value.iec958.status, 0xff, 8); snd_ps3_spdif_cmask_get()
731 struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_pmask_get()
737 struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_default_get()
739 memcpy(ucontrol->value.iec958.status, ps3av_mode_cs_info, 8); snd_ps3_spdif_default_get()
744 struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_default_put()
746 if (memcmp(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8)) { snd_ps3_spdif_default_put()
747 memcpy(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8); snd_ps3_spdif_default_put()
723 snd_ps3_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_cmask_get() argument
730 snd_ps3_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_pmask_get() argument
736 snd_ps3_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_default_get() argument
743 snd_ps3_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ps3_spdif_default_put() argument
H A Dpmac.c1114 struct snd_ctl_elem_value *ucontrol) pmac_auto_mute_get()
1117 ucontrol->value.integer.value[0] = chip->auto_mute; pmac_auto_mute_get()
1122 struct snd_ctl_elem_value *ucontrol) pmac_auto_mute_put()
1125 if (ucontrol->value.integer.value[0] != chip->auto_mute) { pmac_auto_mute_put()
1126 chip->auto_mute = !!ucontrol->value.integer.value[0]; pmac_auto_mute_put()
1135 struct snd_ctl_elem_value *ucontrol) pmac_hp_detect_get()
1139 ucontrol->value.integer.value[0] = chip->detect_headphone(chip); pmac_hp_detect_get()
1141 ucontrol->value.integer.value[0] = 0; pmac_hp_detect_get()
1113 pmac_auto_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pmac_auto_mute_get() argument
1121 pmac_auto_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pmac_auto_mute_put() argument
1134 pmac_hp_detect_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pmac_hp_detect_get() argument
/linux-4.1.27/sound/i2c/other/
H A Dpt2258.c95 struct snd_ctl_elem_value *ucontrol) pt2258_stereo_volume_get()
101 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; pt2258_stereo_volume_get()
102 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; pt2258_stereo_volume_get()
107 struct snd_ctl_elem_value *ucontrol) pt2258_stereo_volume_put()
114 val0 = 79 - ucontrol->value.integer.value[0]; pt2258_stereo_volume_put()
115 val1 = 79 - ucontrol->value.integer.value[1]; pt2258_stereo_volume_put()
148 struct snd_ctl_elem_value *ucontrol) pt2258_switch_get()
152 ucontrol->value.integer.value[0] = !pt->mute; pt2258_switch_get()
157 struct snd_ctl_elem_value *ucontrol) pt2258_switch_put()
163 val = !ucontrol->value.integer.value[0]; pt2258_switch_put()
94 pt2258_stereo_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pt2258_stereo_volume_get() argument
106 pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pt2258_stereo_volume_put() argument
147 pt2258_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pt2258_switch_get() argument
156 pt2258_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pt2258_switch_put() argument
H A Dak4113.c199 struct snd_ctl_elem_value *ucontrol) snd_ak4113_in_error_get()
206 ucontrol->value.integer.value[0] = *ptr; snd_ak4113_in_error_get()
215 struct snd_ctl_elem_value *ucontrol) snd_ak4113_in_bit_get()
222 ucontrol->value.integer.value[0] = snd_ak4113_in_bit_get()
238 struct snd_ctl_elem_value *ucontrol) snd_ak4113_rx_get()
242 ucontrol->value.integer.value[0] = snd_ak4113_rx_get()
248 struct snd_ctl_elem_value *ucontrol) snd_ak4113_rx_put()
256 change = ucontrol->value.integer.value[0] != AK4113_IPS(old_val); snd_ak4113_rx_put()
260 (AK4113_IPS(ucontrol->value.integer.value[0]))); snd_ak4113_rx_put()
276 struct snd_ctl_elem_value *ucontrol) snd_ak4113_rate_get()
280 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, snd_ak4113_rate_get()
294 struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_get()
300 ucontrol->value.iec958.status[i] = reg_read(chip, snd_ak4113_spdif_get()
314 struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_mask_get()
316 memset(ucontrol->value.iec958.status, 0xff, AK4113_REG_RXCSB_SIZE); snd_ak4113_spdif_mask_get()
331 struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_pget()
336 ucontrol->value.integer.value[0] = 0xf8f2; snd_ak4113_spdif_pget()
337 ucontrol->value.integer.value[1] = 0x4e1f; snd_ak4113_spdif_pget()
340 ucontrol->value.integer.value[2] = tmp; snd_ak4113_spdif_pget()
343 ucontrol->value.integer.value[3] = tmp; snd_ak4113_spdif_pget()
356 struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_qget()
362 ucontrol->value.bytes.data[i] = reg_read(chip, snd_ak4113_spdif_qget()
198 snd_ak4113_in_error_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_in_error_get() argument
214 snd_ak4113_in_bit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_in_bit_get() argument
237 snd_ak4113_rx_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_rx_get() argument
247 snd_ak4113_rx_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_rx_put() argument
275 snd_ak4113_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_rate_get() argument
293 snd_ak4113_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_get() argument
313 snd_ak4113_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_mask_get() argument
330 snd_ak4113_spdif_pget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_pget() argument
355 snd_ak4113_spdif_qget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4113_spdif_qget() argument
H A Dak4117.c168 struct snd_ctl_elem_value *ucontrol) snd_ak4117_in_error_get()
175 ucontrol->value.integer.value[0] = *ptr; snd_ak4117_in_error_get()
184 struct snd_ctl_elem_value *ucontrol) snd_ak4117_in_bit_get()
191 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; snd_ak4117_in_bit_get()
206 struct snd_ctl_elem_value *ucontrol) snd_ak4117_rx_get()
210 ucontrol->value.integer.value[0] = (chip->regmap[AK4117_REG_IO] & AK4117_IPS) ? 1 : 0; snd_ak4117_rx_get()
215 struct snd_ctl_elem_value *ucontrol) snd_ak4117_rx_put()
223 change = !!ucontrol->value.integer.value[0] != ((old_val & AK4117_IPS) ? 1 : 0); snd_ak4117_rx_put()
225 reg_write(chip, AK4117_REG_IO, (old_val & ~AK4117_IPS) | (ucontrol->value.integer.value[0] ? AK4117_IPS : 0)); snd_ak4117_rx_put()
241 struct snd_ctl_elem_value *ucontrol) snd_ak4117_rate_get()
245 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4117_REG_RCS1)); snd_ak4117_rate_get()
257 struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_get()
263 ucontrol->value.iec958.status[i] = reg_read(chip, AK4117_REG_RXCSB0 + i); snd_ak4117_spdif_get()
275 struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_mask_get()
277 memset(ucontrol->value.iec958.status, 0xff, AK4117_REG_RXCSB_SIZE); snd_ak4117_spdif_mask_get()
291 struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_pget()
296 ucontrol->value.integer.value[0] = 0xf8f2; snd_ak4117_spdif_pget()
297 ucontrol->value.integer.value[1] = 0x4e1f; snd_ak4117_spdif_pget()
299 ucontrol->value.integer.value[2] = tmp; snd_ak4117_spdif_pget()
301 ucontrol->value.integer.value[3] = tmp; snd_ak4117_spdif_pget()
313 struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_qget()
319 ucontrol->value.bytes.data[i] = reg_read(chip, AK4117_REG_QSUB_ADDR + i); snd_ak4117_spdif_qget()
167 snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_in_error_get() argument
183 snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_in_bit_get() argument
205 snd_ak4117_rx_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_rx_get() argument
214 snd_ak4117_rx_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_rx_put() argument
240 snd_ak4117_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_rate_get() argument
256 snd_ak4117_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_get() argument
274 snd_ak4117_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_mask_get() argument
290 snd_ak4117_spdif_pget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_pget() argument
312 snd_ak4117_spdif_qget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4117_spdif_qget() argument
H A Dak4114.c194 struct snd_ctl_elem_value *ucontrol) snd_ak4114_in_error_get()
201 ucontrol->value.integer.value[0] = *ptr; snd_ak4114_in_error_get()
210 struct snd_ctl_elem_value *ucontrol) snd_ak4114_in_bit_get()
217 ucontrol->value.integer.value[0] = ((reg_read(chip, reg) & (1 << bit)) ? 1 : 0) ^ inv; snd_ak4114_in_bit_get()
232 struct snd_ctl_elem_value *ucontrol) snd_ak4114_rate_get()
236 ucontrol->value.integer.value[0] = external_rate(reg_read(chip, AK4114_REG_RCS1)); snd_ak4114_rate_get()
248 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_get()
254 ucontrol->value.iec958.status[i] = reg_read(chip, AK4114_REG_RXCSB0 + i); snd_ak4114_spdif_get()
259 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_playback_get()
265 ucontrol->value.iec958.status[i] = chip->txcsb[i]; snd_ak4114_spdif_playback_get()
270 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_playback_put()
276 reg_write(chip, AK4114_REG_TXCSB0 + i, ucontrol->value.iec958.status[i]); snd_ak4114_spdif_playback_put()
288 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_mask_get()
290 memset(ucontrol->value.iec958.status, 0xff, AK4114_REG_RXCSB_SIZE); snd_ak4114_spdif_mask_get()
304 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_pget()
309 ucontrol->value.integer.value[0] = 0xf8f2; snd_ak4114_spdif_pget()
310 ucontrol->value.integer.value[1] = 0x4e1f; snd_ak4114_spdif_pget()
312 ucontrol->value.integer.value[2] = tmp; snd_ak4114_spdif_pget()
314 ucontrol->value.integer.value[3] = tmp; snd_ak4114_spdif_pget()
326 struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_qget()
332 ucontrol->value.bytes.data[i] = reg_read(chip, AK4114_REG_QSUB_ADDR + i); snd_ak4114_spdif_qget()
193 snd_ak4114_in_error_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_in_error_get() argument
209 snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_in_bit_get() argument
231 snd_ak4114_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_rate_get() argument
247 snd_ak4114_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_get() argument
258 snd_ak4114_spdif_playback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_playback_get() argument
269 snd_ak4114_spdif_playback_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_playback_put() argument
287 snd_ak4114_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_mask_get() argument
303 snd_ak4114_spdif_pget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_pget() argument
325 snd_ak4114_spdif_qget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4114_spdif_qget() argument
H A Dak4xxx-adda.c379 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_volume_get()
385 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); snd_akm4xxx_volume_get()
415 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_volume_put()
418 unsigned int val = ucontrol->value.integer.value[0]; snd_akm4xxx_volume_put()
437 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_stereo_volume_get()
443 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); snd_akm4xxx_stereo_volume_get()
444 ucontrol->value.integer.value[1] = snd_akm4xxx_get_vol(ak, chip, addr+1); snd_akm4xxx_stereo_volume_get()
449 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_stereo_volume_put()
456 val[0] = ucontrol->value.integer.value[0]; snd_akm4xxx_stereo_volume_put()
457 val[1] = ucontrol->value.integer.value[1]; snd_akm4xxx_stereo_volume_put()
475 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_deemphasis_get()
481 ucontrol->value.enumerated.item[0] = snd_akm4xxx_deemphasis_get()
487 struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_deemphasis_put()
493 unsigned char nval = ucontrol->value.enumerated.item[0] & 3; snd_akm4xxx_deemphasis_put()
507 struct snd_ctl_elem_value *ucontrol) ak4xxx_switch_get()
518 ucontrol->value.integer.value[0] = (val & (1<<shift)) != 0; ak4xxx_switch_get()
523 struct snd_ctl_elem_value *ucontrol) ak4xxx_switch_put()
530 long flag = ucontrol->value.integer.value[0]; ak4xxx_switch_put()
576 struct snd_ctl_elem_value *ucontrol) ak4xxx_capture_source_get()
585 ucontrol->value.enumerated.item[0] = val; ak4xxx_capture_source_get()
590 struct snd_ctl_elem_value *ucontrol) ak4xxx_capture_source_put()
600 if (ucontrol->value.enumerated.item[0] >= num_names) ak4xxx_capture_source_put()
605 val |= ucontrol->value.enumerated.item[0] & mask; ak4xxx_capture_source_put()
378 snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_volume_get() argument
414 snd_akm4xxx_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_volume_put() argument
436 snd_akm4xxx_stereo_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_stereo_volume_get() argument
448 snd_akm4xxx_stereo_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_stereo_volume_put() argument
474 snd_akm4xxx_deemphasis_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_deemphasis_get() argument
486 snd_akm4xxx_deemphasis_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_akm4xxx_deemphasis_put() argument
506 ak4xxx_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4xxx_switch_get() argument
522 ak4xxx_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4xxx_switch_put() argument
575 ak4xxx_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4xxx_capture_source_get() argument
589 ak4xxx_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4xxx_capture_source_put() argument
/linux-4.1.27/sound/pci/pcxhr/
H A Dpcxhr_mixer.c123 struct snd_ctl_elem_value *ucontrol) pcxhr_analog_vol_get()
128 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; pcxhr_analog_vol_get()
129 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; pcxhr_analog_vol_get()
131 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; pcxhr_analog_vol_get()
132 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; pcxhr_analog_vol_get()
139 struct snd_ctl_elem_value *ucontrol) pcxhr_analog_vol_put()
148 int new_volume = ucontrol->value.integer.value[i]; pcxhr_analog_vol_put()
204 struct snd_ctl_elem_value *ucontrol) pcxhr_audio_sw_get()
209 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; pcxhr_audio_sw_get()
210 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; pcxhr_audio_sw_get()
216 struct snd_ctl_elem_value *ucontrol) pcxhr_audio_sw_put()
223 ucontrol->value.integer.value[i]) { pcxhr_audio_sw_put()
225 !!ucontrol->value.integer.value[i]; pcxhr_audio_sw_put()
361 struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_vol_get()
364 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ pcxhr_pcm_vol_get()
373 ucontrol->value.integer.value[0] = stored_volume[0]; pcxhr_pcm_vol_get()
374 ucontrol->value.integer.value[1] = stored_volume[1]; pcxhr_pcm_vol_get()
380 struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_vol_put()
383 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ pcxhr_pcm_vol_put()
395 int vol = ucontrol->value.integer.value[i]; pcxhr_pcm_vol_put()
427 struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_sw_get()
430 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ pcxhr_pcm_sw_get()
433 ucontrol->value.integer.value[0] = chip->digital_playback_active[idx][0]; pcxhr_pcm_sw_get()
434 ucontrol->value.integer.value[1] = chip->digital_playback_active[idx][1]; pcxhr_pcm_sw_get()
440 struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_sw_put()
444 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ pcxhr_pcm_sw_put()
451 ucontrol->value.integer.value[i]) { pcxhr_pcm_sw_put()
453 !!ucontrol->value.integer.value[i]; pcxhr_pcm_sw_put()
478 struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_vol_get()
482 ucontrol->value.integer.value[0] = chip->monitoring_volume[0]; pcxhr_monitor_vol_get()
483 ucontrol->value.integer.value[1] = chip->monitoring_volume[1]; pcxhr_monitor_vol_get()
489 struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_vol_put()
498 ucontrol->value.integer.value[i]) { pcxhr_monitor_vol_put()
500 ucontrol->value.integer.value[i]; pcxhr_monitor_vol_put()
528 struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_sw_get()
532 ucontrol->value.integer.value[0] = chip->monitoring_active[0]; pcxhr_monitor_sw_get()
533 ucontrol->value.integer.value[1] = chip->monitoring_active[1]; pcxhr_monitor_sw_get()
539 struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_sw_put()
548 ucontrol->value.integer.value[i]) { pcxhr_monitor_sw_put()
550 !!ucontrol->value.integer.value[i]; pcxhr_monitor_sw_put()
667 struct snd_ctl_elem_value *ucontrol) pcxhr_audio_src_get()
670 ucontrol->value.enumerated.item[0] = chip->audio_capture_source; pcxhr_audio_src_get()
675 struct snd_ctl_elem_value *ucontrol) pcxhr_audio_src_put()
685 if (ucontrol->value.enumerated.item[0] >= i) pcxhr_audio_src_put()
688 if (chip->audio_capture_source != ucontrol->value.enumerated.item[0]) { pcxhr_audio_src_put()
689 chip->audio_capture_source = ucontrol->value.enumerated.item[0]; pcxhr_audio_src_put()
756 struct snd_ctl_elem_value *ucontrol) pcxhr_clock_type_get()
759 ucontrol->value.enumerated.item[0] = mgr->use_clock_type; pcxhr_clock_type_get()
764 struct snd_ctl_elem_value *ucontrol) pcxhr_clock_type_put()
774 if (ucontrol->value.enumerated.item[0] >= clock_items) pcxhr_clock_type_put()
777 if (mgr->use_clock_type != ucontrol->value.enumerated.item[0]) { pcxhr_clock_type_put()
779 mgr->use_clock_type = ucontrol->value.enumerated.item[0]; pcxhr_clock_type_put()
825 struct snd_ctl_elem_value *ucontrol) pcxhr_clock_rate_get()
839 ucontrol->value.integer.value[i] = rate; pcxhr_clock_rate_get()
928 struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_get()
948 ucontrol->value.iec958.status[i] = aes_bits; pcxhr_iec958_get()
955 struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_mask_get()
959 ucontrol->value.iec958.status[i] = 0xff; pcxhr_iec958_mask_get()
998 struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_put()
1006 if (ucontrol->value.iec958.status[i] != chip->aes_bits[i]) { pcxhr_iec958_put()
1009 ucontrol->value.iec958.status[i]); pcxhr_iec958_put()
1012 ucontrol->value.iec958.status[i]); pcxhr_iec958_put()
122 pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_analog_vol_get() argument
138 pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_analog_vol_put() argument
203 pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_audio_sw_get() argument
215 pcxhr_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_audio_sw_put() argument
360 pcxhr_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_vol_get() argument
379 pcxhr_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_vol_put() argument
426 pcxhr_pcm_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_sw_get() argument
439 pcxhr_pcm_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_pcm_sw_put() argument
477 pcxhr_monitor_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_vol_get() argument
488 pcxhr_monitor_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_vol_put() argument
527 pcxhr_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_sw_get() argument
538 pcxhr_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_monitor_sw_put() argument
666 pcxhr_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_audio_src_get() argument
674 pcxhr_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_audio_src_put() argument
755 pcxhr_clock_type_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_clock_type_get() argument
763 pcxhr_clock_type_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_clock_type_put() argument
824 pcxhr_clock_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_clock_rate_get() argument
927 pcxhr_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_get() argument
954 pcxhr_iec958_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_mask_get() argument
997 pcxhr_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcxhr_iec958_put() argument
H A Dpcxhr_mix22.c723 struct snd_ctl_elem_value *ucontrol) hr222_mic_vol_get()
727 ucontrol->value.integer.value[0] = chip->mic_volume; hr222_mic_vol_get()
733 struct snd_ctl_elem_value *ucontrol) hr222_mic_vol_put()
738 if (chip->mic_volume != ucontrol->value.integer.value[0]) { hr222_mic_vol_put()
740 chip->mic_volume = ucontrol->value.integer.value[0]; hr222_mic_vol_put()
773 struct snd_ctl_elem_value *ucontrol) hr222_mic_boost_get()
777 ucontrol->value.integer.value[0] = chip->mic_boost; hr222_mic_boost_get()
783 struct snd_ctl_elem_value *ucontrol) hr222_mic_boost_put()
788 if (chip->mic_boost != ucontrol->value.integer.value[0]) { hr222_mic_boost_put()
790 chip->mic_boost = ucontrol->value.integer.value[0]; hr222_mic_boost_put()
813 struct snd_ctl_elem_value *ucontrol) hr222_phantom_power_get()
817 ucontrol->value.integer.value[0] = chip->phantom_power; hr222_phantom_power_get()
823 struct snd_ctl_elem_value *ucontrol) hr222_phantom_power_put()
829 power = !!ucontrol->value.integer.value[0]; hr222_phantom_power_put()
722 hr222_mic_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_mic_vol_get() argument
732 hr222_mic_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_mic_vol_put() argument
772 hr222_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_mic_boost_get() argument
782 hr222_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_mic_boost_put() argument
812 hr222_phantom_power_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_phantom_power_get() argument
822 hr222_phantom_power_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hr222_phantom_power_put() argument
/linux-4.1.27/sound/pci/emu10k1/
H A Demumixer.c54 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_get()
57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1_spdif_get()
64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; snd_emu10k1_spdif_get()
65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; snd_emu10k1_spdif_get()
66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; snd_emu10k1_spdif_get()
67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; snd_emu10k1_spdif_get()
73 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_get_mask()
75 ucontrol->value.iec958.status[0] = 0xff; snd_emu10k1_spdif_get_mask()
76 ucontrol->value.iec958.status[1] = 0xff; snd_emu10k1_spdif_get_mask()
77 ucontrol->value.iec958.status[2] = 0xff; snd_emu10k1_spdif_get_mask()
78 ucontrol->value.iec958.status[3] = 0xff; snd_emu10k1_spdif_get_mask()
404 struct snd_ctl_elem_value *ucontrol) snd_emu1010_output_source_get()
415 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; snd_emu1010_output_source_get()
420 struct snd_ctl_elem_value *ucontrol) snd_emu1010_output_source_put()
426 val = ucontrol->value.enumerated.item[0]; snd_emu1010_output_source_put()
450 struct snd_ctl_elem_value *ucontrol) snd_emu1010_input_source_get()
459 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; snd_emu1010_input_source_get()
464 struct snd_ctl_elem_value *ucontrol) snd_emu1010_input_source_put()
470 val = ucontrol->value.enumerated.item[0]; snd_emu1010_input_source_put()
591 static int snd_emu1010_adc_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_adc_pads_get() argument
595 ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0; snd_emu1010_adc_pads_get()
599 static int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_adc_pads_put() argument
604 val = ucontrol->value.integer.value[0]; snd_emu1010_adc_pads_put()
639 static int snd_emu1010_dac_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_dac_pads_get() argument
643 ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0; snd_emu1010_dac_pads_get()
647 static int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_dac_pads_put() argument
652 val = ucontrol->value.integer.value[0]; snd_emu1010_dac_pads_put()
698 struct snd_ctl_elem_value *ucontrol) snd_emu1010_internal_clock_get()
702 ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock; snd_emu1010_internal_clock_get()
707 struct snd_ctl_elem_value *ucontrol) snd_emu1010_internal_clock_put()
713 val = ucontrol->value.enumerated.item[0] ; snd_emu1010_internal_clock_put()
820 struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_out_get()
824 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; snd_emu1010_optical_out_get()
829 struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_out_put()
836 val = ucontrol->value.enumerated.item[0]; snd_emu1010_optical_out_put()
871 struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_in_get()
875 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; snd_emu1010_optical_in_get()
880 struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_in_put()
887 val = ucontrol->value.enumerated.item[0]; snd_emu1010_optical_in_put()
927 struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_capture_source_get()
931 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; snd_audigy_i2c_capture_source_get()
936 struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_capture_source_put()
949 source_id = ucontrol->value.enumerated.item[0]; snd_audigy_i2c_capture_source_put()
1001 struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_volume_get()
1012 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; snd_audigy_i2c_volume_get()
1013 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; snd_audigy_i2c_volume_get()
1018 struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_volume_put()
1032 ngain = ucontrol->value.integer.value[0]; snd_audigy_i2c_volume_put()
1042 ngain = ucontrol->value.integer.value[1]; snd_audigy_i2c_volume_put()
1082 struct snd_ctl_elem_value *ucontrol)
1093 ucontrol->value.enumerated.item[0] = 0;
1096 ucontrol->value.enumerated.item[0] = 1;
1099 ucontrol->value.enumerated.item[0] = 2;
1102 ucontrol->value.enumerated.item[0] = 1;
1109 struct snd_ctl_elem_value *ucontrol)
1116 switch(ucontrol->value.enumerated.item[0]) {
1155 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_put()
1158 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1_spdif_put()
1166 val = (ucontrol->value.iec958.status[0] << 0) | snd_emu10k1_spdif_put()
1167 (ucontrol->value.iec958.status[1] << 8) | snd_emu10k1_spdif_put()
1168 (ucontrol->value.iec958.status[2] << 16) | snd_emu10k1_spdif_put()
1169 (ucontrol->value.iec958.status[3] << 24); snd_emu10k1_spdif_put()
1242 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_routing_get()
1247 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_send_routing_get()
1255 ucontrol->value.integer.value[(voice * num_efx) + idx] = snd_emu10k1_send_routing_get()
1262 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_routing_put()
1267 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_send_routing_put()
1275 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask; snd_emu10k1_send_routing_put()
1318 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_volume_get()
1323 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_send_volume_get()
1329 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; snd_emu10k1_send_volume_get()
1335 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_volume_put()
1340 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_send_volume_put()
1346 val = ucontrol->value.integer.value[idx] & 255; snd_emu10k1_send_volume_put()
1388 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_attn_get()
1392 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_attn_get()
1398 ucontrol->value.integer.value[idx] = mix->attn[idx]; snd_emu10k1_attn_get()
1404 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_attn_put()
1409 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_attn_put()
1414 val = ucontrol->value.integer.value[idx] & 0xffff; snd_emu10k1_attn_put()
1456 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_routing_get()
1461 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_efx_send_routing_get()
1468 ucontrol->value.integer.value[idx] = snd_emu10k1_efx_send_routing_get()
1475 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_routing_put()
1479 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1_efx_send_routing_put()
1487 val = ucontrol->value.integer.value[idx] & mask; snd_emu10k1_efx_send_routing_put()
1526 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_volume_get()
1531 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_efx_send_volume_get()
1537 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; snd_emu10k1_efx_send_volume_get()
1543 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_volume_put()
1547 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1_efx_send_volume_put()
1554 val = ucontrol->value.integer.value[idx] & 255; snd_emu10k1_efx_send_volume_put()
1592 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_attn_get()
1596 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; snd_emu10k1_efx_attn_get()
1600 ucontrol->value.integer.value[0] = mix->attn[0]; snd_emu10k1_efx_attn_get()
1606 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_attn_put()
1610 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1_efx_attn_put()
1615 val = ucontrol->value.integer.value[0] & 0xffff; snd_emu10k1_efx_attn_put()
1643 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_shared_spdif_get()
1648 ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; snd_emu10k1_shared_spdif_get()
1650 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; snd_emu10k1_shared_spdif_get()
1652 ucontrol->value.integer.value[0] = snd_emu10k1_shared_spdif_get()
1653 !ucontrol->value.integer.value[0]; snd_emu10k1_shared_spdif_get()
1659 struct snd_ctl_elem_value *ucontrol) snd_emu10k1_shared_spdif_put()
1666 sw = ucontrol->value.integer.value[0]; snd_emu10k1_shared_spdif_put()
1717 struct snd_ctl_elem_value *ucontrol) snd_audigy_capture_boost_get()
1724 ucontrol->value.integer.value[0] = !!val; snd_audigy_capture_boost_get()
1729 struct snd_ctl_elem_value *ucontrol) snd_audigy_capture_boost_put()
1734 if (ucontrol->value.integer.value[0]) snd_audigy_capture_boost_put()
53 snd_emu10k1_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_get() argument
72 snd_emu10k1_spdif_get_mask(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_get_mask() argument
403 snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_output_source_get() argument
419 snd_emu1010_output_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_output_source_put() argument
449 snd_emu1010_input_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_input_source_get() argument
463 snd_emu1010_input_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_input_source_put() argument
697 snd_emu1010_internal_clock_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_internal_clock_get() argument
706 snd_emu1010_internal_clock_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_internal_clock_put() argument
819 snd_emu1010_optical_out_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_out_get() argument
828 snd_emu1010_optical_out_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_out_put() argument
870 snd_emu1010_optical_in_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_in_get() argument
879 snd_emu1010_optical_in_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu1010_optical_in_put() argument
926 snd_audigy_i2c_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_capture_source_get() argument
935 snd_audigy_i2c_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_capture_source_put() argument
1000 snd_audigy_i2c_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_volume_get() argument
1017 snd_audigy_i2c_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_i2c_volume_put() argument
1154 snd_emu10k1_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_spdif_put() argument
1241 snd_emu10k1_send_routing_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_routing_get() argument
1261 snd_emu10k1_send_routing_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_routing_put() argument
1317 snd_emu10k1_send_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_volume_get() argument
1334 snd_emu10k1_send_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_send_volume_put() argument
1387 snd_emu10k1_attn_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_attn_get() argument
1403 snd_emu10k1_attn_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_attn_put() argument
1455 snd_emu10k1_efx_send_routing_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_routing_get() argument
1474 snd_emu10k1_efx_send_routing_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_routing_put() argument
1525 snd_emu10k1_efx_send_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_volume_get() argument
1542 snd_emu10k1_efx_send_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_send_volume_put() argument
1591 snd_emu10k1_efx_attn_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_attn_get() argument
1605 snd_emu10k1_efx_attn_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_efx_attn_put() argument
1642 snd_emu10k1_shared_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_shared_spdif_get() argument
1658 snd_emu10k1_shared_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1_shared_spdif_put() argument
1716 snd_audigy_capture_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_capture_boost_get() argument
1728 snd_audigy_capture_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy_capture_boost_put() argument
H A Dp16v.c706 struct snd_ctl_elem_value *ucontrol) snd_p16v_volume_get()
715 ucontrol->value.integer.value[0] = 0xff - ((value >> 24) & 0xff); /* Left */ snd_p16v_volume_get()
716 ucontrol->value.integer.value[1] = 0xff - ((value >> 16) & 0xff); /* Right */ snd_p16v_volume_get()
718 ucontrol->value.integer.value[0] = 0xff - ((value >> 8) & 0xff); /* Left */ snd_p16v_volume_get()
719 ucontrol->value.integer.value[1] = 0xff - ((value >> 0) & 0xff); /* Right */ snd_p16v_volume_get()
725 struct snd_ctl_elem_value *ucontrol) snd_p16v_volume_put()
735 value |= ((0xff - ucontrol->value.integer.value[0]) << 24) | snd_p16v_volume_put()
736 ((0xff - ucontrol->value.integer.value[1]) << 16); snd_p16v_volume_put()
739 value |= ((0xff - ucontrol->value.integer.value[0]) << 8) | snd_p16v_volume_put()
740 ((0xff - ucontrol->value.integer.value[1]) ); snd_p16v_volume_put()
761 struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_source_get()
765 ucontrol->value.enumerated.item[0] = emu->p16v_capture_source; snd_p16v_capture_source_get()
770 struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_source_put()
778 val = ucontrol->value.enumerated.item[0] ; snd_p16v_capture_source_put()
800 struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_channel_get()
804 ucontrol->value.enumerated.item[0] = emu->p16v_capture_channel; snd_p16v_capture_channel_get()
809 struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_channel_put()
816 val = ucontrol->value.enumerated.item[0] ; snd_p16v_capture_channel_put()
705 snd_p16v_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_volume_get() argument
724 snd_p16v_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_volume_put() argument
760 snd_p16v_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_source_get() argument
769 snd_p16v_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_source_put() argument
799 snd_p16v_capture_channel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_channel_get() argument
808 snd_p16v_capture_channel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_p16v_capture_channel_put() argument
H A Demu10k1x.c1083 struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_shared_spdif_get()
1087 ucontrol->value.integer.value[0] = (snd_emu10k1x_ptr_read(emu, SPDIF_SELECT, 0) == 0x700) ? 0 : 1; snd_emu10k1x_shared_spdif_get()
1093 struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_shared_spdif_put()
1099 val = ucontrol->value.integer.value[0] ; snd_emu10k1x_shared_spdif_put()
1132 struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_get()
1135 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1x_spdif_get()
1137 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; snd_emu10k1x_spdif_get()
1138 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; snd_emu10k1x_spdif_get()
1139 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; snd_emu10k1x_spdif_get()
1140 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; snd_emu10k1x_spdif_get()
1145 struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_get_mask()
1147 ucontrol->value.iec958.status[0] = 0xff; snd_emu10k1x_spdif_get_mask()
1148 ucontrol->value.iec958.status[1] = 0xff; snd_emu10k1x_spdif_get_mask()
1149 ucontrol->value.iec958.status[2] = 0xff; snd_emu10k1x_spdif_get_mask()
1150 ucontrol->value.iec958.status[3] = 0xff; snd_emu10k1x_spdif_get_mask()
1155 struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_put()
1158 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); snd_emu10k1x_spdif_put()
1162 val = (ucontrol->value.iec958.status[0] << 0) | snd_emu10k1x_spdif_put()
1163 (ucontrol->value.iec958.status[1] << 8) | snd_emu10k1x_spdif_put()
1164 (ucontrol->value.iec958.status[2] << 16) | snd_emu10k1x_spdif_put()
1165 (ucontrol->value.iec958.status[3] << 24); snd_emu10k1x_spdif_put()
1082 snd_emu10k1x_shared_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_shared_spdif_get() argument
1092 snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_shared_spdif_put() argument
1131 snd_emu10k1x_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_get() argument
1144 snd_emu10k1x_spdif_get_mask(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_get_mask() argument
1154 snd_emu10k1x_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu10k1x_spdif_put() argument
/linux-4.1.27/sound/i2c/
H A Dtea6330t.c97 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_master_volume()
102 ucontrol->value.integer.value[0] = tea->mleft - 0x14; snd_tea6330t_get_master_volume()
103 ucontrol->value.integer.value[1] = tea->mright - 0x14; snd_tea6330t_get_master_volume()
109 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_master_volume()
116 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; snd_tea6330t_put_master_volume()
117 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; snd_tea6330t_put_master_volume()
148 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_master_switch()
153 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; snd_tea6330t_get_master_switch()
154 ucontrol->value.integer.value[1] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] == 0 ? 0 : 1; snd_tea6330t_get_master_switch()
160 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_master_switch()
167 val1 = ucontrol->value.integer.value[0] & 1; snd_tea6330t_put_master_switch()
168 val2 = ucontrol->value.integer.value[1] & 1; snd_tea6330t_put_master_switch()
202 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_bass()
206 ucontrol->value.integer.value[0] = tea->bass; snd_tea6330t_get_bass()
211 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_bass()
218 val1 = ucontrol->value.integer.value[0] % (tea->max_bass + 1); snd_tea6330t_put_bass()
249 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_treble()
253 ucontrol->value.integer.value[0] = tea->treble; snd_tea6330t_get_treble()
258 struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_treble()
265 val1 = ucontrol->value.integer.value[0] % (tea->max_treble + 1); snd_tea6330t_put_treble()
96 snd_tea6330t_get_master_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_master_volume() argument
108 snd_tea6330t_put_master_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_master_volume() argument
147 snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_master_switch() argument
159 snd_tea6330t_put_master_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_master_switch() argument
201 snd_tea6330t_get_bass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_bass() argument
210 snd_tea6330t_put_bass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_bass() argument
248 snd_tea6330t_get_treble(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_get_treble() argument
257 snd_tea6330t_put_treble(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_tea6330t_put_treble() argument
H A Dcs8427.c371 struct snd_ctl_elem_value *ucontrol) snd_cs8427_in_status_get()
381 ucontrol->value.integer.value[0] = data; snd_cs8427_in_status_get()
394 struct snd_ctl_elem_value *ucontrol) snd_cs8427_qsubcode_get()
407 err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10); snd_cs8427_qsubcode_get()
427 struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_get()
433 memcpy(ucontrol->value.iec958.status, chip->playback.def_status, 24); snd_cs8427_spdif_get()
439 struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_put()
450 change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; snd_cs8427_spdif_put()
451 memcpy(status, ucontrol->value.iec958.status, 24); snd_cs8427_spdif_put()
471 struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_mask_get()
473 memset(ucontrol->value.iec958.status, 0xff, 24); snd_cs8427_spdif_mask_get()
370 snd_cs8427_in_status_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs8427_in_status_get() argument
393 snd_cs8427_qsubcode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs8427_qsubcode_get() argument
426 snd_cs8427_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_get() argument
438 snd_cs8427_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_put() argument
470 snd_cs8427_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs8427_spdif_mask_get() argument
/linux-4.1.27/sound/soc/omap/
H A Dn810.c135 struct snd_ctl_elem_value *ucontrol) n810_get_spk()
137 ucontrol->value.integer.value[0] = n810_spk_func; n810_get_spk()
143 struct snd_ctl_elem_value *ucontrol) n810_set_spk()
147 if (n810_spk_func == ucontrol->value.integer.value[0]) n810_set_spk()
150 n810_spk_func = ucontrol->value.integer.value[0]; n810_set_spk()
157 struct snd_ctl_elem_value *ucontrol) n810_get_jack()
159 ucontrol->value.integer.value[0] = n810_jack_func; n810_get_jack()
165 struct snd_ctl_elem_value *ucontrol) n810_set_jack()
169 if (n810_jack_func == ucontrol->value.integer.value[0]) n810_set_jack()
172 n810_jack_func = ucontrol->value.integer.value[0]; n810_set_jack()
179 struct snd_ctl_elem_value *ucontrol) n810_get_input()
181 ucontrol->value.integer.value[0] = n810_dmic_func; n810_get_input()
187 struct snd_ctl_elem_value *ucontrol) n810_set_input()
191 if (n810_dmic_func == ucontrol->value.integer.value[0]) n810_set_input()
194 n810_dmic_func = ucontrol->value.integer.value[0]; n810_set_input()
134 n810_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_get_spk() argument
142 n810_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_set_spk() argument
156 n810_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_get_jack() argument
164 n810_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_set_jack() argument
178 n810_get_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_get_input() argument
186 n810_set_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) n810_set_input() argument
H A Drx51.c134 struct snd_ctl_elem_value *ucontrol) rx51_get_spk()
136 ucontrol->value.integer.value[0] = rx51_spk_func; rx51_get_spk()
142 struct snd_ctl_elem_value *ucontrol) rx51_set_spk()
146 if (rx51_spk_func == ucontrol->value.integer.value[0]) rx51_set_spk()
149 rx51_spk_func = ucontrol->value.integer.value[0]; rx51_set_spk()
182 struct snd_ctl_elem_value *ucontrol) rx51_get_input()
184 ucontrol->value.integer.value[0] = rx51_dmic_func; rx51_get_input()
190 struct snd_ctl_elem_value *ucontrol) rx51_set_input()
194 if (rx51_dmic_func == ucontrol->value.integer.value[0]) rx51_set_input()
197 rx51_dmic_func = ucontrol->value.integer.value[0]; rx51_set_input()
204 struct snd_ctl_elem_value *ucontrol) rx51_get_jack()
206 ucontrol->value.integer.value[0] = rx51_jack_func; rx51_get_jack()
212 struct snd_ctl_elem_value *ucontrol) rx51_set_jack()
216 if (rx51_jack_func == ucontrol->value.integer.value[0]) rx51_set_jack()
219 rx51_jack_func = ucontrol->value.integer.value[0]; rx51_set_jack()
133 rx51_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_get_spk() argument
141 rx51_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_set_spk() argument
181 rx51_get_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_get_input() argument
189 rx51_set_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_set_input() argument
203 rx51_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_get_jack() argument
211 rx51_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) rx51_set_jack() argument
H A Dams-delta.c99 struct snd_ctl_elem_value *ucontrol) ams_delta_set_audio_mode()
111 if (ucontrol->value.enumerated.item[0] >= control->items) ams_delta_set_audio_mode()
117 pins = ams_delta_audio_mode_pins[ucontrol->value.enumerated.item[0]]; ams_delta_set_audio_mode()
172 struct snd_ctl_elem_value *ucontrol) ams_delta_get_audio_mode()
199 ucontrol->value.enumerated.item[0] = mode; ams_delta_get_audio_mode()
98 ams_delta_set_audio_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ams_delta_set_audio_mode() argument
171 ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ams_delta_get_audio_mode() argument
H A Domap-mcbsp.c663 struct snd_ctl_elem_value *ucontrol) omap_mcbsp_st_put_mode()
667 u8 value = ucontrol->value.integer.value[0]; omap_mcbsp_st_put_mode()
681 struct snd_ctl_elem_value *ucontrol) omap_mcbsp_st_get_mode()
686 ucontrol->value.integer.value[0] = omap_st_is_enabled(mcbsp); omap_mcbsp_st_get_mode()
662 omap_mcbsp_st_put_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) omap_mcbsp_st_put_mode() argument
680 omap_mcbsp_st_get_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) omap_mcbsp_st_get_mode() argument
/linux-4.1.27/sound/aoa/codecs/
H A Dtas.c236 struct snd_ctl_elem_value *ucontrol) tas_snd_vol_get()
241 ucontrol->value.integer.value[0] = tas->cached_volume_l; tas_snd_vol_get()
242 ucontrol->value.integer.value[1] = tas->cached_volume_r; tas_snd_vol_get()
248 struct snd_ctl_elem_value *ucontrol) tas_snd_vol_put()
252 if (ucontrol->value.integer.value[0] < 0 || tas_snd_vol_put()
253 ucontrol->value.integer.value[0] > 177) tas_snd_vol_put()
255 if (ucontrol->value.integer.value[1] < 0 || tas_snd_vol_put()
256 ucontrol->value.integer.value[1] > 177) tas_snd_vol_put()
260 if (tas->cached_volume_l == ucontrol->value.integer.value[0] tas_snd_vol_put()
261 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { tas_snd_vol_put()
266 tas->cached_volume_l = ucontrol->value.integer.value[0]; tas_snd_vol_put()
267 tas->cached_volume_r = ucontrol->value.integer.value[1]; tas_snd_vol_put()
286 struct snd_ctl_elem_value *ucontrol) tas_snd_mute_get()
291 ucontrol->value.integer.value[0] = !tas->mute_l; tas_snd_mute_get()
292 ucontrol->value.integer.value[1] = !tas->mute_r; tas_snd_mute_get()
298 struct snd_ctl_elem_value *ucontrol) tas_snd_mute_put()
303 if (tas->mute_l == !ucontrol->value.integer.value[0] tas_snd_mute_put()
304 && tas->mute_r == !ucontrol->value.integer.value[1]) { tas_snd_mute_put()
309 tas->mute_l = !ucontrol->value.integer.value[0]; tas_snd_mute_put()
310 tas->mute_r = !ucontrol->value.integer.value[1]; tas_snd_mute_put()
337 struct snd_ctl_elem_value *ucontrol) tas_snd_mixer_get()
343 ucontrol->value.integer.value[0] = tas->mixer_l[idx]; tas_snd_mixer_get()
344 ucontrol->value.integer.value[1] = tas->mixer_r[idx]; tas_snd_mixer_get()
351 struct snd_ctl_elem_value *ucontrol) tas_snd_mixer_put()
357 if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] tas_snd_mixer_put()
358 && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) { tas_snd_mixer_put()
363 tas->mixer_l[idx] = ucontrol->value.integer.value[0]; tas_snd_mixer_put()
364 tas->mixer_r[idx] = ucontrol->value.integer.value[1]; tas_snd_mixer_put()
397 struct snd_ctl_elem_value *ucontrol) tas_snd_drc_range_get()
402 ucontrol->value.integer.value[0] = tas->drc_range; tas_snd_drc_range_get()
408 struct snd_ctl_elem_value *ucontrol) tas_snd_drc_range_put()
412 if (ucontrol->value.integer.value[0] < 0 || tas_snd_drc_range_put()
413 ucontrol->value.integer.value[0] > TAS3004_DRC_MAX) tas_snd_drc_range_put()
417 if (tas->drc_range == ucontrol->value.integer.value[0]) { tas_snd_drc_range_put()
422 tas->drc_range = ucontrol->value.integer.value[0]; tas_snd_drc_range_put()
441 struct snd_ctl_elem_value *ucontrol) tas_snd_drc_switch_get()
446 ucontrol->value.integer.value[0] = tas->drc_enabled; tas_snd_drc_switch_get()
452 struct snd_ctl_elem_value *ucontrol) tas_snd_drc_switch_put()
457 if (tas->drc_enabled == ucontrol->value.integer.value[0]) { tas_snd_drc_switch_put()
462 tas->drc_enabled = !!ucontrol->value.integer.value[0]; tas_snd_drc_switch_put()
487 struct snd_ctl_elem_value *ucontrol) tas_snd_capture_source_get()
492 ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); tas_snd_capture_source_get()
498 struct snd_ctl_elem_value *ucontrol) tas_snd_capture_source_put()
503 if (ucontrol->value.enumerated.item[0] > 1) tas_snd_capture_source_put()
514 if (ucontrol->value.enumerated.item[0]) tas_snd_capture_source_put()
558 struct snd_ctl_elem_value *ucontrol) tas_snd_treble_get()
563 ucontrol->value.integer.value[0] = tas->treble; tas_snd_treble_get()
569 struct snd_ctl_elem_value *ucontrol) tas_snd_treble_put()
573 if (ucontrol->value.integer.value[0] < TAS3004_TREBLE_MIN || tas_snd_treble_put()
574 ucontrol->value.integer.value[0] > TAS3004_TREBLE_MAX) tas_snd_treble_put()
577 if (tas->treble == ucontrol->value.integer.value[0]) { tas_snd_treble_put()
582 tas->treble = ucontrol->value.integer.value[0]; tas_snd_treble_put()
609 struct snd_ctl_elem_value *ucontrol) tas_snd_bass_get()
614 ucontrol->value.integer.value[0] = tas->bass; tas_snd_bass_get()
620 struct snd_ctl_elem_value *ucontrol) tas_snd_bass_put()
624 if (ucontrol->value.integer.value[0] < TAS3004_BASS_MIN || tas_snd_bass_put()
625 ucontrol->value.integer.value[0] > TAS3004_BASS_MAX) tas_snd_bass_put()
628 if (tas->bass == ucontrol->value.integer.value[0]) { tas_snd_bass_put()
633 tas->bass = ucontrol->value.integer.value[0]; tas_snd_bass_put()
235 tas_snd_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_vol_get() argument
247 tas_snd_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_vol_put() argument
285 tas_snd_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_mute_get() argument
297 tas_snd_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_mute_put() argument
336 tas_snd_mixer_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_mixer_get() argument
350 tas_snd_mixer_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_mixer_put() argument
396 tas_snd_drc_range_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_drc_range_get() argument
407 tas_snd_drc_range_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_drc_range_put() argument
440 tas_snd_drc_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_drc_switch_get() argument
451 tas_snd_drc_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_drc_switch_put() argument
486 tas_snd_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_capture_source_get() argument
497 tas_snd_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_capture_source_put() argument
557 tas_snd_treble_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_treble_get() argument
568 tas_snd_treble_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_treble_put() argument
608 tas_snd_bass_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_bass_get() argument
619 tas_snd_bass_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas_snd_bass_put() argument
H A Donyx.c120 struct snd_ctl_elem_value *ucontrol) onyx_snd_vol_get()
130 ucontrol->value.integer.value[0] = l + VOLUME_RANGE_SHIFT; onyx_snd_vol_get()
131 ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT; onyx_snd_vol_get()
137 struct snd_ctl_elem_value *ucontrol) onyx_snd_vol_put()
142 if (ucontrol->value.integer.value[0] < -128 + VOLUME_RANGE_SHIFT || onyx_snd_vol_put()
143 ucontrol->value.integer.value[0] > -1 + VOLUME_RANGE_SHIFT) onyx_snd_vol_put()
145 if (ucontrol->value.integer.value[1] < -128 + VOLUME_RANGE_SHIFT || onyx_snd_vol_put()
146 ucontrol->value.integer.value[1] > -1 + VOLUME_RANGE_SHIFT) onyx_snd_vol_put()
153 if (l + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[0] && onyx_snd_vol_put()
154 r + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[1]) { onyx_snd_vol_put()
160 ucontrol->value.integer.value[0] onyx_snd_vol_put()
163 ucontrol->value.integer.value[1] onyx_snd_vol_put()
196 struct snd_ctl_elem_value *ucontrol) onyx_snd_inputgain_get()
205 ucontrol->value.integer.value[0] = onyx_snd_inputgain_get()
212 struct snd_ctl_elem_value *ucontrol) onyx_snd_inputgain_put()
217 if (ucontrol->value.integer.value[0] < 3 + INPUTGAIN_RANGE_SHIFT || onyx_snd_inputgain_put()
218 ucontrol->value.integer.value[0] > 28 + INPUTGAIN_RANGE_SHIFT) onyx_snd_inputgain_put()
224 n |= (ucontrol->value.integer.value[0] - INPUTGAIN_RANGE_SHIFT) onyx_snd_inputgain_put()
250 struct snd_ctl_elem_value *ucontrol) onyx_snd_capture_source_get()
259 ucontrol->value.enumerated.item[0] = !!(v&ONYX_ADC_INPUT_MIC); onyx_snd_capture_source_get()
278 struct snd_ctl_elem_value *ucontrol) onyx_snd_capture_source_put()
280 if (ucontrol->value.enumerated.item[0] > 1) onyx_snd_capture_source_put()
283 ucontrol->value.enumerated.item[0]); onyx_snd_capture_source_put()
310 struct snd_ctl_elem_value *ucontrol) onyx_snd_mute_get()
319 ucontrol->value.integer.value[0] = !(c & ONYX_MUTE_LEFT); onyx_snd_mute_get()
320 ucontrol->value.integer.value[1] = !(c & ONYX_MUTE_RIGHT); onyx_snd_mute_get()
326 struct snd_ctl_elem_value *ucontrol) onyx_snd_mute_put()
339 if (!ucontrol->value.integer.value[0]) onyx_snd_mute_put()
341 if (!ucontrol->value.integer.value[1]) onyx_snd_mute_put()
367 struct snd_ctl_elem_value *ucontrol) onyx_snd_single_bit_get()
380 ucontrol->value.integer.value[0] = !!(c & mask) ^ polarity; onyx_snd_single_bit_get()
386 struct snd_ctl_elem_value *ucontrol) onyx_snd_single_bit_put()
406 if (!!ucontrol->value.integer.value[0] ^ polarity) onyx_snd_single_bit_put()
467 struct snd_ctl_elem_value *ucontrol) onyx_spdif_mask_get()
470 ucontrol->value.iec958.status[0] = 0x3e; onyx_spdif_mask_get()
471 ucontrol->value.iec958.status[1] = 0xff; onyx_spdif_mask_get()
473 ucontrol->value.iec958.status[3] = 0x3f; onyx_spdif_mask_get()
474 ucontrol->value.iec958.status[4] = 0x0f; onyx_spdif_mask_get()
488 struct snd_ctl_elem_value *ucontrol) onyx_spdif_get()
495 ucontrol->value.iec958.status[0] = v & 0x3e; onyx_spdif_get()
498 ucontrol->value.iec958.status[1] = v; onyx_spdif_get()
501 ucontrol->value.iec958.status[3] = v & 0x3f; onyx_spdif_get()
504 ucontrol->value.iec958.status[4] = v & 0x0f; onyx_spdif_get()
511 struct snd_ctl_elem_value *ucontrol) onyx_spdif_put()
518 v = (v & ~0x3e) | (ucontrol->value.iec958.status[0] & 0x3e); onyx_spdif_put()
521 v = ucontrol->value.iec958.status[1]; onyx_spdif_put()
525 v = (v & ~0x3f) | (ucontrol->value.iec958.status[3] & 0x3f); onyx_spdif_put()
529 v = (v & ~0x0f) | (ucontrol->value.iec958.status[4] & 0x0f); onyx_spdif_put()
119 onyx_snd_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_vol_get() argument
136 onyx_snd_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_vol_put() argument
195 onyx_snd_inputgain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_inputgain_get() argument
211 onyx_snd_inputgain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_inputgain_put() argument
249 onyx_snd_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_capture_source_get() argument
277 onyx_snd_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_capture_source_put() argument
309 onyx_snd_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_mute_get() argument
325 onyx_snd_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_mute_put() argument
366 onyx_snd_single_bit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_single_bit_get() argument
385 onyx_snd_single_bit_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_snd_single_bit_put() argument
466 onyx_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_spdif_mask_get() argument
487 onyx_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_spdif_get() argument
510 onyx_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) onyx_spdif_put() argument
/linux-4.1.27/sound/isa/msnd/
H A Dmsnd_pinnacle_mixer.c68 struct snd_ctl_elem_value *ucontrol) snd_msndmix_get_mux()
72 ucontrol->value.enumerated.item[0] = 0; snd_msndmix_get_mux()
75 ucontrol->value.enumerated.item[0] = 1; snd_msndmix_get_mux()
78 ucontrol->value.enumerated.item[0] = 2; snd_msndmix_get_mux()
120 struct snd_ctl_elem_value *ucontrol) snd_msndmix_put_mux()
123 return snd_msndmix_set_mux(msnd, ucontrol->value.enumerated.item[0]); snd_msndmix_put_mux()
138 struct snd_ctl_elem_value *ucontrol) snd_msndmix_volume_get()
145 ucontrol->value.integer.value[0] = msnd->left_levels[addr] * 100; snd_msndmix_volume_get()
146 ucontrol->value.integer.value[0] /= 0xFFFF; snd_msndmix_volume_get()
147 ucontrol->value.integer.value[1] = msnd->right_levels[addr] * 100; snd_msndmix_volume_get()
148 ucontrol->value.integer.value[1] /= 0xFFFF; snd_msndmix_volume_get()
256 struct snd_ctl_elem_value *ucontrol) snd_msndmix_volume_put()
263 left = ucontrol->value.integer.value[0] % 101; snd_msndmix_volume_put()
264 right = ucontrol->value.integer.value[1] % 101; snd_msndmix_volume_put()
67 snd_msndmix_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_msndmix_get_mux() argument
119 snd_msndmix_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_msndmix_put_mux() argument
137 snd_msndmix_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_msndmix_volume_get() argument
255 snd_msndmix_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_msndmix_volume_put() argument
/linux-4.1.27/sound/soc/samsung/
H A Ds3c24xx_simtec.c30 * @ucontrol: The value that needs to be updated.
35 struct snd_ctl_elem_value *ucontrol) speaker_gain_get()
37 ucontrol->value.integer.value[0] = spk_gain; speaker_gain_get()
54 * @ucontrol: The value that needs to be set.
57 * @ucontrol setting.
64 struct snd_ctl_elem_value *ucontrol) speaker_gain_put()
66 int value = ucontrol->value.integer.value[0]; speaker_gain_put()
100 * @ucontrol: The value that needs to be updated.
105 struct snd_ctl_elem_value *ucontrol) speaker_unmute_get()
107 ucontrol->value.integer.value[0] = spk_unmute; speaker_unmute_get()
114 * @ucontrol: The value that needs to be set.
117 * @ucontrol setting.
120 struct snd_ctl_elem_value *ucontrol) speaker_unmute_put()
122 spk_unmute_state(ucontrol->value.integer.value[0]); speaker_unmute_put()
34 speaker_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_gain_get() argument
63 speaker_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_gain_put() argument
104 speaker_unmute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_unmute_get() argument
119 speaker_unmute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_unmute_put() argument
H A Dneo1973_wm8753.c177 struct snd_ctl_elem_value *ucontrol) lm4853_set_spk()
179 gta02_speaker_enabled = ucontrol->value.integer.value[0]; lm4853_set_spk()
187 struct snd_ctl_elem_value *ucontrol) lm4853_get_spk()
189 ucontrol->value.integer.value[0] = gta02_speaker_enabled; lm4853_get_spk()
176 lm4853_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lm4853_set_spk() argument
186 lm4853_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lm4853_get_spk() argument
/linux-4.1.27/sound/isa/cs423x/
H A Dcs4236_lib.c419 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_single() argument
429 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; snd_cs4236_get_single()
432 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_cs4236_get_single()
436 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_single() argument
447 val = (ucontrol->value.integer.value[0] & mask); snd_cs4236_put_single()
465 static int snd_cs4236_get_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_singlec() argument
475 ucontrol->value.integer.value[0] = (chip->cimage[reg] >> shift) & mask; snd_cs4236_get_singlec()
478 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_cs4236_get_singlec()
482 static int snd_cs4236_put_singlec(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_singlec() argument
493 val = (ucontrol->value.integer.value[0] & mask); snd_cs4236_put_singlec()
532 static int snd_cs4236_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_double() argument
544 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(left_reg)] >> shift_left) & mask; snd_cs4236_get_double()
545 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; snd_cs4236_get_double()
548 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_cs4236_get_double()
549 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_cs4236_get_double()
554 static int snd_cs4236_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_double() argument
567 val1 = ucontrol->value.integer.value[0] & mask; snd_cs4236_put_double()
568 val2 = ucontrol->value.integer.value[1] & mask; snd_cs4236_put_double()
608 static int snd_cs4236_get_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_double1() argument
620 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; snd_cs4236_get_double1()
621 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; snd_cs4236_get_double1()
624 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_cs4236_get_double1()
625 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_cs4236_get_double1()
630 static int snd_cs4236_put_double1(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_double1() argument
643 val1 = ucontrol->value.integer.value[0] & mask; snd_cs4236_put_double1()
644 val2 = ucontrol->value.integer.value[1] & mask; snd_cs4236_put_double1()
674 static int snd_cs4236_get_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_master_digital() argument
680 ucontrol->value.integer.value[0] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS4236_REG(CS4236_LEFT_MASTER)] & 0x7f); snd_cs4236_get_master_digital()
681 ucontrol->value.integer.value[1] = snd_cs4236_mixer_master_digital_invert_volume(chip->eimage[CS4236_REG(CS4236_RIGHT_MASTER)] & 0x7f); snd_cs4236_get_master_digital()
686 static int snd_cs4236_put_master_digital(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_master_digital() argument
693 val1 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[0] & 0x7f); snd_cs4236_put_master_digital()
694 val2 = snd_cs4236_mixer_master_digital_invert_volume(ucontrol->value.integer.value[1] & 0x7f); snd_cs4236_put_master_digital()
735 static int snd_cs4235_get_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4235_get_output_accu() argument
741 ucontrol->value.integer.value[0] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_LEFT_MASTER]); snd_cs4235_get_output_accu()
742 ucontrol->value.integer.value[1] = snd_cs4235_mixer_output_accu_get_volume(chip->image[CS4235_RIGHT_MASTER]); snd_cs4235_get_output_accu()
747 static int snd_cs4235_put_output_accu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4235_put_output_accu() argument
754 val1 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[0]); snd_cs4235_put_output_accu()
755 val2 = snd_cs4235_mixer_output_accu_set_volume(ucontrol->value.integer.value[1]); snd_cs4235_put_output_accu()
945 static int snd_cs4236_get_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_get_iec958_switch() argument
951 ucontrol->value.integer.value[0] = chip->image[CS4231_ALT_FEATURE_1] & 0x02 ? 1 : 0; snd_cs4236_get_iec958_switch()
966 static int snd_cs4236_put_iec958_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4236_put_iec958_switch() argument
973 enable = ucontrol->value.integer.value[0] & 1; snd_cs4236_put_iec958_switch()
/linux-4.1.27/sound/soc/codecs/
H A Dwl1273.c173 struct snd_ctl_elem_value *ucontrol) snd_wl1273_get_audio_route()
178 ucontrol->value.integer.value[0] = wl1273->mode; snd_wl1273_get_audio_route()
191 struct snd_ctl_elem_value *ucontrol) snd_wl1273_set_audio_route()
196 if (wl1273->mode == ucontrol->value.integer.value[0]) snd_wl1273_set_audio_route()
203 if (ucontrol->value.integer.value[0] < 0 || snd_wl1273_set_audio_route()
204 ucontrol->value.integer.value[0] >= ARRAY_SIZE(wl1273_audio_route)) snd_wl1273_set_audio_route()
207 wl1273->mode = ucontrol->value.integer.value[0]; snd_wl1273_set_audio_route()
215 struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_audio_get()
222 ucontrol->value.integer.value[0] = wl1273->core->audio_mode; snd_wl1273_fm_audio_get()
228 struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_audio_put()
236 val = ucontrol->value.integer.value[0]; snd_wl1273_fm_audio_put()
252 struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_volume_get()
259 ucontrol->value.integer.value[0] = wl1273->core->volume; snd_wl1273_fm_volume_get()
265 struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_volume_put()
274 ucontrol->value.integer.value[0]); snd_wl1273_fm_volume_put()
172 snd_wl1273_get_audio_route(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_get_audio_route() argument
190 snd_wl1273_set_audio_route(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_set_audio_route() argument
214 snd_wl1273_fm_audio_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_audio_get() argument
227 snd_wl1273_fm_audio_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_audio_put() argument
251 snd_wl1273_fm_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_volume_get() argument
264 snd_wl1273_fm_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wl1273_fm_volume_put() argument
H A Dwm8958-dsp2.c457 struct snd_ctl_elem_value *ucontrol) wm8958_put_mbc_enum()
462 int value = ucontrol->value.enumerated.item[0]; wm8958_put_mbc_enum()
479 struct snd_ctl_elem_value *ucontrol) wm8958_get_mbc_enum()
484 ucontrol->value.enumerated.item[0] = wm8994->mbc_cfg; wm8958_get_mbc_enum()
500 struct snd_ctl_elem_value *ucontrol) wm8958_mbc_get()
506 ucontrol->value.integer.value[0] = wm8994->mbc_ena[mbc]; wm8958_mbc_get()
512 struct snd_ctl_elem_value *ucontrol) wm8958_mbc_put()
518 if (wm8994->mbc_ena[mbc] == ucontrol->value.integer.value[0]) wm8958_mbc_put()
521 if (ucontrol->value.integer.value[0] > 1) wm8958_mbc_put()
532 wm8994->mbc_ena[mbc] = ucontrol->value.integer.value[0]; wm8958_mbc_put()
547 struct snd_ctl_elem_value *ucontrol) wm8958_put_vss_enum()
552 int value = ucontrol->value.enumerated.item[0]; wm8958_put_vss_enum()
569 struct snd_ctl_elem_value *ucontrol) wm8958_get_vss_enum()
574 ucontrol->value.enumerated.item[0] = wm8994->vss_cfg; wm8958_get_vss_enum()
580 struct snd_ctl_elem_value *ucontrol) wm8958_put_vss_hpf_enum()
585 int value = ucontrol->value.enumerated.item[0]; wm8958_put_vss_hpf_enum()
602 struct snd_ctl_elem_value *ucontrol) wm8958_get_vss_hpf_enum()
607 ucontrol->value.enumerated.item[0] = wm8994->vss_hpf_cfg; wm8958_get_vss_hpf_enum()
623 struct snd_ctl_elem_value *ucontrol) wm8958_vss_get()
629 ucontrol->value.integer.value[0] = wm8994->vss_ena[vss]; wm8958_vss_get()
635 struct snd_ctl_elem_value *ucontrol) wm8958_vss_put()
641 if (wm8994->vss_ena[vss] == ucontrol->value.integer.value[0]) wm8958_vss_put()
644 if (ucontrol->value.integer.value[0] > 1) wm8958_vss_put()
658 wm8994->vss_ena[vss] = ucontrol->value.integer.value[0]; wm8958_vss_put()
684 struct snd_ctl_elem_value *ucontrol) wm8958_hpf_get()
691 ucontrol->value.integer.value[0] = wm8994->hpf1_ena[hpf % 3]; wm8958_hpf_get()
693 ucontrol->value.integer.value[0] = wm8994->hpf2_ena[hpf % 3]; wm8958_hpf_get()
699 struct snd_ctl_elem_value *ucontrol) wm8958_hpf_put()
707 ucontrol->value.integer.value[0]) wm8958_hpf_put()
711 ucontrol->value.integer.value[0]) wm8958_hpf_put()
715 if (ucontrol->value.integer.value[0] > 1) wm8958_hpf_put()
730 wm8994->hpf1_ena[hpf % 3] = ucontrol->value.integer.value[0]; wm8958_hpf_put()
732 wm8994->hpf2_ena[hpf % 3] = ucontrol->value.integer.value[0]; wm8958_hpf_put()
734 wm8958_dsp_apply(codec, hpf % 3, ucontrol->value.integer.value[0]); wm8958_hpf_put()
747 struct snd_ctl_elem_value *ucontrol) wm8958_put_enh_eq_enum()
752 int value = ucontrol->value.enumerated.item[0]; wm8958_put_enh_eq_enum()
769 struct snd_ctl_elem_value *ucontrol) wm8958_get_enh_eq_enum()
774 ucontrol->value.enumerated.item[0] = wm8994->enh_eq_cfg; wm8958_get_enh_eq_enum()
790 struct snd_ctl_elem_value *ucontrol) wm8958_enh_eq_get()
796 ucontrol->value.integer.value[0] = wm8994->enh_eq_ena[eq]; wm8958_enh_eq_get()
802 struct snd_ctl_elem_value *ucontrol) wm8958_enh_eq_put()
808 if (wm8994->enh_eq_ena[eq] == ucontrol->value.integer.value[0]) wm8958_enh_eq_put()
811 if (ucontrol->value.integer.value[0] > 1) wm8958_enh_eq_put()
826 wm8994->enh_eq_ena[eq] = ucontrol->value.integer.value[0]; wm8958_enh_eq_put()
828 wm8958_dsp_apply(codec, eq, ucontrol->value.integer.value[0]); wm8958_enh_eq_put()
456 wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_put_mbc_enum() argument
478 wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_get_mbc_enum() argument
499 wm8958_mbc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_mbc_get() argument
511 wm8958_mbc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_mbc_put() argument
546 wm8958_put_vss_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_put_vss_enum() argument
568 wm8958_get_vss_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_get_vss_enum() argument
579 wm8958_put_vss_hpf_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_put_vss_hpf_enum() argument
601 wm8958_get_vss_hpf_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_get_vss_hpf_enum() argument
622 wm8958_vss_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_vss_get() argument
634 wm8958_vss_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_vss_put() argument
683 wm8958_hpf_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_hpf_get() argument
698 wm8958_hpf_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_hpf_put() argument
746 wm8958_put_enh_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_put_enh_eq_enum() argument
768 wm8958_get_enh_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_get_enh_eq_enum() argument
789 wm8958_enh_eq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_enh_eq_get() argument
801 wm8958_enh_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8958_enh_eq_put() argument
H A Dlm4857.c50 struct snd_ctl_elem_value *ucontrol) lm4857_get_mode()
55 ucontrol->value.integer.value[0] = lm4857->mode; lm4857_get_mode()
61 struct snd_ctl_elem_value *ucontrol) lm4857_set_mode()
65 uint8_t value = ucontrol->value.integer.value[0]; lm4857_set_mode()
49 lm4857_get_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lm4857_get_mode() argument
60 lm4857_set_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lm4857_set_mode() argument
H A Dmax9768.c44 struct snd_ctl_elem_value *ucontrol) max9768_get_gpio()
50 ucontrol->value.integer.value[0] = !val; max9768_get_gpio()
56 struct snd_ctl_elem_value *ucontrol) max9768_set_gpio()
61 gpio_set_value_cansleep(max9768->mute_gpio, !ucontrol->value.integer.value[0]); max9768_set_gpio()
43 max9768_get_gpio(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max9768_get_gpio() argument
55 max9768_set_gpio(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max9768_set_gpio() argument
H A Dtpa6130a2.c192 struct snd_ctl_elem_value *ucontrol) tpa6130a2_get_volsw()
209 ucontrol->value.integer.value[0] = tpa6130a2_get_volsw()
213 ucontrol->value.integer.value[0] = tpa6130a2_get_volsw()
214 max - ucontrol->value.integer.value[0]; tpa6130a2_get_volsw()
221 struct snd_ctl_elem_value *ucontrol) tpa6130a2_put_volsw()
231 unsigned int val = (ucontrol->value.integer.value[0] & mask); tpa6130a2_put_volsw()
191 tpa6130a2_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tpa6130a2_get_volsw() argument
220 tpa6130a2_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tpa6130a2_put_volsw() argument
H A Dpcm1681.c116 struct snd_ctl_elem_value *ucontrol) pcm1681_get_deemph()
121 ucontrol->value.integer.value[0] = priv->deemph; pcm1681_get_deemph()
127 struct snd_ctl_elem_value *ucontrol) pcm1681_put_deemph()
132 priv->deemph = ucontrol->value.integer.value[0]; pcm1681_put_deemph()
115 pcm1681_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm1681_get_deemph() argument
126 pcm1681_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm1681_put_deemph() argument
H A Dtwl4030.c841 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_twl4030()
852 ucontrol->value.integer.value[0] = snd_soc_get_volsw_twl4030()
854 if (ucontrol->value.integer.value[0]) snd_soc_get_volsw_twl4030()
855 ucontrol->value.integer.value[0] = snd_soc_get_volsw_twl4030()
856 max + 1 - ucontrol->value.integer.value[0]; snd_soc_get_volsw_twl4030()
859 ucontrol->value.integer.value[1] = snd_soc_get_volsw_twl4030()
861 if (ucontrol->value.integer.value[1]) snd_soc_get_volsw_twl4030()
862 ucontrol->value.integer.value[1] = snd_soc_get_volsw_twl4030()
863 max + 1 - ucontrol->value.integer.value[1]; snd_soc_get_volsw_twl4030()
870 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_twl4030()
882 val = (ucontrol->value.integer.value[0] & mask); snd_soc_put_volsw_twl4030()
889 val2 = (ucontrol->value.integer.value[1] & mask); snd_soc_put_volsw_twl4030()
899 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_r2_twl4030()
910 ucontrol->value.integer.value[0] = snd_soc_get_volsw_r2_twl4030()
912 ucontrol->value.integer.value[1] = snd_soc_get_volsw_r2_twl4030()
915 if (ucontrol->value.integer.value[0]) snd_soc_get_volsw_r2_twl4030()
916 ucontrol->value.integer.value[0] = snd_soc_get_volsw_r2_twl4030()
917 max + 1 - ucontrol->value.integer.value[0]; snd_soc_get_volsw_r2_twl4030()
918 if (ucontrol->value.integer.value[1]) snd_soc_get_volsw_r2_twl4030()
919 ucontrol->value.integer.value[1] = snd_soc_get_volsw_r2_twl4030()
920 max + 1 - ucontrol->value.integer.value[1]; snd_soc_get_volsw_r2_twl4030()
926 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_r2_twl4030()
940 val = (ucontrol->value.integer.value[0] & mask); snd_soc_put_volsw_r2_twl4030()
941 val2 = (ucontrol->value.integer.value[1] & mask); snd_soc_put_volsw_r2_twl4030()
969 struct snd_ctl_elem_value *ucontrol) snd_soc_put_twl4030_opmode_enum_double()
980 return snd_soc_put_enum_double(kcontrol, ucontrol); snd_soc_put_twl4030_opmode_enum_double()
840 snd_soc_get_volsw_twl4030(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_twl4030() argument
869 snd_soc_put_volsw_twl4030(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_twl4030() argument
898 snd_soc_get_volsw_r2_twl4030(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_r2_twl4030() argument
925 snd_soc_put_volsw_r2_twl4030(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_r2_twl4030() argument
968 snd_soc_put_twl4030_opmode_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_twl4030_opmode_enum_double() argument
H A Dcs42l51.c55 struct snd_ctl_elem_value *ucontrol) cs42l51_get_chan_mix()
63 ucontrol->value.integer.value[0] = 0; cs42l51_get_chan_mix()
68 ucontrol->value.integer.value[0] = 1; cs42l51_get_chan_mix()
71 ucontrol->value.integer.value[0] = 2; cs42l51_get_chan_mix()
83 struct snd_ctl_elem_value *ucontrol) cs42l51_set_chan_mix()
88 switch (ucontrol->value.integer.value[0]) { cs42l51_set_chan_mix()
54 cs42l51_get_chan_mix(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs42l51_get_chan_mix() argument
82 cs42l51_set_chan_mix(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs42l51_set_chan_mix() argument
H A Dwm2000.c608 struct snd_ctl_elem_value *ucontrol) wm2000_anc_mode_get()
613 ucontrol->value.integer.value[0] = wm2000->anc_active; wm2000_anc_mode_get()
619 struct snd_ctl_elem_value *ucontrol) wm2000_anc_mode_put()
623 int anc_active = ucontrol->value.integer.value[0]; wm2000_anc_mode_put()
641 struct snd_ctl_elem_value *ucontrol) wm2000_speaker_get()
646 ucontrol->value.integer.value[0] = wm2000->spk_ena; wm2000_speaker_get()
652 struct snd_ctl_elem_value *ucontrol) wm2000_speaker_put()
656 int val = ucontrol->value.integer.value[0]; wm2000_speaker_put()
607 wm2000_anc_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm2000_anc_mode_get() argument
618 wm2000_anc_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm2000_anc_mode_put() argument
640 wm2000_speaker_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm2000_speaker_get() argument
651 wm2000_speaker_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm2000_speaker_put() argument
H A D88pm860x-codec.c275 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_2r_st()
291 ucontrol->value.integer.value[0] = i; snd_soc_get_volsw_2r_st()
293 ucontrol->value.integer.value[1] = i; snd_soc_get_volsw_2r_st()
299 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_2r_st()
309 val = ucontrol->value.integer.value[0]; snd_soc_put_volsw_2r_st()
310 val2 = ucontrol->value.integer.value[1]; snd_soc_put_volsw_2r_st()
332 struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_2r_out()
345 ucontrol->value.integer.value[0] = (max - val) & mask; snd_soc_get_volsw_2r_out()
346 ucontrol->value.integer.value[1] = (max - val2) & mask; snd_soc_get_volsw_2r_out()
352 struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_2r_out()
366 val = ((max - ucontrol->value.integer.value[0]) & mask); snd_soc_put_volsw_2r_out()
367 val2 = ((max - ucontrol->value.integer.value[1]) & mask); snd_soc_put_volsw_2r_out()
274 snd_soc_get_volsw_2r_st(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_2r_st() argument
298 snd_soc_put_volsw_2r_st(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_2r_st() argument
331 snd_soc_get_volsw_2r_out(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_get_volsw_2r_out() argument
351 snd_soc_put_volsw_2r_out(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_put_volsw_2r_out() argument
H A Dpcm512x.c230 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_pll_get()
235 ucontrol->value.integer.value[0] = pcm512x->overclock_pll; pcm512x_overclock_pll_get()
240 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_pll_put()
253 pcm512x->overclock_pll = ucontrol->value.integer.value[0]; pcm512x_overclock_pll_put()
258 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dsp_get()
263 ucontrol->value.integer.value[0] = pcm512x->overclock_dsp; pcm512x_overclock_dsp_get()
268 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dsp_put()
281 pcm512x->overclock_dsp = ucontrol->value.integer.value[0]; pcm512x_overclock_dsp_put()
286 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dac_get()
291 ucontrol->value.integer.value[0] = pcm512x->overclock_dac; pcm512x_overclock_dac_get()
296 struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dac_put()
309 pcm512x->overclock_dac = ucontrol->value.integer.value[0]; pcm512x_overclock_dac_put()
229 pcm512x_overclock_pll_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_pll_get() argument
239 pcm512x_overclock_pll_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_pll_put() argument
257 pcm512x_overclock_dsp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dsp_get() argument
267 pcm512x_overclock_dsp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dsp_put() argument
285 pcm512x_overclock_dac_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dac_get() argument
295 pcm512x_overclock_dac_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) pcm512x_overclock_dac_put() argument
H A Dwm8983.c188 struct snd_ctl_elem_value *ucontrol);
190 struct snd_ctl_elem_value *ucontrol);
553 struct snd_ctl_elem_value *ucontrol) eqmode_get()
560 ucontrol->value.integer.value[0] = 1; eqmode_get()
562 ucontrol->value.integer.value[0] = 0; eqmode_get()
568 struct snd_ctl_elem_value *ucontrol) eqmode_put()
574 if (ucontrol->value.integer.value[0] != 0 eqmode_put()
575 && ucontrol->value.integer.value[0] != 1) eqmode_put()
581 if (!ucontrol->value.integer.value[0]) eqmode_put()
585 if (ucontrol->value.integer.value[0]) eqmode_put()
600 ucontrol->value.integer.value[0] eqmode_put()
552 eqmode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) eqmode_get() argument
567 eqmode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) eqmode_put() argument
H A Dwm8985.c209 struct snd_ctl_elem_value *ucontrol);
211 struct snd_ctl_elem_value *ucontrol);
527 struct snd_ctl_elem_value *ucontrol) eqmode_get()
534 ucontrol->value.integer.value[0] = 1; eqmode_get()
536 ucontrol->value.integer.value[0] = 0; eqmode_get()
542 struct snd_ctl_elem_value *ucontrol) eqmode_put()
548 if (ucontrol->value.integer.value[0] != 0 eqmode_put()
549 && ucontrol->value.integer.value[0] != 1) eqmode_put()
555 if (!ucontrol->value.integer.value[0]) eqmode_put()
559 if (ucontrol->value.integer.value[0]) eqmode_put()
576 ucontrol->value.integer.value[0] eqmode_put()
526 eqmode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) eqmode_get() argument
541 eqmode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) eqmode_put() argument
H A Dtwl6040.c336 struct snd_ctl_elem_value *ucontrol) twl6040_soc_dapm_put_vibra_enum()
347 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol); twl6040_soc_dapm_put_vibra_enum()
485 struct snd_ctl_elem_value *ucontrol) twl6040_headset_power_get_enum()
490 ucontrol->value.enumerated.item[0] = priv->hs_power_mode; twl6040_headset_power_get_enum()
496 struct snd_ctl_elem_value *ucontrol) twl6040_headset_power_put_enum()
500 int high_perf = ucontrol->value.enumerated.item[0]; twl6040_headset_power_put_enum()
513 struct snd_ctl_elem_value *ucontrol) twl6040_pll_get_enum()
518 ucontrol->value.enumerated.item[0] = priv->pll_power_mode; twl6040_pll_get_enum()
524 struct snd_ctl_elem_value *ucontrol) twl6040_pll_put_enum()
529 priv->pll_power_mode = ucontrol->value.enumerated.item[0]; twl6040_pll_put_enum()
335 twl6040_soc_dapm_put_vibra_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) twl6040_soc_dapm_put_vibra_enum() argument
484 twl6040_headset_power_get_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) twl6040_headset_power_get_enum() argument
495 twl6040_headset_power_put_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) twl6040_headset_power_put_enum() argument
512 twl6040_pll_get_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) twl6040_pll_get_enum() argument
523 twl6040_pll_put_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) twl6040_pll_put_enum() argument
H A Dwm8350.c300 struct snd_ctl_elem_value *ucontrol) wm8350_put_volsw_2r_vu()
326 out->left_vol = ucontrol->value.integer.value[0]; wm8350_put_volsw_2r_vu()
327 out->right_vol = ucontrol->value.integer.value[1]; wm8350_put_volsw_2r_vu()
332 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8350_put_volsw_2r_vu()
343 struct snd_ctl_elem_value *ucontrol) wm8350_get_volsw_2r()
356 ucontrol->value.integer.value[0] = out1->left_vol; wm8350_get_volsw_2r()
357 ucontrol->value.integer.value[1] = out1->right_vol; wm8350_get_volsw_2r()
361 ucontrol->value.integer.value[0] = out2->left_vol; wm8350_get_volsw_2r()
362 ucontrol->value.integer.value[1] = out2->right_vol; wm8350_get_volsw_2r()
369 return snd_soc_get_volsw(kcontrol, ucontrol); wm8350_get_volsw_2r()
299 wm8350_put_volsw_2r_vu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8350_put_volsw_2r_vu() argument
342 wm8350_get_volsw_2r(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8350_get_volsw_2r() argument
H A Dadau17x1.c155 struct snd_ctl_elem_value *ucontrol) adau17x1_dsp_mux_enum_put()
165 if (ucontrol->value.enumerated.item[0] >= e->items) adau17x1_dsp_mux_enum_put()
168 switch (ucontrol->value.enumerated.item[0]) { adau17x1_dsp_mux_enum_put()
192 ucontrol->value.enumerated.item[0], e, &update); adau17x1_dsp_mux_enum_put()
199 struct snd_ctl_elem_value *ucontrol) adau17x1_dsp_mux_enum_get()
219 ucontrol->value.enumerated.item[0] = val; adau17x1_dsp_mux_enum_get()
154 adau17x1_dsp_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) adau17x1_dsp_mux_enum_put() argument
198 adau17x1_dsp_mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) adau17x1_dsp_mux_enum_get() argument
H A Dwm_adsp.c223 struct snd_ctl_elem_value *ucontrol);
225 struct snd_ctl_elem_value *ucontrol);
245 struct snd_ctl_elem_value *ucontrol) wm_adsp_fw_get()
251 ucontrol->value.enumerated.item[0] = adsp[e->shift_l].fw; wm_adsp_fw_get()
257 struct snd_ctl_elem_value *ucontrol) wm_adsp_fw_put()
263 if (ucontrol->value.enumerated.item[0] == adsp[e->shift_l].fw) wm_adsp_fw_put()
266 if (ucontrol->value.enumerated.item[0] >= WM_ADSP_NUM_FW) wm_adsp_fw_put()
272 adsp[e->shift_l].fw = ucontrol->value.enumerated.item[0]; wm_adsp_fw_put()
416 struct snd_ctl_elem_value *ucontrol) wm_coeff_put()
419 char *p = ucontrol->value.bytes.data; wm_coeff_put()
471 struct snd_ctl_elem_value *ucontrol) wm_coeff_get()
474 char *p = ucontrol->value.bytes.data; wm_coeff_get()
244 wm_adsp_fw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adsp_fw_get() argument
256 wm_adsp_fw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_adsp_fw_put() argument
415 wm_coeff_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_coeff_put() argument
470 wm_coeff_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm_coeff_get() argument
H A Dak4641.c75 struct snd_ctl_elem_value *ucontrol) ak4641_put_deemph()
79 int deemph = ucontrol->value.integer.value[0]; ak4641_put_deemph()
90 struct snd_ctl_elem_value *ucontrol) ak4641_get_deemph()
95 ucontrol->value.integer.value[0] = ak4641->deemph; ak4641_get_deemph()
74 ak4641_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4641_put_deemph() argument
89 ak4641_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ak4641_get_deemph() argument
H A Dcs4271.c284 struct snd_ctl_elem_value *ucontrol) cs4271_get_deemph()
289 ucontrol->value.integer.value[0] = cs4271->deemph; cs4271_get_deemph()
294 struct snd_ctl_elem_value *ucontrol) cs4271_put_deemph()
299 cs4271->deemph = ucontrol->value.integer.value[0]; cs4271_put_deemph()
283 cs4271_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs4271_get_deemph() argument
293 cs4271_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs4271_put_deemph() argument
H A Dmax98095.c617 struct snd_ctl_elem_value *ucontrol) max98095_mic1pre_set()
621 unsigned int sel = ucontrol->value.integer.value[0]; max98095_mic1pre_set()
631 struct snd_ctl_elem_value *ucontrol) max98095_mic1pre_get()
636 ucontrol->value.integer.value[0] = max98095->mic1pre; max98095_mic1pre_get()
641 struct snd_ctl_elem_value *ucontrol) max98095_mic2pre_set()
645 unsigned int sel = ucontrol->value.integer.value[0]; max98095_mic2pre_set()
655 struct snd_ctl_elem_value *ucontrol) max98095_mic2pre_get()
660 ucontrol->value.integer.value[0] = max98095->mic2pre; max98095_mic2pre_get()
1760 struct snd_ctl_elem_value *ucontrol) max98095_put_eq_enum()
1767 unsigned int sel = ucontrol->value.integer.value[0]; max98095_put_eq_enum()
1824 struct snd_ctl_elem_value *ucontrol) max98095_get_eq_enum()
1832 ucontrol->value.enumerated.item[0] = cdata->eq_sel; max98095_get_eq_enum()
1914 struct snd_ctl_elem_value *ucontrol) max98095_put_bq_enum()
1921 unsigned int sel = ucontrol->value.integer.value[0]; max98095_put_bq_enum()
1975 struct snd_ctl_elem_value *ucontrol) max98095_get_bq_enum()
1986 ucontrol->value.enumerated.item[0] = cdata->bq_sel; max98095_get_bq_enum()
616 max98095_mic1pre_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_mic1pre_set() argument
630 max98095_mic1pre_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_mic1pre_get() argument
640 max98095_mic2pre_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_mic2pre_set() argument
654 max98095_mic2pre_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_mic2pre_get() argument
1759 max98095_put_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_put_eq_enum() argument
1823 max98095_get_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_get_eq_enum() argument
1913 max98095_put_bq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_put_bq_enum() argument
1974 max98095_get_bq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98095_get_bq_enum() argument
H A Dtlv320aic23.c83 struct snd_ctl_elem_value *ucontrol) snd_soc_tlv320aic23_put_volsw()
88 val = (ucontrol->value.integer.value[0] & 0x07); snd_soc_tlv320aic23_put_volsw()
106 struct snd_ctl_elem_value *ucontrol) snd_soc_tlv320aic23_get_volsw()
114 ucontrol->value.integer.value[0] = val; snd_soc_tlv320aic23_get_volsw()
82 snd_soc_tlv320aic23_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_tlv320aic23_put_volsw() argument
105 snd_soc_tlv320aic23_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_soc_tlv320aic23_get_volsw() argument
H A Dwm8904.c394 struct snd_ctl_elem_value *ucontrol) wm8904_put_drc_enum()
399 int value = ucontrol->value.integer.value[0]; wm8904_put_drc_enum()
412 struct snd_ctl_elem_value *ucontrol) wm8904_get_drc_enum()
417 ucontrol->value.enumerated.item[0] = wm8904->drc_cfg; wm8904_get_drc_enum()
465 struct snd_ctl_elem_value *ucontrol) wm8904_put_retune_mobile_enum()
470 int value = ucontrol->value.integer.value[0]; wm8904_put_retune_mobile_enum()
483 struct snd_ctl_elem_value *ucontrol) wm8904_get_retune_mobile_enum()
488 ucontrol->value.enumerated.item[0] = wm8904->retune_mobile_cfg; wm8904_get_retune_mobile_enum()
523 struct snd_ctl_elem_value *ucontrol) wm8904_get_deemph()
528 ucontrol->value.integer.value[0] = wm8904->deemph; wm8904_get_deemph()
533 struct snd_ctl_elem_value *ucontrol) wm8904_put_deemph()
537 int deemph = ucontrol->value.integer.value[0]; wm8904_put_deemph()
573 struct snd_ctl_elem_value *ucontrol) wm8904_adc_osr_put()
579 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8904_adc_osr_put()
583 if (ucontrol->value.integer.value[0]) wm8904_adc_osr_put()
393 wm8904_put_drc_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_put_drc_enum() argument
411 wm8904_get_drc_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_get_drc_enum() argument
464 wm8904_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_put_retune_mobile_enum() argument
482 wm8904_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_get_retune_mobile_enum() argument
522 wm8904_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_get_deemph() argument
532 wm8904_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_put_deemph() argument
572 wm8904_adc_osr_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8904_adc_osr_put() argument
H A Dcs4270.c428 * @ucontrol: control element information
439 struct snd_ctl_elem_value *ucontrol) cs4270_soc_put_mute()
443 int left = !ucontrol->value.integer.value[0]; cs4270_soc_put_mute()
444 int right = !ucontrol->value.integer.value[1]; cs4270_soc_put_mute()
449 return snd_soc_put_volsw(kcontrol, ucontrol); cs4270_soc_put_mute()
438 cs4270_soc_put_mute(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cs4270_soc_put_mute() argument
H A Dwm9712.c178 struct snd_ctl_elem_value *ucontrol) wm9712_hp_mixer_put()
183 unsigned int val = ucontrol->value.integer.value[0]; wm9712_hp_mixer_put()
196 if (ucontrol->value.integer.value[0]) wm9712_hp_mixer_put()
222 struct snd_ctl_elem_value *ucontrol) wm9712_hp_mixer_get()
234 ucontrol->value.integer.value[0] = wm9712_hp_mixer_get()
177 wm9712_hp_mixer_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm9712_hp_mixer_put() argument
221 wm9712_hp_mixer_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm9712_hp_mixer_get() argument
H A Dsta32x.c271 struct snd_ctl_elem_value *ucontrol) sta32x_coefficient_get()
303 ucontrol->value.bytes.data[i] = val; sta32x_coefficient_get()
313 struct snd_ctl_elem_value *ucontrol) sta32x_coefficient_put()
334 (ucontrol->value.bytes.data[3 * i] << 16) sta32x_coefficient_put()
335 | (ucontrol->value.bytes.data[3 * i + 1] << 8) sta32x_coefficient_put()
336 | (ucontrol->value.bytes.data[3 * i + 2]); sta32x_coefficient_put()
339 ucontrol->value.bytes.data[i]); sta32x_coefficient_put()
270 sta32x_coefficient_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sta32x_coefficient_get() argument
312 sta32x_coefficient_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sta32x_coefficient_put() argument
H A Dsta350.c310 struct snd_ctl_elem_value *ucontrol) sta350_coefficient_get()
342 ucontrol->value.bytes.data[i] = val; sta350_coefficient_get()
352 struct snd_ctl_elem_value *ucontrol) sta350_coefficient_put()
373 (ucontrol->value.bytes.data[3 * i] << 16) sta350_coefficient_put()
374 | (ucontrol->value.bytes.data[3 * i + 1] << 8) sta350_coefficient_put()
375 | (ucontrol->value.bytes.data[3 * i + 2]); sta350_coefficient_put()
378 ucontrol->value.bytes.data[i]); sta350_coefficient_put()
309 sta350_coefficient_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sta350_coefficient_get() argument
351 sta350_coefficient_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sta350_coefficient_put() argument
H A Dab8500-codec.c1127 struct snd_ctl_elem_value *ucontrol) sid_status_control_get()
1133 ucontrol->value.integer.value[0] = drvdata->sid_status; sid_status_control_get()
1141 struct snd_ctl_elem_value *ucontrol) sid_status_control_put()
1150 if (ucontrol->value.integer.value[0] != SID_APPLY_FIR) { sid_status_control_put()
1196 struct snd_ctl_elem_value *ucontrol) anc_status_control_get()
1202 ucontrol->value.integer.value[0] = drvdata->anc_status; anc_status_control_get()
1209 struct snd_ctl_elem_value *ucontrol) anc_status_control_put()
1222 req = ucontrol->value.integer.value[0]; anc_status_control_put()
1292 struct snd_ctl_elem_value *ucontrol) filter_control_get()
1302 ucontrol->value.integer.value[i] = fc->value[i]; filter_control_get()
1309 struct snd_ctl_elem_value *ucontrol) filter_control_put()
1319 fc->value[i] = ucontrol->value.integer.value[i]; filter_control_put()
1126 sid_status_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sid_status_control_get() argument
1140 sid_status_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sid_status_control_put() argument
1195 anc_status_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) anc_status_control_get() argument
1208 anc_status_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) anc_status_control_put() argument
1291 filter_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) filter_control_get() argument
1308 filter_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) filter_control_put() argument
H A Dmax98088.c636 struct snd_ctl_elem_value *ucontrol) max98088_mic1pre_set()
640 unsigned int sel = ucontrol->value.integer.value[0]; max98088_mic1pre_set()
650 struct snd_ctl_elem_value *ucontrol) max98088_mic1pre_get()
655 ucontrol->value.integer.value[0] = max98088->mic1pre; max98088_mic1pre_get()
660 struct snd_ctl_elem_value *ucontrol) max98088_mic2pre_set()
664 unsigned int sel = ucontrol->value.integer.value[0]; max98088_mic2pre_set()
674 struct snd_ctl_elem_value *ucontrol) max98088_mic2pre_get()
679 ucontrol->value.integer.value[0] = max98088->mic2pre; max98088_mic2pre_get()
1751 struct snd_ctl_elem_value *ucontrol) max98088_put_eq_enum()
1758 int sel = ucontrol->value.integer.value[0]; max98088_put_eq_enum()
1783 struct snd_ctl_elem_value *ucontrol) max98088_get_eq_enum()
1794 ucontrol->value.enumerated.item[0] = cdata->eq_sel; max98088_get_eq_enum()
635 max98088_mic1pre_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_mic1pre_set() argument
649 max98088_mic1pre_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_mic1pre_get() argument
659 max98088_mic2pre_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_mic2pre_set() argument
673 max98088_mic2pre_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_mic2pre_get() argument
1750 max98088_put_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_put_eq_enum() argument
1782 max98088_get_eq_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) max98088_get_eq_enum() argument
H A Dwm8804.c75 struct snd_ctl_elem_value *ucontrol);
162 struct snd_ctl_elem_value *ucontrol) txsrc_put()
167 unsigned int val = ucontrol->value.enumerated.item[0] << e->shift_l; txsrc_put()
161 txsrc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) txsrc_put() argument
H A Dadav80x.c316 struct snd_ctl_elem_value *ucontrol) adav80x_put_deemph()
320 unsigned int deemph = ucontrol->value.integer.value[0]; adav80x_put_deemph()
331 struct snd_ctl_elem_value *ucontrol) adav80x_get_deemph()
336 ucontrol->value.integer.value[0] = adav80x->deemph; adav80x_get_deemph()
315 adav80x_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) adav80x_put_deemph() argument
330 adav80x_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) adav80x_get_deemph() argument
H A Des8328.c127 struct snd_ctl_elem_value *ucontrol) es8328_get_deemph()
132 ucontrol->value.integer.value[0] = es8328->deemph; es8328_get_deemph()
137 struct snd_ctl_elem_value *ucontrol) es8328_put_deemph()
141 int deemph = ucontrol->value.integer.value[0]; es8328_put_deemph()
126 es8328_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) es8328_get_deemph() argument
136 es8328_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) es8328_put_deemph() argument
H A Dsigmadsp.c130 struct snd_ctl_elem_value *ucontrol) sigmadsp_ctrl_put()
139 data = ucontrol->value.bytes.data; sigmadsp_ctrl_put()
155 struct snd_ctl_elem_value *ucontrol) sigmadsp_ctrl_get()
170 memcpy(ucontrol->value.bytes.data, ctrl->cache, sigmadsp_ctrl_get()
129 sigmadsp_ctrl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sigmadsp_ctrl_put() argument
154 sigmadsp_ctrl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sigmadsp_ctrl_get() argument
H A Dwm8731.c125 struct snd_ctl_elem_value *ucontrol) wm8731_get_deemph()
130 ucontrol->value.integer.value[0] = wm8731->deemph; wm8731_get_deemph()
136 struct snd_ctl_elem_value *ucontrol) wm8731_put_deemph()
140 int deemph = ucontrol->value.integer.value[0]; wm8731_put_deemph()
124 wm8731_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8731_get_deemph() argument
135 wm8731_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8731_put_deemph() argument
H A Dwm8955.c391 struct snd_ctl_elem_value *ucontrol) wm8955_get_deemph()
396 ucontrol->value.integer.value[0] = wm8955->deemph; wm8955_get_deemph()
401 struct snd_ctl_elem_value *ucontrol) wm8955_put_deemph()
405 int deemph = ucontrol->value.integer.value[0]; wm8955_put_deemph()
390 wm8955_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8955_get_deemph() argument
400 wm8955_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8955_put_deemph() argument
H A Dwm5102.c617 struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_coeff_get()
624 ucontrol->value.bytes.data); wm5102_out_comp_coeff_get()
631 struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_coeff_put()
637 memcpy(&arizona->dac_comp_coeff, ucontrol->value.bytes.data, wm5102_out_comp_coeff_put()
646 struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_switch_get()
652 ucontrol->value.integer.value[0] = arizona->dac_comp_enabled; wm5102_out_comp_switch_get()
659 struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_switch_put()
665 arizona->dac_comp_enabled = ucontrol->value.integer.value[0]; wm5102_out_comp_switch_put()
616 wm5102_out_comp_coeff_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_coeff_get() argument
630 wm5102_out_comp_coeff_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_coeff_put() argument
645 wm5102_out_comp_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_switch_get() argument
658 wm5102_out_comp_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm5102_out_comp_switch_put() argument
H A Dda7210.c336 struct snd_ctl_elem_value *ucontrol) da7210_put_alc_sw()
340 if (ucontrol->value.integer.value[0]) { da7210_put_alc_sw()
349 return snd_soc_put_volsw(kcontrol, ucontrol); da7210_put_alc_sw()
359 struct snd_ctl_elem_value *ucontrol) da7210_put_noise_sup_sw()
364 if (ucontrol->value.integer.value[0]) { da7210_put_noise_sup_sw()
391 return snd_soc_put_volsw(kcontrol, ucontrol); da7210_put_noise_sup_sw()
335 da7210_put_alc_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da7210_put_alc_sw() argument
358 da7210_put_noise_sup_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da7210_put_noise_sup_sw() argument
H A Dda7213.c346 struct snd_ctl_elem_value *ucontrol) da7213_put_mixin_gain()
352 ret = snd_soc_put_volsw_2r(kcontrol, ucontrol); da7213_put_mixin_gain()
362 struct snd_ctl_elem_value *ucontrol) da7213_put_alc_sw()
368 if (ucontrol->value.integer.value[0] || da7213_put_alc_sw()
369 ucontrol->value.integer.value[1]) { da7213_put_alc_sw()
378 return snd_soc_put_volsw(kcontrol, ucontrol); da7213_put_alc_sw()
345 da7213_put_mixin_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da7213_put_mixin_gain() argument
361 da7213_put_alc_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da7213_put_alc_sw() argument
H A Dda732x.c332 struct snd_ctl_elem_value *ucontrol) da732x_hpf_set()
337 unsigned int sel = ucontrol->value.integer.value[0]; da732x_hpf_set()
360 struct snd_ctl_elem_value *ucontrol) da732x_hpf_get()
371 ucontrol->value.integer.value[0] = DA732X_HPF_VOICE; da732x_hpf_get()
374 ucontrol->value.integer.value[0] = DA732X_HPF_MUSIC; da732x_hpf_get()
377 ucontrol->value.integer.value[0] = DA732X_HPF_DISABLED; da732x_hpf_get()
331 da732x_hpf_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da732x_hpf_set() argument
359 da732x_hpf_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) da732x_hpf_get() argument
H A Dsgtl5000.c326 struct snd_ctl_elem_value *ucontrol) dac_get_volsw()
349 ucontrol->value.integer.value[0] = l; dac_get_volsw()
350 ucontrol->value.integer.value[1] = r; dac_get_volsw()
379 struct snd_ctl_elem_value *ucontrol) dac_put_volsw()
386 l = ucontrol->value.integer.value[0]; dac_put_volsw()
387 r = ucontrol->value.integer.value[1]; dac_put_volsw()
325 dac_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) dac_get_volsw() argument
378 dac_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) dac_put_volsw() argument
H A Dwm9081.c341 struct snd_ctl_elem_value *ucontrol) speaker_mode_get()
348 ucontrol->value.integer.value[0] = 1; speaker_mode_get()
350 ucontrol->value.integer.value[0] = 0; speaker_mode_get()
362 struct snd_ctl_elem_value *ucontrol) speaker_mode_put()
369 if (ucontrol->value.integer.value[0] == speaker_mode_put()
377 if (ucontrol->value.integer.value[0]) { speaker_mode_put()
340 speaker_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_mode_get() argument
361 speaker_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) speaker_mode_put() argument
H A Dwm_hubs.c336 struct snd_ctl_elem_value *ucontrol) wm8993_put_dc_servo()
342 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8993_put_dc_servo()
699 struct snd_ctl_elem_value *ucontrol) class_w_put_volsw()
704 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); class_w_put_volsw()
719 struct snd_ctl_elem_value *ucontrol) class_w_put_double()
724 ret = snd_soc_dapm_put_enum_double(kcontrol, ucontrol); class_w_put_double()
335 wm8993_put_dc_servo(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8993_put_dc_servo() argument
698 class_w_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) class_w_put_volsw() argument
718 class_w_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) class_w_put_double() argument
H A Dtlv320dac33.c444 struct snd_ctl_elem_value *ucontrol) dac33_get_fifo_mode()
449 ucontrol->value.integer.value[0] = dac33->fifo_mode; dac33_get_fifo_mode()
455 struct snd_ctl_elem_value *ucontrol) dac33_set_fifo_mode()
461 if (dac33->fifo_mode == ucontrol->value.integer.value[0]) dac33_set_fifo_mode()
467 if (ucontrol->value.integer.value[0] < 0 || dac33_set_fifo_mode()
468 ucontrol->value.integer.value[0] >= DAC33_FIFO_LAST_MODE) dac33_set_fifo_mode()
471 dac33->fifo_mode = ucontrol->value.integer.value[0]; dac33_set_fifo_mode()
443 dac33_get_fifo_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) dac33_get_fifo_mode() argument
454 dac33_set_fifo_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) dac33_set_fifo_mode() argument
H A Dwm8903.c365 struct snd_ctl_elem_value *ucontrol) wm8903_class_w_put()
375 if (ucontrol->value.integer.value[0]) { wm8903_class_w_put()
385 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); wm8903_class_w_put()
388 if (!ucontrol->value.integer.value[0]) { wm8903_class_w_put()
440 struct snd_ctl_elem_value *ucontrol) wm8903_get_deemph()
445 ucontrol->value.integer.value[0] = wm8903->deemph; wm8903_get_deemph()
451 struct snd_ctl_elem_value *ucontrol) wm8903_put_deemph()
455 int deemph = ucontrol->value.integer.value[0]; wm8903_put_deemph()
364 wm8903_class_w_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8903_class_w_put() argument
439 wm8903_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8903_get_deemph() argument
450 wm8903_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8903_put_deemph() argument
H A Dtas5086.c279 struct snd_ctl_elem_value *ucontrol) tas5086_get_deemph()
284 ucontrol->value.integer.value[0] = priv->deemph; tas5086_get_deemph()
290 struct snd_ctl_elem_value *ucontrol) tas5086_put_deemph()
295 priv->deemph = ucontrol->value.integer.value[0]; tas5086_put_deemph()
278 tas5086_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas5086_get_deemph() argument
289 tas5086_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tas5086_put_deemph() argument
H A Dwm8960.c182 struct snd_ctl_elem_value *ucontrol) wm8960_get_deemph()
187 ucontrol->value.integer.value[0] = wm8960->deemph; wm8960_get_deemph()
192 struct snd_ctl_elem_value *ucontrol) wm8960_put_deemph()
196 int deemph = ucontrol->value.integer.value[0]; wm8960_put_deemph()
181 wm8960_get_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8960_get_deemph() argument
191 wm8960_put_deemph(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8960_put_deemph() argument
H A Dwm8753.c236 struct snd_ctl_elem_value *ucontrol) wm8753_get_dai()
241 ucontrol->value.integer.value[0] = wm8753->dai_func; wm8753_get_dai()
246 struct snd_ctl_elem_value *ucontrol) wm8753_set_dai()
252 if (wm8753->dai_func == ucontrol->value.integer.value[0]) wm8753_set_dai()
260 wm8753->dai_func = ucontrol->value.integer.value[0]; wm8753_set_dai()
235 wm8753_get_dai(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8753_get_dai() argument
245 wm8753_set_dai(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8753_set_dai() argument
H A Dwm9713.c253 struct snd_ctl_elem_value *ucontrol) wm9713_hp_mixer_put()
258 unsigned int val = ucontrol->value.integer.value[0]; wm9713_hp_mixer_put()
271 if (ucontrol->value.integer.value[0]) wm9713_hp_mixer_put()
297 struct snd_ctl_elem_value *ucontrol) wm9713_hp_mixer_get()
309 ucontrol->value.integer.value[0] = wm9713_hp_mixer_get()
252 wm9713_hp_mixer_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm9713_hp_mixer_put() argument
296 wm9713_hp_mixer_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm9713_hp_mixer_get() argument
H A Dwm8580.c251 struct snd_ctl_elem_value *ucontrol) wm8580_out_vu()
267 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8580_out_vu()
250 wm8580_out_vu(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8580_out_vu() argument
H A Dwm8962.c1553 struct snd_ctl_elem_value *ucontrol) wm8962_dsp2_ena_get()
1559 ucontrol->value.integer.value[0] = !!(wm8962->dsp2_ena & 1 << shift); wm8962_dsp2_ena_get()
1565 struct snd_ctl_elem_value *ucontrol) wm8962_dsp2_ena_put()
1577 if (ucontrol->value.integer.value[0]) wm8962_dsp2_ena_put()
1604 struct snd_ctl_elem_value *ucontrol) wm8962_put_hp_sw()
1610 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8962_put_hp_sw()
1634 struct snd_ctl_elem_value *ucontrol) wm8962_put_spk_sw()
1640 ret = snd_soc_put_volsw(kcontrol, ucontrol); wm8962_put_spk_sw()
1552 wm8962_dsp2_ena_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8962_dsp2_ena_get() argument
1564 wm8962_dsp2_ena_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8962_dsp2_ena_put() argument
1603 wm8962_put_hp_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8962_put_hp_sw() argument
1633 wm8962_put_spk_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) wm8962_put_spk_sw() argument
/linux-4.1.27/sound/soc/pxa/
H A Dmagician.c269 struct snd_ctl_elem_value *ucontrol) magician_get_hp()
271 ucontrol->value.integer.value[0] = magician_hp_switch; magician_get_hp()
276 struct snd_ctl_elem_value *ucontrol) magician_set_hp()
280 if (magician_hp_switch == ucontrol->value.integer.value[0]) magician_set_hp()
283 magician_hp_switch = ucontrol->value.integer.value[0]; magician_set_hp()
289 struct snd_ctl_elem_value *ucontrol) magician_get_spk()
291 ucontrol->value.integer.value[0] = magician_spk_switch; magician_get_spk()
296 struct snd_ctl_elem_value *ucontrol) magician_set_spk()
300 if (magician_spk_switch == ucontrol->value.integer.value[0]) magician_set_spk()
303 magician_spk_switch = ucontrol->value.integer.value[0]; magician_set_spk()
309 struct snd_ctl_elem_value *ucontrol) magician_get_input()
311 ucontrol->value.integer.value[0] = magician_in_sel; magician_get_input()
316 struct snd_ctl_elem_value *ucontrol) magician_set_input()
318 if (magician_in_sel == ucontrol->value.integer.value[0]) magician_set_input()
321 magician_in_sel = ucontrol->value.integer.value[0]; magician_set_input()
268 magician_get_hp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_get_hp() argument
275 magician_set_hp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_set_hp() argument
288 magician_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_get_spk() argument
295 magician_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_set_spk() argument
308 magician_get_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_get_input() argument
315 magician_set_input(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) magician_set_input() argument
H A Dcorgi.c164 struct snd_ctl_elem_value *ucontrol) corgi_get_jack()
166 ucontrol->value.integer.value[0] = corgi_jack_func; corgi_get_jack()
171 struct snd_ctl_elem_value *ucontrol) corgi_set_jack()
175 if (corgi_jack_func == ucontrol->value.integer.value[0]) corgi_set_jack()
178 corgi_jack_func = ucontrol->value.integer.value[0]; corgi_set_jack()
184 struct snd_ctl_elem_value *ucontrol) corgi_get_spk()
186 ucontrol->value.integer.value[0] = corgi_spk_func; corgi_get_spk()
191 struct snd_ctl_elem_value *ucontrol) corgi_set_spk()
195 if (corgi_spk_func == ucontrol->value.integer.value[0]) corgi_set_spk()
198 corgi_spk_func = ucontrol->value.integer.value[0]; corgi_set_spk()
163 corgi_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) corgi_get_jack() argument
170 corgi_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) corgi_set_jack() argument
183 corgi_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) corgi_get_spk() argument
190 corgi_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) corgi_set_spk() argument
H A Dpoodle.c139 struct snd_ctl_elem_value *ucontrol) poodle_get_jack()
141 ucontrol->value.integer.value[0] = poodle_jack_func; poodle_get_jack()
146 struct snd_ctl_elem_value *ucontrol) poodle_set_jack()
150 if (poodle_jack_func == ucontrol->value.integer.value[0]) poodle_set_jack()
153 poodle_jack_func = ucontrol->value.integer.value[0]; poodle_set_jack()
159 struct snd_ctl_elem_value *ucontrol) poodle_get_spk()
161 ucontrol->value.integer.value[0] = poodle_spk_func; poodle_get_spk()
166 struct snd_ctl_elem_value *ucontrol) poodle_set_spk()
170 if (poodle_spk_func == ucontrol->value.integer.value[0]) poodle_set_spk()
173 poodle_spk_func = ucontrol->value.integer.value[0]; poodle_set_spk()
138 poodle_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) poodle_get_jack() argument
145 poodle_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) poodle_set_jack() argument
158 poodle_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) poodle_get_spk() argument
165 poodle_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) poodle_set_spk() argument
H A Dspitz.c165 struct snd_ctl_elem_value *ucontrol) spitz_get_jack()
167 ucontrol->value.integer.value[0] = spitz_jack_func; spitz_get_jack()
172 struct snd_ctl_elem_value *ucontrol) spitz_set_jack()
176 if (spitz_jack_func == ucontrol->value.integer.value[0]) spitz_set_jack()
179 spitz_jack_func = ucontrol->value.integer.value[0]; spitz_set_jack()
185 struct snd_ctl_elem_value *ucontrol) spitz_get_spk()
187 ucontrol->value.integer.value[0] = spitz_spk_func; spitz_get_spk()
192 struct snd_ctl_elem_value *ucontrol) spitz_set_spk()
196 if (spitz_spk_func == ucontrol->value.integer.value[0]) spitz_set_spk()
199 spitz_spk_func = ucontrol->value.integer.value[0]; spitz_set_spk()
164 spitz_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spitz_get_jack() argument
171 spitz_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spitz_set_jack() argument
184 spitz_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spitz_get_spk() argument
191 spitz_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spitz_set_spk() argument
H A Dtosa.c96 struct snd_ctl_elem_value *ucontrol) tosa_get_jack()
98 ucontrol->value.integer.value[0] = tosa_jack_func; tosa_get_jack()
103 struct snd_ctl_elem_value *ucontrol) tosa_set_jack()
107 if (tosa_jack_func == ucontrol->value.integer.value[0]) tosa_set_jack()
110 tosa_jack_func = ucontrol->value.integer.value[0]; tosa_set_jack()
116 struct snd_ctl_elem_value *ucontrol) tosa_get_spk()
118 ucontrol->value.integer.value[0] = tosa_spk_func; tosa_get_spk()
123 struct snd_ctl_elem_value *ucontrol) tosa_set_spk()
127 if (tosa_spk_func == ucontrol->value.integer.value[0]) tosa_set_spk()
130 tosa_spk_func = ucontrol->value.integer.value[0]; tosa_set_spk()
95 tosa_get_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tosa_get_jack() argument
102 tosa_set_jack(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tosa_set_jack() argument
115 tosa_get_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tosa_get_spk() argument
122 tosa_set_spk(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) tosa_set_spk() argument
/linux-4.1.27/sound/pci/
H A Dak4531_codec.c90 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_get_single() argument
105 ucontrol->value.integer.value[0] = val; snd_ak4531_get_single()
109 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_put_single() argument
119 val = ucontrol->value.integer.value[0] & mask; snd_ak4531_put_single()
157 static int snd_ak4531_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_get_double() argument
176 ucontrol->value.integer.value[0] = left; snd_ak4531_get_double()
177 ucontrol->value.integer.value[1] = right; snd_ak4531_get_double()
181 static int snd_ak4531_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_put_double() argument
193 left = ucontrol->value.integer.value[0] & mask; snd_ak4531_put_double()
194 right = ucontrol->value.integer.value[1] & mask; snd_ak4531_put_double()
232 static int snd_ak4531_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_get_input_sw() argument
241 ucontrol->value.integer.value[0] = (ak4531->regs[reg1] >> left_shift) & 1; snd_ak4531_get_input_sw()
242 ucontrol->value.integer.value[1] = (ak4531->regs[reg2] >> left_shift) & 1; snd_ak4531_get_input_sw()
243 ucontrol->value.integer.value[2] = (ak4531->regs[reg1] >> right_shift) & 1; snd_ak4531_get_input_sw()
244 ucontrol->value.integer.value[3] = (ak4531->regs[reg2] >> right_shift) & 1; snd_ak4531_get_input_sw()
249 static int snd_ak4531_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ak4531_put_input_sw() argument
262 val1 |= (ucontrol->value.integer.value[0] & 1) << left_shift; snd_ak4531_put_input_sw()
263 val2 |= (ucontrol->value.integer.value[1] & 1) << left_shift; snd_ak4531_put_input_sw()
264 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; snd_ak4531_put_input_sw()
265 val2 |= (ucontrol->value.integer.value[3] & 1) << right_shift; snd_ak4531_put_input_sw()
H A Dcmipci.c1019 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_default_get()
1026 ucontrol->value.iec958.status[i] = (chip->dig_status >> (i * 8)) & 0xff; snd_cmipci_spdif_default_get()
1032 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_default_put()
1041 val |= (unsigned int)ucontrol->value.iec958.status[i] << (i * 8); snd_cmipci_spdif_default_put()
1066 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_mask_get()
1068 ucontrol->value.iec958.status[0] = 0xff; snd_cmipci_spdif_mask_get()
1069 ucontrol->value.iec958.status[1] = 0xff; snd_cmipci_spdif_mask_get()
1070 ucontrol->value.iec958.status[2] = 0xff; snd_cmipci_spdif_mask_get()
1071 ucontrol->value.iec958.status[3] = 0xff; snd_cmipci_spdif_mask_get()
1093 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_stream_get()
1100 ucontrol->value.iec958.status[i] = (chip->dig_pcm_status >> (i * 8)) & 0xff; snd_cmipci_spdif_stream_get()
1106 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_stream_put()
1115 val |= (unsigned int)ucontrol->value.iec958.status[i] << (i * 8); snd_cmipci_spdif_stream_put()
2049 struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_volume()
2060 ucontrol->value.integer.value[0] = val; snd_cmipci_get_volume()
2065 ucontrol->value.integer.value[1] = val; snd_cmipci_get_volume()
2072 struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_volume()
2080 left = ucontrol->value.integer.value[0] & reg.mask; snd_cmipci_put_volume()
2085 right = ucontrol->value.integer.value[1] & reg.mask; snd_cmipci_put_volume()
2131 struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_input_sw()
2142 ucontrol->value.integer.value[0] = (val1 >> reg.left_shift) & 1; snd_cmipci_get_input_sw()
2143 ucontrol->value.integer.value[1] = (val2 >> reg.left_shift) & 1; snd_cmipci_get_input_sw()
2144 ucontrol->value.integer.value[2] = (val1 >> reg.right_shift) & 1; snd_cmipci_get_input_sw()
2145 ucontrol->value.integer.value[3] = (val2 >> reg.right_shift) & 1; snd_cmipci_get_input_sw()
2150 struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_input_sw()
2163 val1 |= (ucontrol->value.integer.value[0] & 1) << reg.left_shift; snd_cmipci_put_input_sw()
2164 val2 |= (ucontrol->value.integer.value[1] & 1) << reg.left_shift; snd_cmipci_put_input_sw()
2165 val1 |= (ucontrol->value.integer.value[2] & 1) << reg.right_shift; snd_cmipci_put_input_sw()
2166 val2 |= (ucontrol->value.integer.value[3] & 1) << reg.right_shift; snd_cmipci_put_input_sw()
2221 struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_native_mixer()
2233 ucontrol->value.integer.value[0] = val; snd_cmipci_get_native_mixer()
2238 ucontrol->value.integer.value[1] = val; snd_cmipci_get_native_mixer()
2245 struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_native_mixer()
2254 val = ucontrol->value.integer.value[0] & reg.mask; snd_cmipci_put_native_mixer()
2260 val = ucontrol->value.integer.value[1] & reg.mask; snd_cmipci_put_native_mixer()
2275 struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_native_mixer_sensitive()
2278 return snd_cmipci_get_native_mixer(kcontrol, ucontrol); snd_cmipci_get_native_mixer_sensitive()
2282 struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_native_mixer_sensitive()
2289 return snd_cmipci_put_native_mixer(kcontrol, ucontrol); snd_cmipci_put_native_mixer_sensitive()
2348 struct snd_ctl_elem_value *ucontrol, _snd_cmipci_uswitch_get()
2356 ucontrol->value.integer.value[0] = 0; _snd_cmipci_uswitch_get()
2364 ucontrol->value.integer.value[0] = ((val & args->mask) == args->mask_on) ? 1 : 0; _snd_cmipci_uswitch_get()
2370 struct snd_ctl_elem_value *ucontrol) snd_cmipci_uswitch_get()
2376 return _snd_cmipci_uswitch_get(kcontrol, ucontrol, args); snd_cmipci_uswitch_get()
2380 struct snd_ctl_elem_value *ucontrol, _snd_cmipci_uswitch_put()
2397 change = (val & args->mask) != (ucontrol->value.integer.value[0] ? _snd_cmipci_uswitch_put()
2401 if (ucontrol->value.integer.value[0]) _snd_cmipci_uswitch_put()
2415 struct snd_ctl_elem_value *ucontrol) snd_cmipci_uswitch_put()
2421 return _snd_cmipci_uswitch_put(kcontrol, ucontrol, args); snd_cmipci_uswitch_put()
2483 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdout_enable_get()
2486 changed = _snd_cmipci_uswitch_get(kcontrol, ucontrol, &cmipci_switch_arg_spdif_enable); snd_cmipci_spdout_enable_get()
2487 changed |= _snd_cmipci_uswitch_get(kcontrol, ucontrol, &cmipci_switch_arg_spdo2dac); snd_cmipci_spdout_enable_get()
2492 struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdout_enable_put()
2496 changed = _snd_cmipci_uswitch_put(kcontrol, ucontrol, &cmipci_switch_arg_spdif_enable); snd_cmipci_spdout_enable_put()
2497 changed |= _snd_cmipci_uswitch_put(kcontrol, ucontrol, &cmipci_switch_arg_spdo2dac); snd_cmipci_spdout_enable_put()
2499 if (ucontrol->value.integer.value[0]) { snd_cmipci_spdout_enable_put()
2507 chip->spdif_playback_enabled = ucontrol->value.integer.value[0]; snd_cmipci_spdout_enable_put()
2539 struct snd_ctl_elem_value *ucontrol) snd_cmipci_line_in_mode_get()
2544 ucontrol->value.enumerated.item[0] = get_line_in_mode(cm); snd_cmipci_line_in_mode_get()
2550 struct snd_ctl_elem_value *ucontrol) snd_cmipci_line_in_mode_put()
2556 if (ucontrol->value.enumerated.item[0] == 2) snd_cmipci_line_in_mode_put()
2560 if (ucontrol->value.enumerated.item[0] == 1) snd_cmipci_line_in_mode_put()
2577 struct snd_ctl_elem_value *ucontrol) snd_cmipci_mic_in_mode_get()
2582 ucontrol->value.enumerated.item[0] = snd_cmipci_mic_in_mode_get()
2589 struct snd_ctl_elem_value *ucontrol) snd_cmipci_mic_in_mode_put()
2595 if (ucontrol->value.enumerated.item[0]) snd_cmipci_mic_in_mode_put()
1018 snd_cmipci_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_default_get() argument
1031 snd_cmipci_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_default_put() argument
1065 snd_cmipci_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_mask_get() argument
1092 snd_cmipci_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_stream_get() argument
1105 snd_cmipci_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdif_stream_put() argument
2048 snd_cmipci_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_volume() argument
2071 snd_cmipci_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_volume() argument
2130 snd_cmipci_get_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_input_sw() argument
2149 snd_cmipci_put_input_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_input_sw() argument
2220 snd_cmipci_get_native_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_native_mixer() argument
2244 snd_cmipci_put_native_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_native_mixer() argument
2274 snd_cmipci_get_native_mixer_sensitive(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_get_native_mixer_sensitive() argument
2281 snd_cmipci_put_native_mixer_sensitive(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_put_native_mixer_sensitive() argument
2347 _snd_cmipci_uswitch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol, struct cmipci_switch_args *args) _snd_cmipci_uswitch_get() argument
2369 snd_cmipci_uswitch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_uswitch_get() argument
2379 _snd_cmipci_uswitch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol, struct cmipci_switch_args *args) _snd_cmipci_uswitch_put() argument
2414 snd_cmipci_uswitch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_uswitch_put() argument
2482 snd_cmipci_spdout_enable_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdout_enable_get() argument
2491 snd_cmipci_spdout_enable_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_spdout_enable_put() argument
2538 snd_cmipci_line_in_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_line_in_mode_get() argument
2549 snd_cmipci_line_in_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_line_in_mode_put() argument
2576 snd_cmipci_mic_in_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_mic_in_mode_get() argument
2588 snd_cmipci_mic_in_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cmipci_mic_in_mode_put() argument
H A Dens1370.c1354 struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_default_get()
1358 ucontrol->value.iec958.status[0] = (ensoniq->spdif_default >> 0) & 0xff; snd_ens1373_spdif_default_get()
1359 ucontrol->value.iec958.status[1] = (ensoniq->spdif_default >> 8) & 0xff; snd_ens1373_spdif_default_get()
1360 ucontrol->value.iec958.status[2] = (ensoniq->spdif_default >> 16) & 0xff; snd_ens1373_spdif_default_get()
1361 ucontrol->value.iec958.status[3] = (ensoniq->spdif_default >> 24) & 0xff; snd_ens1373_spdif_default_get()
1367 struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_default_put()
1373 val = ((u32)ucontrol->value.iec958.status[0] << 0) | snd_ens1373_spdif_default_put()
1374 ((u32)ucontrol->value.iec958.status[1] << 8) | snd_ens1373_spdif_default_put()
1375 ((u32)ucontrol->value.iec958.status[2] << 16) | snd_ens1373_spdif_default_put()
1376 ((u32)ucontrol->value.iec958.status[3] << 24); snd_ens1373_spdif_default_put()
1388 struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_mask_get()
1390 ucontrol->value.iec958.status[0] = 0xff; snd_ens1373_spdif_mask_get()
1391 ucontrol->value.iec958.status[1] = 0xff; snd_ens1373_spdif_mask_get()
1392 ucontrol->value.iec958.status[2] = 0xff; snd_ens1373_spdif_mask_get()
1393 ucontrol->value.iec958.status[3] = 0xff; snd_ens1373_spdif_mask_get()
1398 struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_stream_get()
1402 ucontrol->value.iec958.status[0] = (ensoniq->spdif_stream >> 0) & 0xff; snd_ens1373_spdif_stream_get()
1403 ucontrol->value.iec958.status[1] = (ensoniq->spdif_stream >> 8) & 0xff; snd_ens1373_spdif_stream_get()
1404 ucontrol->value.iec958.status[2] = (ensoniq->spdif_stream >> 16) & 0xff; snd_ens1373_spdif_stream_get()
1405 ucontrol->value.iec958.status[3] = (ensoniq->spdif_stream >> 24) & 0xff; snd_ens1373_spdif_stream_get()
1411 struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_stream_put()
1417 val = ((u32)ucontrol->value.iec958.status[0] << 0) | snd_ens1373_spdif_stream_put()
1418 ((u32)ucontrol->value.iec958.status[1] << 8) | snd_ens1373_spdif_stream_put()
1419 ((u32)ucontrol->value.iec958.status[2] << 16) | snd_ens1373_spdif_stream_put()
1420 ((u32)ucontrol->value.iec958.status[3] << 24); snd_ens1373_spdif_stream_put()
1438 struct snd_ctl_elem_value *ucontrol) snd_es1371_spdif_get()
1443 ucontrol->value.integer.value[0] = ensoniq->ctrl & ES_1373_SPDIF_THRU ? 1 : 0; snd_es1371_spdif_get()
1449 struct snd_ctl_elem_value *ucontrol) snd_es1371_spdif_put()
1455 nval1 = ucontrol->value.integer.value[0] ? ES_1373_SPDIF_THRU : 0; snd_es1371_spdif_put()
1456 nval2 = ucontrol->value.integer.value[0] ? ES_1373_SPDIF_EN : 0; snd_es1371_spdif_put()
1500 struct snd_ctl_elem_value *ucontrol) snd_es1373_rear_get()
1509 ucontrol->value.integer.value[0] = val; snd_es1373_rear_get()
1515 struct snd_ctl_elem_value *ucontrol) snd_es1373_rear_put()
1521 nval1 = ucontrol->value.integer.value[0] ? snd_es1373_rear_put()
1545 struct snd_ctl_elem_value *ucontrol) snd_es1373_line_get()
1553 ucontrol->value.integer.value[0] = val; snd_es1373_line_get()
1559 struct snd_ctl_elem_value *ucontrol) snd_es1373_line_put()
1567 if (ucontrol->value.integer.value[0]) snd_es1373_line_put()
1703 struct snd_ctl_elem_value *ucontrol) snd_ensoniq_control_get()
1709 ucontrol->value.integer.value[0] = ensoniq->ctrl & mask ? 1 : 0; snd_ensoniq_control_get()
1715 struct snd_ctl_elem_value *ucontrol) snd_ensoniq_control_put()
1722 nval = ucontrol->value.integer.value[0] ? mask : 0; snd_ensoniq_control_put()
1353 snd_ens1373_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_default_get() argument
1366 snd_ens1373_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_default_put() argument
1387 snd_ens1373_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_mask_get() argument
1397 snd_ens1373_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_stream_get() argument
1410 snd_ens1373_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ens1373_spdif_stream_put() argument
1437 snd_es1371_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1371_spdif_get() argument
1448 snd_es1371_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1371_spdif_put() argument
1499 snd_es1373_rear_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1373_rear_get() argument
1514 snd_es1373_rear_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1373_rear_put() argument
1544 snd_es1373_line_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1373_line_get() argument
1558 snd_es1373_line_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1373_line_put() argument
1702 snd_ensoniq_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ensoniq_control_get() argument
1714 snd_ensoniq_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ensoniq_control_put() argument
H A Des1938.c1056 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_mux()
1059 ucontrol->value.enumerated.item[0] = snd_es1938_mixer_read(chip, 0x1c) & 0x07; snd_es1938_get_mux()
1064 struct snd_ctl_elem_value *ucontrol) snd_es1938_put_mux()
1067 unsigned char val = ucontrol->value.enumerated.item[0]; snd_es1938_put_mux()
1077 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_spatializer_enable()
1081 ucontrol->value.integer.value[0] = !!(val & 8); snd_es1938_get_spatializer_enable()
1086 struct snd_ctl_elem_value *ucontrol) snd_es1938_put_spatializer_enable()
1091 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; snd_es1938_put_spatializer_enable()
1112 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_hw_volume()
1115 ucontrol->value.integer.value[0] = snd_es1938_mixer_read(chip, 0x61) & 0x3f; snd_es1938_get_hw_volume()
1116 ucontrol->value.integer.value[1] = snd_es1938_mixer_read(chip, 0x63) & 0x3f; snd_es1938_get_hw_volume()
1123 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_hw_switch()
1126 ucontrol->value.integer.value[0] = !(snd_es1938_mixer_read(chip, 0x61) & 0x40); snd_es1938_get_hw_switch()
1127 ucontrol->value.integer.value[1] = !(snd_es1938_mixer_read(chip, 0x63) & 0x40); snd_es1938_get_hw_switch()
1184 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_single()
1194 ucontrol->value.integer.value[0] = (val >> shift) & mask; snd_es1938_get_single()
1196 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es1938_get_single()
1201 struct snd_ctl_elem_value *ucontrol) snd_es1938_put_single()
1210 val = (ucontrol->value.integer.value[0] & mask); snd_es1938_put_single()
1245 struct snd_ctl_elem_value *ucontrol) snd_es1938_get_double()
1261 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; snd_es1938_get_double()
1262 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; snd_es1938_get_double()
1264 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es1938_get_double()
1265 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_es1938_get_double()
1271 struct snd_ctl_elem_value *ucontrol) snd_es1938_put_double()
1283 val1 = ucontrol->value.integer.value[0] & mask; snd_es1938_put_double()
1284 val2 = ucontrol->value.integer.value[1] & mask; snd_es1938_put_double()
1055 snd_es1938_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_mux() argument
1063 snd_es1938_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_put_mux() argument
1076 snd_es1938_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_spatializer_enable() argument
1085 snd_es1938_put_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_put_spatializer_enable() argument
1111 snd_es1938_get_hw_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_hw_volume() argument
1122 snd_es1938_get_hw_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_hw_switch() argument
1183 snd_es1938_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_single() argument
1200 snd_es1938_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_put_single() argument
1244 snd_es1938_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_get_double() argument
1270 snd_es1938_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1938_put_double() argument
H A Dfm801.c847 struct snd_ctl_elem_value *ucontrol) snd_fm801_get_single()
855 ucontrol->value.integer.value[0] = (inw(chip->port + reg) >> shift) & mask; snd_fm801_get_single()
857 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_fm801_get_single()
862 struct snd_ctl_elem_value *ucontrol) snd_fm801_put_single()
871 val = (ucontrol->value.integer.value[0] & mask); snd_fm801_put_single()
902 struct snd_ctl_elem_value *ucontrol) snd_fm801_get_double()
912 ucontrol->value.integer.value[0] = (inw(chip->port + reg) >> shift_left) & mask; snd_fm801_get_double()
913 ucontrol->value.integer.value[1] = (inw(chip->port + reg) >> shift_right) & mask; snd_fm801_get_double()
916 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_fm801_get_double()
917 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_fm801_get_double()
923 struct snd_ctl_elem_value *ucontrol) snd_fm801_put_double()
933 val1 = ucontrol->value.integer.value[0] & mask; snd_fm801_put_double()
934 val2 = ucontrol->value.integer.value[1] & mask; snd_fm801_put_double()
955 struct snd_ctl_elem_value *ucontrol) snd_fm801_get_mux()
963 ucontrol->value.enumerated.item[0] = val; snd_fm801_get_mux()
968 struct snd_ctl_elem_value *ucontrol) snd_fm801_put_mux()
973 if ((val = ucontrol->value.enumerated.item[0]) > 4) snd_fm801_put_mux()
846 snd_fm801_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_get_single() argument
861 snd_fm801_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_put_single() argument
901 snd_fm801_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_get_double() argument
922 snd_fm801_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_put_double() argument
954 snd_fm801_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_get_mux() argument
967 snd_fm801_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_fm801_put_mux() argument
H A Drme32.c1573 struct snd_ctl_elem_value *ucontrol) snd_rme32_get_loopback_control()
1578 ucontrol->value.integer.value[0] = snd_rme32_get_loopback_control()
1585 struct snd_ctl_elem_value *ucontrol) snd_rme32_put_loopback_control()
1591 val = ucontrol->value.integer.value[0] ? 0 : RME32_WCR_SEL; snd_rme32_put_loopback_control()
1595 if (ucontrol->value.integer.value[0]) snd_rme32_put_loopback_control()
1631 struct snd_ctl_elem_value *ucontrol) snd_rme32_get_inputtype_control()
1637 ucontrol->value.enumerated.item[0] = snd_rme32_getinputtype(rme32); snd_rme32_get_inputtype_control()
1651 if (ucontrol->value.enumerated.item[0] >= items) { snd_rme32_get_inputtype_control()
1652 ucontrol->value.enumerated.item[0] = items - 1; snd_rme32_get_inputtype_control()
1660 struct snd_ctl_elem_value *ucontrol) snd_rme32_put_inputtype_control()
1678 val = ucontrol->value.enumerated.item[0] % items; snd_rme32_put_inputtype_control()
1700 struct snd_ctl_elem_value *ucontrol) snd_rme32_get_clockmode_control()
1705 ucontrol->value.enumerated.item[0] = snd_rme32_getclockmode(rme32); snd_rme32_get_clockmode_control()
1711 struct snd_ctl_elem_value *ucontrol) snd_rme32_put_clockmode_control()
1717 val = ucontrol->value.enumerated.item[0] % 3; snd_rme32_put_clockmode_control()
1754 struct snd_ctl_elem_value *ucontrol) snd_rme32_control_spdif_get()
1758 snd_rme32_convert_to_aes(&ucontrol->value.iec958, snd_rme32_control_spdif_get()
1764 struct snd_ctl_elem_value *ucontrol) snd_rme32_control_spdif_put()
1770 val = snd_rme32_convert_from_aes(&ucontrol->value.iec958); snd_rme32_control_spdif_put()
1788 ucontrol) snd_rme32_control_spdif_stream_get()
1792 snd_rme32_convert_to_aes(&ucontrol->value.iec958, snd_rme32_control_spdif_stream_get()
1799 ucontrol) snd_rme32_control_spdif_stream_put()
1805 val = snd_rme32_convert_from_aes(&ucontrol->value.iec958); snd_rme32_control_spdif_stream_put()
1826 ucontrol) snd_rme32_control_spdif_mask_get()
1828 ucontrol->value.iec958.status[0] = kcontrol->private_value; snd_rme32_control_spdif_mask_get()
1572 snd_rme32_get_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_get_loopback_control() argument
1584 snd_rme32_put_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_put_loopback_control() argument
1630 snd_rme32_get_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_get_inputtype_control() argument
1659 snd_rme32_put_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_put_inputtype_control() argument
1699 snd_rme32_get_clockmode_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_get_clockmode_control() argument
1710 snd_rme32_put_clockmode_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_put_clockmode_control() argument
1753 snd_rme32_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_control_spdif_get() argument
1763 snd_rme32_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme32_control_spdif_put() argument
1786 snd_rme32_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_rme32_control_spdif_stream_get() argument
1797 snd_rme32_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_rme32_control_spdif_stream_put() argument
1824 snd_rme32_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_rme32_control_spdif_mask_get() argument
H A Drme96.c1866 snd_rme96_get_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_get_loopback_control() argument
1871 ucontrol->value.integer.value[0] = rme96->wcreg & RME96_WCR_SEL ? 0 : 1; snd_rme96_get_loopback_control()
1876 snd_rme96_put_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_put_loopback_control() argument
1882 val = ucontrol->value.integer.value[0] ? 0 : RME96_WCR_SEL; snd_rme96_put_loopback_control()
1929 snd_rme96_get_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_get_inputtype_control() argument
1935 ucontrol->value.enumerated.item[0] = snd_rme96_getinputtype(rme96); snd_rme96_get_inputtype_control()
1948 if (ucontrol->value.enumerated.item[0] == RME96_INPUT_ANALOG) { snd_rme96_get_inputtype_control()
1949 ucontrol->value.enumerated.item[0] = RME96_INPUT_XLR; snd_rme96_get_inputtype_control()
1960 if (ucontrol->value.enumerated.item[0] >= items) { snd_rme96_get_inputtype_control()
1961 ucontrol->value.enumerated.item[0] = items - 1; snd_rme96_get_inputtype_control()
1968 snd_rme96_put_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_put_inputtype_control() argument
1993 val = ucontrol->value.enumerated.item[0] % items; snd_rme96_put_inputtype_control()
2017 snd_rme96_get_clockmode_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_get_clockmode_control() argument
2022 ucontrol->value.enumerated.item[0] = snd_rme96_getclockmode(rme96); snd_rme96_get_clockmode_control()
2027 snd_rme96_put_clockmode_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_put_clockmode_control() argument
2033 val = ucontrol->value.enumerated.item[0] % 3; snd_rme96_put_clockmode_control()
2051 snd_rme96_get_attenuation_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_get_attenuation_control() argument
2056 ucontrol->value.enumerated.item[0] = snd_rme96_getattenuation(rme96); snd_rme96_get_attenuation_control()
2061 snd_rme96_put_attenuation_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_put_attenuation_control() argument
2067 val = ucontrol->value.enumerated.item[0] % 4; snd_rme96_put_attenuation_control()
2084 snd_rme96_get_montracks_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_get_montracks_control() argument
2089 ucontrol->value.enumerated.item[0] = snd_rme96_getmontracks(rme96); snd_rme96_get_montracks_control()
2094 snd_rme96_put_montracks_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_put_montracks_control() argument
2100 val = ucontrol->value.enumerated.item[0] % 4; snd_rme96_put_montracks_control()
2137 static int snd_rme96_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_control_spdif_get() argument
2141 snd_rme96_convert_to_aes(&ucontrol->value.iec958, rme96->wcreg_spdif); snd_rme96_control_spdif_get()
2145 static int snd_rme96_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_control_spdif_put() argument
2151 val = snd_rme96_convert_from_aes(&ucontrol->value.iec958); snd_rme96_control_spdif_put()
2166 static int snd_rme96_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_control_spdif_stream_get() argument
2170 snd_rme96_convert_to_aes(&ucontrol->value.iec958, rme96->wcreg_spdif_stream); snd_rme96_control_spdif_stream_get()
2174 static int snd_rme96_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_control_spdif_stream_put() argument
2180 val = snd_rme96_convert_from_aes(&ucontrol->value.iec958); snd_rme96_control_spdif_stream_put()
2198 static int snd_rme96_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme96_control_spdif_mask_get() argument
2200 ucontrol->value.iec958.status[0] = kcontrol->private_value; snd_rme96_control_spdif_mask_get()
H A Dsonicvibes.c924 static int snd_sonicvibes_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_get_mux() argument
929 ucontrol->value.enumerated.item[0] = ((snd_sonicvibes_in1(sonic, SV_IREG_LEFT_ADC) & SV_RECSRC_OUT) >> 5) - 1; snd_sonicvibes_get_mux()
930 ucontrol->value.enumerated.item[1] = ((snd_sonicvibes_in1(sonic, SV_IREG_RIGHT_ADC) & SV_RECSRC_OUT) >> 5) - 1; snd_sonicvibes_get_mux()
935 static int snd_sonicvibes_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_put_mux() argument
941 if (ucontrol->value.enumerated.item[0] >= 7 || snd_sonicvibes_put_mux()
942 ucontrol->value.enumerated.item[1] >= 7) snd_sonicvibes_put_mux()
944 left = (ucontrol->value.enumerated.item[0] + 1) << 5; snd_sonicvibes_put_mux()
945 right = (ucontrol->value.enumerated.item[1] + 1) << 5; snd_sonicvibes_put_mux()
975 static int snd_sonicvibes_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_get_single() argument
984 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, reg)>> shift) & mask; snd_sonicvibes_get_single()
987 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_sonicvibes_get_single()
991 static int snd_sonicvibes_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_put_single() argument
1001 val = (ucontrol->value.integer.value[0] & mask); snd_sonicvibes_put_single()
1031 static int snd_sonicvibes_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_get_double() argument
1042 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, left_reg) >> shift_left) & mask; snd_sonicvibes_get_double()
1043 ucontrol->value.integer.value[1] = (snd_sonicvibes_in1(sonic, right_reg) >> shift_right) & mask; snd_sonicvibes_get_double()
1046 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_sonicvibes_get_double()
1047 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_sonicvibes_get_double()
1052 static int snd_sonicvibes_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_sonicvibes_put_double() argument
1064 val1 = ucontrol->value.integer.value[0] & mask; snd_sonicvibes_put_double()
1065 val2 = ucontrol->value.integer.value[1] & mask; snd_sonicvibes_put_double()
H A Dazt3328.c950 struct snd_ctl_elem_value *ucontrol) snd_azf3328_get_mixer()
962 ucontrol->value.integer.value[0] = val; snd_azf3328_get_mixer()
967 ucontrol->value.integer.value[1] = val; snd_azf3328_get_mixer()
972 ucontrol->value.integer.value[0], ucontrol->value.integer.value[1], snd_azf3328_get_mixer()
979 struct snd_ctl_elem_value *ucontrol) snd_azf3328_put_mixer()
987 val = ucontrol->value.integer.value[0] & reg.mask; snd_azf3328_put_mixer()
993 val = ucontrol->value.integer.value[1] & reg.mask; snd_azf3328_put_mixer()
1010 reg.reg, ucontrol->value.integer.value[0], ucontrol->value.integer.value[1], snd_azf3328_put_mixer()
1059 struct snd_ctl_elem_value *ucontrol) snd_azf3328_get_mixer_enum()
1068 ucontrol->value.enumerated.item[0] = (val >> 8) & (reg.enum_c - 1); snd_azf3328_get_mixer_enum()
1069 ucontrol->value.enumerated.item[1] = (val >> 0) & (reg.enum_c - 1); snd_azf3328_get_mixer_enum()
1071 ucontrol->value.enumerated.item[0] = (val >> reg.lchan_shift) & (reg.enum_c - 1); snd_azf3328_get_mixer_enum()
1075 reg.reg, val, ucontrol->value.enumerated.item[0], ucontrol->value.enumerated.item[1], snd_azf3328_get_mixer_enum()
1082 struct snd_ctl_elem_value *ucontrol) snd_azf3328_put_mixer_enum()
1092 if (ucontrol->value.enumerated.item[0] > reg.enum_c - 1U || snd_azf3328_put_mixer_enum()
1093 ucontrol->value.enumerated.item[1] > reg.enum_c - 1U) snd_azf3328_put_mixer_enum()
1095 val = (ucontrol->value.enumerated.item[0] << 8) | snd_azf3328_put_mixer_enum()
1096 (ucontrol->value.enumerated.item[1] << 0); snd_azf3328_put_mixer_enum()
1098 if (ucontrol->value.enumerated.item[0] > reg.enum_c - 1U) snd_azf3328_put_mixer_enum()
1101 val |= (ucontrol->value.enumerated.item[0] << reg.lchan_shift); snd_azf3328_put_mixer_enum()
949 snd_azf3328_get_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_azf3328_get_mixer() argument
978 snd_azf3328_put_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_azf3328_put_mixer() argument
1058 snd_azf3328_get_mixer_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_azf3328_get_mixer_enum() argument
1081 snd_azf3328_put_mixer_enum(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_azf3328_put_mixer_enum() argument
H A Dvia82xx.c1620 struct snd_ctl_elem_value *ucontrol) snd_via8233_capture_source_get()
1624 ucontrol->value.enumerated.item[0] = inb(port) & VIA_REG_CAPTURE_CHANNEL_MIC ? 1 : 0; snd_via8233_capture_source_get()
1629 struct snd_ctl_elem_value *ucontrol) snd_via8233_capture_source_put()
1638 if (ucontrol->value.enumerated.item[0]) snd_via8233_capture_source_put()
1657 struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs3_spdif_get()
1663 ucontrol->value.integer.value[0] = (val & VIA8233_SPDIF_DX3) ? 1 : 0; snd_via8233_dxs3_spdif_get()
1668 struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs3_spdif_put()
1675 if (ucontrol->value.integer.value[0]) snd_via8233_dxs3_spdif_put()
1678 chip->spdif_on = ucontrol->value.integer.value[0] ? 1 : 0; snd_via8233_dxs3_spdif_put()
1705 struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs_volume_get()
1710 ucontrol->value.integer.value[0] = VIA_DXS_MAX_VOLUME - chip->playback_volume[idx][0]; snd_via8233_dxs_volume_get()
1711 ucontrol->value.integer.value[1] = VIA_DXS_MAX_VOLUME - chip->playback_volume[idx][1]; snd_via8233_dxs_volume_get()
1716 struct snd_ctl_elem_value *ucontrol) snd_via8233_pcmdxs_volume_get()
1719 ucontrol->value.integer.value[0] = VIA_DXS_MAX_VOLUME - chip->playback_volume_c[0]; snd_via8233_pcmdxs_volume_get()
1720 ucontrol->value.integer.value[1] = VIA_DXS_MAX_VOLUME - chip->playback_volume_c[1]; snd_via8233_pcmdxs_volume_get()
1725 struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs_volume_put()
1734 val = ucontrol->value.integer.value[i]; snd_via8233_dxs_volume_put()
1748 struct snd_ctl_elem_value *ucontrol) snd_via8233_pcmdxs_volume_put()
1756 val = ucontrol->value.integer.value[i]; snd_via8233_pcmdxs_volume_put()
1619 snd_via8233_capture_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_capture_source_get() argument
1628 snd_via8233_capture_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_capture_source_put() argument
1656 snd_via8233_dxs3_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs3_spdif_get() argument
1667 snd_via8233_dxs3_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs3_spdif_put() argument
1704 snd_via8233_dxs_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs_volume_get() argument
1715 snd_via8233_pcmdxs_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_pcmdxs_volume_get() argument
1724 snd_via8233_dxs_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_dxs_volume_put() argument
1747 snd_via8233_pcmdxs_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_via8233_pcmdxs_volume_put() argument
H A Dcs4281.c1016 struct snd_ctl_elem_value *ucontrol) snd_cs4281_get_volume()
1026 ucontrol->value.integer.value[0] = volL; snd_cs4281_get_volume()
1027 ucontrol->value.integer.value[1] = volR; snd_cs4281_get_volume()
1032 struct snd_ctl_elem_value *ucontrol) snd_cs4281_put_volume()
1043 if (ucontrol->value.integer.value[0] != volL) { snd_cs4281_put_volume()
1044 volL = CS_VOL_MASK - (ucontrol->value.integer.value[0] & CS_VOL_MASK); snd_cs4281_put_volume()
1048 if (ucontrol->value.integer.value[1] != volR) { snd_cs4281_put_volume()
1049 volR = CS_VOL_MASK - (ucontrol->value.integer.value[1] & CS_VOL_MASK); snd_cs4281_put_volume()
1015 snd_cs4281_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4281_get_volume() argument
1031 snd_cs4281_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4281_put_volume() argument
/linux-4.1.27/sound/isa/gus/
H A Dgus_mixer.c40 static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gf1_get_single() argument
46 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; snd_gf1_get_single()
48 ucontrol->value.integer.value[0] ^= 1; snd_gf1_get_single()
52 static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gf1_put_single() argument
61 nval = ucontrol->value.integer.value[0] & 1; snd_gf1_put_single()
90 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ics_get_double() argument
101 ucontrol->value.integer.value[0] = left & 127; snd_ics_get_double()
102 ucontrol->value.integer.value[1] = right & 127; snd_ics_get_double()
106 static int snd_ics_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ics_put_double() argument
114 val1 = ucontrol->value.integer.value[0] & 127; snd_ics_put_double()
115 val2 = ucontrol->value.integer.value[1] & 127; snd_ics_put_double()
H A Dgus_main.c61 static int snd_gus_joystick_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gus_joystick_get() argument
65 ucontrol->value.integer.value[0] = gus->joystick_dac & 31; snd_gus_joystick_get()
69 static int snd_gus_joystick_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gus_joystick_put() argument
76 nval = ucontrol->value.integer.value[0] & 31; snd_gus_joystick_put()
H A Dgus_pcm.c756 static int snd_gf1_pcm_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gf1_pcm_volume_get() argument
762 ucontrol->value.integer.value[0] = gus->gf1.pcm_volume_level_left1; snd_gf1_pcm_volume_get()
763 ucontrol->value.integer.value[1] = gus->gf1.pcm_volume_level_right1; snd_gf1_pcm_volume_get()
768 static int snd_gf1_pcm_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_gf1_pcm_volume_put() argument
778 val1 = ucontrol->value.integer.value[0] & 127; snd_gf1_pcm_volume_put()
779 val2 = ucontrol->value.integer.value[1] & 127; snd_gf1_pcm_volume_put()
/linux-4.1.27/sound/pci/au88x0/
H A Dau88x0_pcm.c479 static int snd_vortex_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_spdif_mask_get() argument
481 ucontrol->value.iec958.status[0] = 0xff; snd_vortex_spdif_mask_get()
482 ucontrol->value.iec958.status[1] = 0xff; snd_vortex_spdif_mask_get()
483 ucontrol->value.iec958.status[2] = 0xff; snd_vortex_spdif_mask_get()
484 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; snd_vortex_spdif_mask_get()
488 static int snd_vortex_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_spdif_get() argument
491 ucontrol->value.iec958.status[0] = 0x00; snd_vortex_spdif_get()
492 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_ORIGINAL|IEC958_AES1_CON_DIGDIGCONV_ID; snd_vortex_spdif_get()
493 ucontrol->value.iec958.status[2] = 0x00; snd_vortex_spdif_get()
495 case 32000: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_32000; break; snd_vortex_spdif_get()
496 case 44100: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_44100; break; snd_vortex_spdif_get()
497 case 48000: ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; break; snd_vortex_spdif_get()
502 static int snd_vortex_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_spdif_put() argument
506 switch (ucontrol->value.iec958.status[3] & IEC958_AES3_CON_FS) { snd_vortex_spdif_put()
550 struct snd_ctl_elem_value *ucontrol) snd_vortex_pcm_vol_get()
558 ucontrol->value.integer.value[i] = p->vol[i]; snd_vortex_pcm_vol_get()
563 struct snd_ctl_elem_value *ucontrol) snd_vortex_pcm_vol_put()
574 if (p->vol[i] != ucontrol->value.integer.value[i]) { snd_vortex_pcm_vol_put()
575 p->vol[i] = ucontrol->value.integer.value[i]; snd_vortex_pcm_vol_put()
549 snd_vortex_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_pcm_vol_get() argument
562 snd_vortex_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_pcm_vol_put() argument
H A Dau88x0_eq.c735 struct snd_ctl_elem_value *ucontrol) snd_vortex_eqtoggle_get()
741 ucontrol->value.integer.value[0] = eq->this54 ? 0 : 1; snd_vortex_eqtoggle_get()
748 struct snd_ctl_elem_value *ucontrol) snd_vortex_eqtoggle_put()
754 eq->this54 = ucontrol->value.integer.value[0] ? 0 : 1; snd_vortex_eqtoggle_put()
782 snd_vortex_eq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_eq_get() argument
790 ucontrol->value.integer.value[0] = gainL; snd_vortex_eq_get()
791 ucontrol->value.integer.value[1] = gainR; snd_vortex_eq_get()
796 snd_vortex_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_eq_put() argument
805 if (gainL != ucontrol->value.integer.value[0]) { snd_vortex_eq_put()
807 ucontrol->value.integer.value[0]); snd_vortex_eq_put()
810 if (gainR != ucontrol->value.integer.value[1]) { snd_vortex_eq_put()
812 ucontrol->value.integer.value[1]); snd_vortex_eq_put()
840 snd_vortex_peaks_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_peaks_get() argument
853 ucontrol->value.integer.value[i] = peaks[i]; snd_vortex_peaks_get()
734 snd_vortex_eqtoggle_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_eqtoggle_get() argument
747 snd_vortex_eqtoggle_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_eqtoggle_put() argument
H A Dau88x0_a3d.c767 snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_get() argument
777 struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_hrtf_put()
783 coord[i] = ucontrol->value.integer.value[i]; snd_vortex_a3d_hrtf_put()
794 struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_itd_put()
800 coord[i] = ucontrol->value.integer.value[i]; snd_vortex_a3d_itd_put()
813 struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_ild_put()
819 l = ucontrol->value.integer.value[0]; snd_vortex_a3d_ild_put()
820 r = ucontrol->value.integer.value[1]; snd_vortex_a3d_ild_put()
830 struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_filter_put()
836 params[i] = ucontrol->value.integer.value[i]; snd_vortex_a3d_filter_put()
776 snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_hrtf_put() argument
793 snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_itd_put() argument
812 snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_ild_put() argument
829 snd_vortex_a3d_filter_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_vortex_a3d_filter_put() argument
/linux-4.1.27/sound/pci/asihpi/
H A Dasihpi.c1527 struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_get()
1533 ucontrol->value.integer.value[0] = an_gain_mB[0] / VOL_STEP_mB; snd_asihpi_volume_get()
1534 ucontrol->value.integer.value[1] = an_gain_mB[1] / VOL_STEP_mB; snd_asihpi_volume_get()
1540 struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_put()
1547 (ucontrol->value.integer.value[0]) * VOL_STEP_mB; snd_asihpi_volume_put()
1549 (ucontrol->value.integer.value[1]) * VOL_STEP_mB; snd_asihpi_volume_put()
1563 struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_mute_get()
1569 ucontrol->value.integer.value[0] = mute ? 0 : 1; snd_asihpi_volume_mute_get()
1575 struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_mute_put()
1582 int mute = ucontrol->value.integer.value[0] ? 0 : HPI_BITMASK_ALL_CHANNELS; snd_asihpi_volume_mute_put()
1648 struct snd_ctl_elem_value *ucontrol) snd_asihpi_level_get()
1654 ucontrol->value.integer.value[0] = snd_asihpi_level_get()
1656 ucontrol->value.integer.value[1] = snd_asihpi_level_get()
1663 struct snd_ctl_elem_value *ucontrol) snd_asihpi_level_put()
1670 (ucontrol->value.integer.value[0]) * HPI_UNITS_PER_dB; snd_asihpi_level_put()
1672 (ucontrol->value.integer.value[1]) * HPI_UNITS_PER_dB; snd_asihpi_level_put()
1716 struct snd_ctl_elem_value *ucontrol, snd_asihpi_aesebu_format_get()
1725 ucontrol->value.enumerated.item[0] = 0; snd_asihpi_aesebu_format_get()
1730 ucontrol->value.enumerated.item[0] = 1; snd_asihpi_aesebu_format_get()
1732 ucontrol->value.enumerated.item[0] = 2; snd_asihpi_aesebu_format_get()
1738 struct snd_ctl_elem_value *ucontrol, snd_asihpi_aesebu_format_put()
1746 if (ucontrol->value.enumerated.item[0] == 1) snd_asihpi_aesebu_format_put()
1748 if (ucontrol->value.enumerated.item[0] == 2) snd_asihpi_aesebu_format_put()
1758 struct snd_ctl_elem_value *ucontrol) { snd_asihpi_aesebu_rx_format_get()
1759 return snd_asihpi_aesebu_format_get(kcontrol, ucontrol, snd_asihpi_aesebu_rx_format_get()
1764 struct snd_ctl_elem_value *ucontrol) { snd_asihpi_aesebu_rx_format_put()
1765 return snd_asihpi_aesebu_format_put(kcontrol, ucontrol, snd_asihpi_aesebu_rx_format_put()
1783 struct snd_ctl_elem_value *ucontrol) { snd_asihpi_aesebu_rxstatus_get()
1790 ucontrol->value.integer.value[0] = status; snd_asihpi_aesebu_rxstatus_get()
1820 struct snd_ctl_elem_value *ucontrol) { snd_asihpi_aesebu_tx_format_get()
1821 return snd_asihpi_aesebu_format_get(kcontrol, ucontrol, snd_asihpi_aesebu_tx_format_get()
1826 struct snd_ctl_elem_value *ucontrol) { snd_asihpi_aesebu_tx_format_put()
1827 return snd_asihpi_aesebu_format_put(kcontrol, ucontrol, snd_asihpi_aesebu_tx_format_put()
1877 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_gain_get()
1886 ucontrol->value.integer.value[0] = gain / HPI_UNITS_PER_dB; snd_asihpi_tuner_gain_get()
1892 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_gain_put()
1900 gain = (ucontrol->value.integer.value[0]) * HPI_UNITS_PER_dB; snd_asihpi_tuner_gain_put()
1943 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_band_get()
1958 ucontrol->value.enumerated.item[0] = -1; snd_asihpi_tuner_band_get()
1961 ucontrol->value.enumerated.item[0] = idx; snd_asihpi_tuner_band_get()
1969 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_band_put()
1983 idx = ucontrol->value.enumerated.item[0]; snd_asihpi_tuner_band_put()
2040 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_freq_get()
2046 ucontrol->value.integer.value[0] = freq; snd_asihpi_tuner_freq_get()
2052 struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_freq_put()
2057 freq = ucontrol->value.integer.value[0]; snd_asihpi_tuner_freq_put()
2143 struct snd_ctl_elem_value *ucontrol) snd_asihpi_meter_get()
2153 ucontrol->value.integer.value[i] = 0; snd_asihpi_meter_get()
2155 ucontrol->value.integer.value[i] = snd_asihpi_meter_get()
2161 ucontrol->value.integer.value[i] = snd_asihpi_meter_get()
2233 struct snd_ctl_elem_value *ucontrol) snd_asihpi_mux_get()
2250 ucontrol->value.enumerated.item[0] = s; snd_asihpi_mux_get()
2257 ucontrol->value.enumerated.item[0] = 0; snd_asihpi_mux_get()
2262 struct snd_ctl_elem_value *ucontrol) snd_asihpi_mux_put()
2272 ucontrol->value.enumerated.item[0], snd_asihpi_mux_put()
2334 struct snd_ctl_elem_value *ucontrol) snd_asihpi_cmode_get()
2342 ucontrol->value.enumerated.item[0] = mode - 1; snd_asihpi_cmode_get()
2348 struct snd_ctl_elem_value *ucontrol) snd_asihpi_cmode_put()
2356 ucontrol->value.enumerated.item[0] + 1)); snd_asihpi_cmode_put()
2411 struct snd_ctl_elem_value *ucontrol) snd_asihpi_clksrc_get()
2420 ucontrol->value.enumerated.item[0] = 0; snd_asihpi_clksrc_get()
2433 ucontrol->value.enumerated.item[0] = i; snd_asihpi_clksrc_get()
2439 struct snd_ctl_elem_value *ucontrol) snd_asihpi_clksrc_put()
2449 item = ucontrol->value.enumerated.item[0]; snd_asihpi_clksrc_put()
2479 struct snd_ctl_elem_value *ucontrol) snd_asihpi_clklocal_get()
2487 ucontrol->value.integer.value[0] = rate; snd_asihpi_clklocal_get()
2489 ucontrol->value.integer.value[0] = 0; snd_asihpi_clklocal_get()
2494 struct snd_ctl_elem_value *ucontrol) snd_asihpi_clklocal_put()
2504 ucontrol->value.integer.value[0])); snd_asihpi_clklocal_put()
2521 struct snd_ctl_elem_value *ucontrol) snd_asihpi_clkrate_get()
2529 ucontrol->value.integer.value[0] = rate; snd_asihpi_clkrate_get()
2531 ucontrol->value.integer.value[0] = 0; snd_asihpi_clkrate_get()
1526 snd_asihpi_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_get() argument
1539 snd_asihpi_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_put() argument
1562 snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_mute_get() argument
1574 snd_asihpi_volume_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_volume_mute_put() argument
1647 snd_asihpi_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_level_get() argument
1662 snd_asihpi_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_level_put() argument
1715 snd_asihpi_aesebu_format_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol, u16 (*func)(u32, u16 *)) snd_asihpi_aesebu_format_get() argument
1737 snd_asihpi_aesebu_format_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol, u16 (*func)(u32, u16)) snd_asihpi_aesebu_format_put() argument
1757 snd_asihpi_aesebu_rx_format_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_aesebu_rx_format_get() argument
1763 snd_asihpi_aesebu_rx_format_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_aesebu_rx_format_put() argument
1782 snd_asihpi_aesebu_rxstatus_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_aesebu_rxstatus_get() argument
1819 snd_asihpi_aesebu_tx_format_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_aesebu_tx_format_get() argument
1825 snd_asihpi_aesebu_tx_format_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_aesebu_tx_format_put() argument
1876 snd_asihpi_tuner_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_gain_get() argument
1891 snd_asihpi_tuner_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_gain_put() argument
1942 snd_asihpi_tuner_band_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_band_get() argument
1968 snd_asihpi_tuner_band_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_band_put() argument
2039 snd_asihpi_tuner_freq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_freq_get() argument
2051 snd_asihpi_tuner_freq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_tuner_freq_put() argument
2142 snd_asihpi_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_meter_get() argument
2232 snd_asihpi_mux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_mux_get() argument
2261 snd_asihpi_mux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_mux_put() argument
2333 snd_asihpi_cmode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_cmode_get() argument
2347 snd_asihpi_cmode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_cmode_put() argument
2410 snd_asihpi_clksrc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_clksrc_get() argument
2438 snd_asihpi_clksrc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_clksrc_put() argument
2478 snd_asihpi_clklocal_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_clklocal_get() argument
2493 snd_asihpi_clklocal_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_clklocal_put() argument
2520 snd_asihpi_clkrate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_asihpi_clkrate_get() argument
/linux-4.1.27/sound/pci/mixart/
H A Dmixart_mixer.c357 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_analog_vol_get() argument
362 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; mixart_analog_vol_get()
363 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; mixart_analog_vol_get()
365 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; mixart_analog_vol_get()
366 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; mixart_analog_vol_get()
372 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_analog_vol_put() argument
381 int new_volume = ucontrol->value.integer.value[i]; mixart_analog_vol_put()
421 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_audio_sw_get() argument
426 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; mixart_audio_sw_get()
427 ucontrol->value.integer.value[1] = chip->analog_playback_active[1]; mixart_audio_sw_get()
432 static int mixart_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_audio_sw_put() argument
439 ucontrol->value.integer.value[i]) { mixart_audio_sw_put()
441 !!ucontrol->value.integer.value[i]; mixart_audio_sw_put()
834 static int mixart_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_pcm_vol_get() argument
837 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ mixart_pcm_vol_get()
850 ucontrol->value.integer.value[0] = stored_volume[0]; mixart_pcm_vol_get()
851 ucontrol->value.integer.value[1] = stored_volume[1]; mixart_pcm_vol_get()
856 static int mixart_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_pcm_vol_put() argument
859 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ mixart_pcm_vol_put()
879 int vol = ucontrol->value.integer.value[i]; mixart_pcm_vol_put()
914 static int mixart_pcm_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_pcm_sw_get() argument
917 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ mixart_pcm_sw_get()
922 ucontrol->value.integer.value[0] = chip->digital_playback_active[idx][0]; mixart_pcm_sw_get()
923 ucontrol->value.integer.value[1] = chip->digital_playback_active[idx][1]; mixart_pcm_sw_get()
928 static int mixart_pcm_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_pcm_sw_put() argument
933 int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); /* index */ mixart_pcm_sw_put()
942 ucontrol->value.integer.value[i]) { mixart_pcm_sw_put()
944 !!ucontrol->value.integer.value[i]; mixart_pcm_sw_put()
998 static int mixart_monitor_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_monitor_vol_get() argument
1002 ucontrol->value.integer.value[0] = chip->monitoring_volume[0]; mixart_monitor_vol_get()
1003 ucontrol->value.integer.value[1] = chip->monitoring_volume[1]; mixart_monitor_vol_get()
1008 static int mixart_monitor_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_monitor_vol_put() argument
1016 ucontrol->value.integer.value[i]) { mixart_monitor_vol_put()
1018 !!ucontrol->value.integer.value[i]; mixart_monitor_vol_put()
1042 static int mixart_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_monitor_sw_get() argument
1046 ucontrol->value.integer.value[0] = chip->monitoring_active[0]; mixart_monitor_sw_get()
1047 ucontrol->value.integer.value[1] = chip->monitoring_active[1]; mixart_monitor_sw_get()
1052 static int mixart_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixart_monitor_sw_put() argument
1060 ucontrol->value.integer.value[i]) { mixart_monitor_sw_put()
1062 !!ucontrol->value.integer.value[i]; mixart_monitor_sw_put()
/linux-4.1.27/sound/core/
H A Dvmaster.c139 struct snd_ctl_elem_value *ucontrol) slave_get_val()
147 ucontrol->value.integer.value[ch] = slave->vals[ch]; slave_get_val()
152 struct snd_ctl_elem_value *ucontrol) slave_put_val()
163 ucontrol->value.integer.value[ch] &= slave_put_val()
169 vol = ucontrol->value.integer.value[ch]; slave_put_val()
175 ucontrol->value.integer.value[ch] = vol; slave_put_val()
179 return slave->slave.put(&slave->slave, ucontrol); slave_put_val()
193 struct snd_ctl_elem_value *ucontrol) slave_get()
196 return slave_get_val(slave, ucontrol); slave_get()
200 struct snd_ctl_elem_value *ucontrol) slave_put()
209 if (slave->vals[ch] != ucontrol->value.integer.value[ch]) { slave_put()
211 slave->vals[ch] = ucontrol->value.integer.value[ch]; slave_put()
216 err = slave_put_val(slave, ucontrol); slave_put()
303 struct snd_ctl_elem_value *ucontrol) master_get()
309 ucontrol->value.integer.value[0] = master->val; master_get()
333 struct snd_ctl_elem_value *ucontrol) master_put()
344 new_val = ucontrol->value.integer.value[0]; master_put()
138 slave_get_val(struct link_slave *slave, struct snd_ctl_elem_value *ucontrol) slave_get_val() argument
151 slave_put_val(struct link_slave *slave, struct snd_ctl_elem_value *ucontrol) slave_put_val() argument
192 slave_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) slave_get() argument
199 slave_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) slave_put() argument
302 master_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) master_get() argument
332 master_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) master_put() argument
H A Dctljack.c20 struct snd_ctl_elem_value *ucontrol) jack_detect_kctl_get()
22 ucontrol->value.integer.value[0] = kcontrol->private_value; jack_detect_kctl_get()
19 jack_detect_kctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) jack_detect_kctl_get() argument
H A Dcontrol.c1078 struct snd_ctl_elem_value *ucontrol) snd_ctl_elem_user_get()
1083 snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; snd_ctl_elem_user_get()
1086 memcpy(&ucontrol->value, src, size); snd_ctl_elem_user_get()
1092 struct snd_ctl_elem_value *ucontrol) snd_ctl_elem_user_put()
1098 snd_ctl_get_ioff(kcontrol, &ucontrol->id) * size; snd_ctl_elem_user_put()
1101 change = memcmp(&ucontrol->value, dst, size) != 0; snd_ctl_elem_user_put()
1103 memcpy(dst, &ucontrol->value, size); snd_ctl_elem_user_put()
1077 snd_ctl_elem_user_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ctl_elem_user_get() argument
1091 snd_ctl_elem_user_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ctl_elem_user_put() argument
/linux-4.1.27/sound/pci/echoaudio/
H A Dechoaudio.c1004 struct snd_ctl_elem_value *ucontrol) snd_echo_output_gain_get()
1011 ucontrol->value.integer.value[c] = chip->output_gain[c]; snd_echo_output_gain_get()
1016 struct snd_ctl_elem_value *ucontrol) snd_echo_output_gain_put()
1025 gain = ucontrol->value.integer.value[c]; snd_echo_output_gain_put()
1085 struct snd_ctl_elem_value *ucontrol) snd_echo_input_gain_get()
1092 ucontrol->value.integer.value[c] = chip->input_gain[c]; snd_echo_input_gain_get()
1097 struct snd_ctl_elem_value *ucontrol) snd_echo_input_gain_put()
1106 gain = ucontrol->value.integer.value[c]; snd_echo_input_gain_put()
1154 struct snd_ctl_elem_value *ucontrol) snd_echo_output_nominal_get()
1161 ucontrol->value.integer.value[c] = chip->nominal_level[c]; snd_echo_output_nominal_get()
1166 struct snd_ctl_elem_value *ucontrol) snd_echo_output_nominal_put()
1175 if (chip->nominal_level[c] != ucontrol->value.integer.value[c]) { snd_echo_output_nominal_put()
1177 ucontrol->value.integer.value[c]); snd_echo_output_nominal_put()
1216 struct snd_ctl_elem_value *ucontrol) snd_echo_input_nominal_get()
1223 ucontrol->value.integer.value[c] = snd_echo_input_nominal_get()
1229 struct snd_ctl_elem_value *ucontrol) snd_echo_input_nominal_put()
1239 ucontrol->value.integer.value[c]) { snd_echo_input_nominal_put()
1241 ucontrol->value.integer.value[c]); snd_echo_input_nominal_put()
1284 struct snd_ctl_elem_value *ucontrol) snd_echo_mixer_get()
1287 unsigned int out = ucontrol->id.index / num_busses_in(chip); snd_echo_mixer_get()
1288 unsigned int in = ucontrol->id.index % num_busses_in(chip); snd_echo_mixer_get()
1293 ucontrol->value.integer.value[0] = chip->monitor_gain[out][in]; snd_echo_mixer_get()
1298 struct snd_ctl_elem_value *ucontrol) snd_echo_mixer_put()
1306 out = ucontrol->id.index / num_busses_in(chip); snd_echo_mixer_put()
1307 in = ucontrol->id.index % num_busses_in(chip); snd_echo_mixer_put()
1310 gain = ucontrol->value.integer.value[0]; snd_echo_mixer_put()
1356 struct snd_ctl_elem_value *ucontrol) snd_echo_vmixer_get()
1361 ucontrol->value.integer.value[0] = snd_echo_vmixer_get()
1362 chip->vmixer_gain[ucontrol->id.index / num_pipes_out(chip)] snd_echo_vmixer_get()
1363 [ucontrol->id.index % num_pipes_out(chip)]; snd_echo_vmixer_get()
1368 struct snd_ctl_elem_value *ucontrol) snd_echo_vmixer_put()
1376 out = ucontrol->id.index / num_pipes_out(chip); snd_echo_vmixer_put()
1377 vch = ucontrol->id.index % num_pipes_out(chip); snd_echo_vmixer_put()
1378 gain = ucontrol->value.integer.value[0]; snd_echo_vmixer_put()
1381 if (chip->vmixer_gain[out][vch] != ucontrol->value.integer.value[0]) { snd_echo_vmixer_put()
1383 set_vmixer_gain(chip, out, vch, ucontrol->value.integer.value[0]); snd_echo_vmixer_put()
1422 struct snd_ctl_elem_value *ucontrol) snd_echo_digital_mode_get()
1431 ucontrol->value.enumerated.item[0] = i; snd_echo_digital_mode_get()
1438 struct snd_ctl_elem_value *ucontrol) snd_echo_digital_mode_put()
1447 emode = ucontrol->value.enumerated.item[0]; snd_echo_digital_mode_put()
1504 struct snd_ctl_elem_value *ucontrol) snd_echo_spdif_mode_get()
1509 ucontrol->value.enumerated.item[0] = !!chip->professional_spdif; snd_echo_spdif_mode_get()
1514 struct snd_ctl_elem_value *ucontrol) snd_echo_spdif_mode_put()
1520 mode = !!ucontrol->value.enumerated.item[0]; snd_echo_spdif_mode_put()
1559 struct snd_ctl_elem_value *ucontrol) snd_echo_clock_source_get()
1569 ucontrol->value.enumerated.item[0] = i; snd_echo_clock_source_get()
1575 struct snd_ctl_elem_value *ucontrol) snd_echo_clock_source_put()
1583 eclock = ucontrol->value.enumerated.item[0]; snd_echo_clock_source_put()
1621 struct snd_ctl_elem_value *ucontrol) snd_echo_phantom_power_get()
1625 ucontrol->value.integer.value[0] = chip->phantom_power; snd_echo_phantom_power_get()
1630 struct snd_ctl_elem_value *ucontrol) snd_echo_phantom_power_put()
1635 power = !!ucontrol->value.integer.value[0]; snd_echo_phantom_power_put()
1664 struct snd_ctl_elem_value *ucontrol) snd_echo_automute_get()
1668 ucontrol->value.integer.value[0] = chip->digital_in_automute; snd_echo_automute_get()
1673 struct snd_ctl_elem_value *ucontrol) snd_echo_automute_put()
1678 automute = !!ucontrol->value.integer.value[0]; snd_echo_automute_put()
1705 struct snd_ctl_elem_value *ucontrol) snd_echo_vumeters_switch_put()
1711 set_meters_on(chip, ucontrol->value.integer.value[0]); snd_echo_vumeters_switch_put()
1745 struct snd_ctl_elem_value *ucontrol) snd_echo_vumeters_get()
1750 get_audio_meters(chip, ucontrol->value.integer.value); snd_echo_vumeters_get()
1779 struct snd_ctl_elem_value *ucontrol) snd_echo_channels_info_get()
1785 ucontrol->value.integer.value[0] = num_busses_in(chip); snd_echo_channels_info_get()
1786 ucontrol->value.integer.value[1] = num_analog_busses_in(chip); snd_echo_channels_info_get()
1787 ucontrol->value.integer.value[2] = num_busses_out(chip); snd_echo_channels_info_get()
1788 ucontrol->value.integer.value[3] = num_analog_busses_out(chip); snd_echo_channels_info_get()
1789 ucontrol->value.integer.value[4] = num_pipes_out(chip); snd_echo_channels_info_get()
1802 ucontrol->value.integer.value[5] = clocks; snd_echo_channels_info_get()
1003 snd_echo_output_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_output_gain_get() argument
1015 snd_echo_output_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_output_gain_put() argument
1084 snd_echo_input_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_input_gain_get() argument
1096 snd_echo_input_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_input_gain_put() argument
1153 snd_echo_output_nominal_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_output_nominal_get() argument
1165 snd_echo_output_nominal_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_output_nominal_put() argument
1215 snd_echo_input_nominal_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_input_nominal_get() argument
1228 snd_echo_input_nominal_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_input_nominal_put() argument
1283 snd_echo_mixer_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_mixer_get() argument
1297 snd_echo_mixer_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_mixer_put() argument
1355 snd_echo_vmixer_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_vmixer_get() argument
1367 snd_echo_vmixer_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_vmixer_put() argument
1421 snd_echo_digital_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_digital_mode_get() argument
1437 snd_echo_digital_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_digital_mode_put() argument
1503 snd_echo_spdif_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_spdif_mode_get() argument
1513 snd_echo_spdif_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_spdif_mode_put() argument
1558 snd_echo_clock_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_clock_source_get() argument
1574 snd_echo_clock_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_clock_source_put() argument
1620 snd_echo_phantom_power_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_phantom_power_get() argument
1629 snd_echo_phantom_power_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_phantom_power_put() argument
1663 snd_echo_automute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_automute_get() argument
1672 snd_echo_automute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_automute_put() argument
1704 snd_echo_vumeters_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_vumeters_switch_put() argument
1744 snd_echo_vumeters_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_vumeters_get() argument
1778 snd_echo_channels_info_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_echo_channels_info_get() argument
/linux-4.1.27/sound/isa/ad1816a/
H A Dad1816a_lib.c737 static int snd_ad1816a_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_get_mux() argument
746 ucontrol->value.enumerated.item[0] = (val >> 12) & 7; snd_ad1816a_get_mux()
747 ucontrol->value.enumerated.item[1] = (val >> 4) & 7; snd_ad1816a_get_mux()
751 static int snd_ad1816a_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_put_mux() argument
758 if (ucontrol->value.enumerated.item[0] > 6 || snd_ad1816a_put_mux()
759 ucontrol->value.enumerated.item[1] > 6) snd_ad1816a_put_mux()
761 val = (ucontrol->value.enumerated.item[0] << 12) | snd_ad1816a_put_mux()
762 (ucontrol->value.enumerated.item[1] << 4); snd_ad1816a_put_mux()
793 static int snd_ad1816a_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_get_single() argument
803 ucontrol->value.integer.value[0] = (snd_ad1816a_read(chip, reg) >> shift) & mask; snd_ad1816a_get_single()
806 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_ad1816a_get_single()
810 static int snd_ad1816a_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_put_single() argument
821 val = (ucontrol->value.integer.value[0] & mask); snd_ad1816a_put_single()
858 static int snd_ad1816a_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_get_double() argument
871 ucontrol->value.integer.value[0] = (val >> shift_left) & mask; snd_ad1816a_get_double()
872 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; snd_ad1816a_get_double()
875 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_ad1816a_get_double()
876 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_ad1816a_get_double()
881 static int snd_ad1816a_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ad1816a_put_double() argument
893 val1 = ucontrol->value.integer.value[0] & mask; snd_ad1816a_put_double()
894 val2 = ucontrol->value.integer.value[1] & mask; snd_ad1816a_put_double()
/linux-4.1.27/sound/soc/intel/boards/
H A Dmfld_machine.c95 struct snd_ctl_elem_value *ucontrol) headset_get_switch()
97 ucontrol->value.integer.value[0] = hs_switch; headset_get_switch()
102 struct snd_ctl_elem_value *ucontrol) headset_set_switch()
107 if (ucontrol->value.integer.value[0] == hs_switch) headset_set_switch()
112 if (ucontrol->value.integer.value[0]) { headset_set_switch()
126 hs_switch = ucontrol->value.integer.value[0]; headset_set_switch()
149 struct snd_ctl_elem_value *ucontrol) lo_get_switch()
151 ucontrol->value.integer.value[0] = lo_dac; lo_get_switch()
156 struct snd_ctl_elem_value *ucontrol) lo_set_switch()
161 if (ucontrol->value.integer.value[0] == lo_dac) lo_set_switch()
171 switch (ucontrol->value.integer.value[0]) { lo_set_switch()
205 lo_dac = ucontrol->value.integer.value[0]; lo_set_switch()
94 headset_get_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) headset_get_switch() argument
101 headset_set_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) headset_set_switch() argument
148 lo_get_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lo_get_switch() argument
155 lo_set_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lo_set_switch() argument
/linux-4.1.27/sound/pci/ac97/
H A Dac97_patch.h74 struct snd_ctl_elem_value *ucontrol);
76 struct snd_ctl_elem_value *ucontrol);
93 struct snd_ctl_elem_value *ucontrol);
95 struct snd_ctl_elem_value *ucontrol);
H A Dac97_patch.c92 static int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ac97_surround_jack_mode_get() argument
96 ucontrol->value.enumerated.item[0] = ac97->indep_surround; ac97_surround_jack_mode_get()
100 static int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ac97_surround_jack_mode_put() argument
103 unsigned char indep = !!ucontrol->value.enumerated.item[0]; ac97_surround_jack_mode_put()
121 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ac97_channel_mode_get() argument
125 ucontrol->value.enumerated.item[0] = ac97->channel_mode; ac97_channel_mode_get()
129 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ac97_channel_mode_put() argument
132 unsigned char mode = ucontrol->value.enumerated.item[0]; ac97_channel_mode_put()
241 struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_get_speaker()
250 ucontrol->value.enumerated.item[0] = val; snd_ac97_ymf7x3_get_speaker()
255 struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_put_speaker()
260 if (ucontrol->value.enumerated.item[0] > 2) snd_ac97_ymf7x3_put_speaker()
262 val = (ucontrol->value.enumerated.item[0] + 1) << 10; snd_ac97_ymf7x3_put_speaker()
286 struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_spdif_source_get()
292 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; snd_ac97_ymf7x3_spdif_source_get()
297 struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_spdif_source_put()
302 if (ucontrol->value.enumerated.item[0] > 1) snd_ac97_ymf7x3_spdif_source_put()
304 val = ucontrol->value.enumerated.item[0] << 1; snd_ac97_ymf7x3_spdif_source_put()
387 static int snd_ac97_ymf753_spdif_output_pin_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf753_spdif_output_pin_get() argument
393 ucontrol->value.enumerated.item[0] = (val & 0x0008) ? 2 : (val & 0x0020) ? 1 : 0; snd_ac97_ymf753_spdif_output_pin_get()
397 static int snd_ac97_ymf753_spdif_output_pin_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf753_spdif_output_pin_put() argument
402 if (ucontrol->value.enumerated.item[0] > 2) snd_ac97_ymf753_spdif_output_pin_put()
404 val = (ucontrol->value.enumerated.item[0] == 2) ? 0x0008 : snd_ac97_ymf753_spdif_output_pin_put()
405 (ucontrol->value.enumerated.item[0] == 1) ? 0x0020 : 0; snd_ac97_ymf753_spdif_output_pin_put()
971 static int snd_ac97_stac9708_put_bias(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9708_put_bias() argument
979 (ucontrol->value.integer.value[0] & 1) << 4); snd_ac97_stac9708_put_bias()
1085 static int snd_ac97_stac9758_output_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_output_jack_get() argument
1093 ucontrol->value.enumerated.item[0] = 0; snd_ac97_stac9758_output_jack_get()
1095 ucontrol->value.enumerated.item[0] = 1 + (val & 3); snd_ac97_stac9758_output_jack_get()
1099 static int snd_ac97_stac9758_output_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_output_jack_put() argument
1105 if (ucontrol->value.enumerated.item[0] > 4) snd_ac97_stac9758_output_jack_put()
1107 if (ucontrol->value.enumerated.item[0] == 0) snd_ac97_stac9758_output_jack_put()
1110 val = 4 | (ucontrol->value.enumerated.item[0] - 1); snd_ac97_stac9758_output_jack_put()
1124 static int snd_ac97_stac9758_input_jack_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_input_jack_get() argument
1131 ucontrol->value.enumerated.item[0] = (val >> shift) & 7; snd_ac97_stac9758_input_jack_get()
1135 static int snd_ac97_stac9758_input_jack_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_input_jack_put() argument
1141 ucontrol->value.enumerated.item[0] << shift, 0); snd_ac97_stac9758_input_jack_put()
1153 static int snd_ac97_stac9758_phonesel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_phonesel_get() argument
1157 ucontrol->value.enumerated.item[0] = ac97->regs[AC97_SIGMATEL_IOMISC] & 3; snd_ac97_stac9758_phonesel_get()
1161 static int snd_ac97_stac9758_phonesel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_stac9758_phonesel_put() argument
1166 ucontrol->value.enumerated.item[0], 0); snd_ac97_stac9758_phonesel_put()
1770 static int snd_ac97_ad198x_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad198x_spdif_source_get() argument
1776 ucontrol->value.enumerated.item[0] = (val >> 2) & 1; snd_ac97_ad198x_spdif_source_get()
1780 static int snd_ac97_ad198x_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad198x_spdif_source_put() argument
1785 if (ucontrol->value.enumerated.item[0] > 1) snd_ac97_ad198x_spdif_source_put()
1787 val = ucontrol->value.enumerated.item[0] << 2; snd_ac97_ad198x_spdif_source_put()
1921 static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1888_lohpsel_get() argument
1927 ucontrol->value.integer.value[0] = !(val & AC97_AD198X_LOSEL); snd_ac97_ad1888_lohpsel_get()
1929 ucontrol->value.integer.value[0] = snd_ac97_ad1888_lohpsel_get()
1930 !ucontrol->value.integer.value[0]; snd_ac97_ad1888_lohpsel_get()
1934 static int snd_ac97_ad1888_lohpsel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1888_lohpsel_put() argument
1939 val = !ucontrol->value.integer.value[0]; snd_ac97_ad1888_lohpsel_put()
1954 static int snd_ac97_ad1888_downmix_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1888_downmix_get() argument
1961 ucontrol->value.enumerated.item[0] = 0; snd_ac97_ad1888_downmix_get()
1963 ucontrol->value.enumerated.item[0] = 1 + ((val >> 8) & 1); snd_ac97_ad1888_downmix_get()
1967 static int snd_ac97_ad1888_downmix_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1888_downmix_put() argument
1972 if (ucontrol->value.enumerated.item[0] > 2) snd_ac97_ad1888_downmix_put()
1974 if (ucontrol->value.enumerated.item[0] == 0) snd_ac97_ad1888_downmix_put()
1978 ((ucontrol->value.enumerated.item[0] - 1) << 8); snd_ac97_ad1888_downmix_put()
2110 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1985_vrefout_get()
2117 ucontrol->value.enumerated.item[0] = reg2ctrl[val]; snd_ac97_ad1985_vrefout_get()
2122 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1985_vrefout_put()
2128 if (ucontrol->value.enumerated.item[0] > 3) snd_ac97_ad1985_vrefout_put()
2130 val = ctrl2reg[ucontrol->value.enumerated.item[0]] snd_ac97_ad1985_vrefout_put()
2230 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_lososel_get()
2236 ucontrol->value.integer.value[0] = (val & AC97_AD1986_LOSEL) != 0; snd_ac97_ad1986_lososel_get()
2241 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_lososel_put()
2249 ucontrol->value.integer.value[0] != 0 snd_ac97_ad1986_lososel_put()
2256 (ucontrol->value.integer.value[0] != 0 snd_ac97_ad1986_lososel_put()
2266 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_spread_get()
2272 ucontrol->value.integer.value[0] = (val & AC97_AD1986_SPRD) != 0; snd_ac97_ad1986_spread_get()
2277 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_spread_put()
2285 ucontrol->value.integer.value[0] != 0 snd_ac97_ad1986_spread_put()
2292 (ucontrol->value.integer.value[0] != 0 snd_ac97_ad1986_spread_put()
2302 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_miclisel_get()
2306 ucontrol->value.integer.value[0] = ac97->spec.ad18xx.swap_mic_linein; snd_ac97_ad1986_miclisel_get()
2311 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_miclisel_put()
2314 unsigned char swap = ucontrol->value.integer.value[0] != 0; snd_ac97_ad1986_miclisel_put()
2326 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_vrefout_get()
2340 ucontrol->value.enumerated.item[0] = val; snd_ac97_ad1986_vrefout_get()
2345 struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_vrefout_put()
2355 switch (ucontrol->value.enumerated.item[0]) snd_ac97_ad1986_vrefout_put()
2540 struct snd_ctl_elem_value *ucontrol) alc650_swap_surround_put()
2546 if (ucontrol->value.integer.value[0]) alc650_swap_surround_put()
2551 return snd_ac97_put_volsw(kcontrol, ucontrol); alc650_swap_surround_put()
2714 static int alc655_iec958_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) alc655_iec958_route_get() argument
2723 ucontrol->value.enumerated.item[0] = val; alc655_iec958_route_get()
2727 static int alc655_iec958_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) alc655_iec958_route_put() argument
2732 (unsigned short)ucontrol->value.enumerated.item[0] << 12, alc655_iec958_route_put()
3002 static int snd_ac97_cmedia_spdif_playback_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_cmedia_spdif_playback_source_get() argument
3008 ucontrol->value.enumerated.item[0] = (val >> 1) & 0x01; snd_ac97_cmedia_spdif_playback_source_get()
3012 static int snd_ac97_cmedia_spdif_playback_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_cmedia_spdif_playback_source_put() argument
3018 (ucontrol->value.enumerated.item[0] & 0x01) << 1); snd_ac97_cmedia_spdif_playback_source_put()
3176 static int cm9761_spdif_out_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cm9761_spdif_out_source_get() argument
3181 ucontrol->value.enumerated.item[0] = 2; /* SPDIF-loopback */ cm9761_spdif_out_source_get()
3183 ucontrol->value.enumerated.item[0] = 1; /* ADC loopback */ cm9761_spdif_out_source_get()
3185 ucontrol->value.enumerated.item[0] = 0; /* AC-link */ cm9761_spdif_out_source_get()
3189 static int cm9761_spdif_out_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cm9761_spdif_out_source_put() argument
3193 if (ucontrol->value.enumerated.item[0] == 2) cm9761_spdif_out_source_put()
3197 ucontrol->value.enumerated.item[0] == 1 ? 0x2 : 0); cm9761_spdif_out_source_put()
3523 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1617a_smart51_get()
3537 ucontrol->value.enumerated.item[0] = (usSM51 << 1) + usMS; snd_ac97_vt1617a_smart51_get()
3543 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1617a_smart51_put()
3551 usSM51 = ucontrol->value.enumerated.item[0] >> 1; snd_ac97_vt1617a_smart51_put()
3552 usMS = ucontrol->value.enumerated.item[0] & 1; snd_ac97_vt1617a_smart51_put()
3692 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_UAJ_get()
3708 ucontrol->value.enumerated.item[0] = uaj >> snd_ac97_vt1618_UAJ_get()
3715 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_UAJ_put()
3719 ucontrol->value.enumerated.item[0]<< snd_ac97_vt1618_UAJ_put()
3735 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_aux_get()
3737 ucontrol->value.enumerated.item[0] = snd_ac97_vt1618_aux_get()
3743 struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_aux_put()
3748 ucontrol->value.enumerated.item[0] << 3); snd_ac97_vt1618_aux_put()
3753 ucontrol->value.enumerated.item[0] << 3); snd_ac97_vt1618_aux_put()
240 snd_ac97_ymf7x3_get_speaker(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_get_speaker() argument
254 snd_ac97_ymf7x3_put_speaker(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_put_speaker() argument
285 snd_ac97_ymf7x3_spdif_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_spdif_source_get() argument
296 snd_ac97_ymf7x3_spdif_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ymf7x3_spdif_source_put() argument
2109 snd_ac97_ad1985_vrefout_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1985_vrefout_get() argument
2121 snd_ac97_ad1985_vrefout_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1985_vrefout_put() argument
2229 snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_lososel_get() argument
2240 snd_ac97_ad1986_lososel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_lososel_put() argument
2265 snd_ac97_ad1986_spread_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_spread_get() argument
2276 snd_ac97_ad1986_spread_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_spread_put() argument
2301 snd_ac97_ad1986_miclisel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_miclisel_get() argument
2310 snd_ac97_ad1986_miclisel_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_miclisel_put() argument
2325 snd_ac97_ad1986_vrefout_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_vrefout_get() argument
2344 snd_ac97_ad1986_vrefout_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad1986_vrefout_put() argument
2539 alc650_swap_surround_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) alc650_swap_surround_put() argument
3522 snd_ac97_vt1617a_smart51_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1617a_smart51_get() argument
3542 snd_ac97_vt1617a_smart51_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1617a_smart51_put() argument
3691 snd_ac97_vt1618_UAJ_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_UAJ_get() argument
3714 snd_ac97_vt1618_UAJ_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_UAJ_put() argument
3734 snd_ac97_vt1618_aux_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_aux_get() argument
3742 snd_ac97_vt1618_aux_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_vt1618_aux_put() argument
H A Dac97_codec.c472 struct snd_ctl_elem_value *ucontrol) snd_ac97_get_enum_double()
481 ucontrol->value.enumerated.item[0] = (val >> e->shift_l) & (bitmask - 1); snd_ac97_get_enum_double()
483 ucontrol->value.enumerated.item[1] = (val >> e->shift_r) & (bitmask - 1); snd_ac97_get_enum_double()
489 struct snd_ctl_elem_value *ucontrol) snd_ac97_put_enum_double()
498 if (ucontrol->value.enumerated.item[0] > e->mask - 1) snd_ac97_put_enum_double()
500 val = ucontrol->value.enumerated.item[0] << e->shift_l; snd_ac97_put_enum_double()
503 if (ucontrol->value.enumerated.item[1] > e->mask - 1) snd_ac97_put_enum_double()
505 val |= ucontrol->value.enumerated.item[1] << e->shift_r; snd_ac97_put_enum_double()
550 struct snd_ctl_elem_value *ucontrol) snd_ac97_get_volsw()
561 ucontrol->value.integer.value[0] = (snd_ac97_read_cache(ac97, reg) >> shift) & mask; snd_ac97_get_volsw()
563 ucontrol->value.integer.value[1] = (snd_ac97_read_cache(ac97, reg) >> rshift) & mask; snd_ac97_get_volsw()
565 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_ac97_get_volsw()
567 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_ac97_get_volsw()
574 struct snd_ctl_elem_value *ucontrol) snd_ac97_put_volsw()
586 val = (ucontrol->value.integer.value[0] & mask); snd_ac97_put_volsw()
592 val2 = (ucontrol->value.integer.value[1] & mask); snd_ac97_put_volsw()
714 static int snd_ac97_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_spdif_cmask_get() argument
716 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | snd_ac97_spdif_cmask_get()
720 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_CATEGORY | snd_ac97_spdif_cmask_get()
722 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS; snd_ac97_spdif_cmask_get()
726 static int snd_ac97_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_spdif_pmask_get() argument
729 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | snd_ac97_spdif_pmask_get()
736 static int snd_ac97_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_spdif_default_get() argument
741 ucontrol->value.iec958.status[0] = ac97->spdif_status & 0xff; snd_ac97_spdif_default_get()
742 ucontrol->value.iec958.status[1] = (ac97->spdif_status >> 8) & 0xff; snd_ac97_spdif_default_get()
743 ucontrol->value.iec958.status[2] = (ac97->spdif_status >> 16) & 0xff; snd_ac97_spdif_default_get()
744 ucontrol->value.iec958.status[3] = (ac97->spdif_status >> 24) & 0xff; snd_ac97_spdif_default_get()
749 static int snd_ac97_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_spdif_default_put() argument
756 new = val = ucontrol->value.iec958.status[0] & (IEC958_AES0_PROFESSIONAL|IEC958_AES0_NONAUDIO); snd_ac97_spdif_default_put()
757 if (ucontrol->value.iec958.status[0] & IEC958_AES0_PROFESSIONAL) { snd_ac97_spdif_default_put()
758 new |= ucontrol->value.iec958.status[0] & (IEC958_AES0_PRO_FS|IEC958_AES0_PRO_EMPHASIS_5015); snd_ac97_spdif_default_put()
768 new |= ucontrol->value.iec958.status[0] & (IEC958_AES0_CON_EMPHASIS_5015|IEC958_AES0_CON_NOT_COPYRIGHT); snd_ac97_spdif_default_put()
769 new |= ((ucontrol->value.iec958.status[1] & (IEC958_AES1_CON_CATEGORY|IEC958_AES1_CON_ORIGINAL)) << 8); snd_ac97_spdif_default_put()
770 new |= ((ucontrol->value.iec958.status[3] & IEC958_AES3_CON_FS) << 24); snd_ac97_spdif_default_put()
823 static int snd_ac97_put_spsa(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_put_spsa() argument
833 value = (ucontrol->value.integer.value[0] & mask); snd_ac97_put_spsa()
909 static int snd_ac97_ad18xx_pcm_get_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad18xx_pcm_get_bits() argument
917 ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask); snd_ac97_ad18xx_pcm_get_bits()
919 ucontrol->value.integer.value[1] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> rshift) & mask); snd_ac97_ad18xx_pcm_get_bits()
923 static int snd_ac97_ad18xx_pcm_put_bits(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad18xx_pcm_put_bits() argument
932 val = (mask - (ucontrol->value.integer.value[0] & mask)) << lshift; snd_ac97_ad18xx_pcm_put_bits()
935 val |= (mask - (ucontrol->value.integer.value[1] & mask)) << rshift; snd_ac97_ad18xx_pcm_put_bits()
955 static int snd_ac97_ad18xx_pcm_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad18xx_pcm_get_volume() argument
961 ucontrol->value.integer.value[0] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 0) & 31); snd_ac97_ad18xx_pcm_get_volume()
962 ucontrol->value.integer.value[1] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 8) & 31); snd_ac97_ad18xx_pcm_get_volume()
967 static int snd_ac97_ad18xx_pcm_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_ad18xx_pcm_put_volume() argument
973 val1 = 31 - (ucontrol->value.integer.value[0] & 31); snd_ac97_ad18xx_pcm_put_volume()
974 val2 = 31 - (ucontrol->value.integer.value[1] & 31); snd_ac97_ad18xx_pcm_put_volume()
2673 static int bind_hp_volsw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) bind_hp_volsw_put() argument
2675 int err = snd_ac97_put_volsw(kcontrol, ucontrol); bind_hp_volsw_put()
2679 snd_ac97_put_volsw(kcontrol, ucontrol); bind_hp_volsw_put()
2773 static int master_mute_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) master_mute_sw_put() argument
2775 int err = snd_ac97_put_volsw(kcontrol, ucontrol); master_mute_sw_put()
2809 struct snd_ctl_elem_value *ucontrol) hp_master_mute_sw_put()
2811 int err = bind_hp_volsw_put(kcontrol, ucontrol); hp_master_mute_sw_put()
471 snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_get_enum_double() argument
488 snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_put_enum_double() argument
549 snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_get_volsw() argument
573 snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ac97_put_volsw() argument
2808 hp_master_mute_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hp_master_mute_sw_put() argument
/linux-4.1.27/sound/pci/ctxfi/
H A Dctmixer.c346 struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_volume_get()
361 ucontrol->value.integer.value[i] = val; ct_alsa_mix_volume_get()
368 struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_volume_put()
377 val = ucontrol->value.integer.value[i]; ct_alsa_mix_volume_put()
425 struct snd_ctl_elem_value *ucontrol) output_switch_get()
428 ucontrol->value.enumerated.item[0] = atc->output_switch_get(atc); output_switch_get()
433 struct snd_ctl_elem_value *ucontrol) output_switch_put()
436 if (ucontrol->value.enumerated.item[0] > 2) output_switch_put()
438 return atc->output_switch_put(atc, ucontrol->value.enumerated.item[0]); output_switch_put()
460 struct snd_ctl_elem_value *ucontrol) mic_source_switch_get()
463 ucontrol->value.enumerated.item[0] = atc->mic_source_switch_get(atc); mic_source_switch_get()
468 struct snd_ctl_elem_value *ucontrol) mic_source_switch_put()
471 if (ucontrol->value.enumerated.item[0] > 2) mic_source_switch_put()
474 ucontrol->value.enumerated.item[0]); mic_source_switch_put()
583 struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_switch_get()
589 ucontrol->value.integer.value[0] = get_switch_state(mixer, type); ct_alsa_mix_switch_get()
594 struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_switch_put()
601 state = ucontrol->value.integer.value[0]; ct_alsa_mix_switch_put()
628 struct snd_ctl_elem_value *ucontrol) ct_spdif_get_mask()
630 ucontrol->value.iec958.status[0] = 0xff; ct_spdif_get_mask()
631 ucontrol->value.iec958.status[1] = 0xff; ct_spdif_get_mask()
632 ucontrol->value.iec958.status[2] = 0xff; ct_spdif_get_mask()
633 ucontrol->value.iec958.status[3] = 0xff; ct_spdif_get_mask()
638 struct snd_ctl_elem_value *ucontrol) ct_spdif_get()
648 ucontrol->value.iec958.status[0] = (status >> 0) & 0xff; ct_spdif_get()
649 ucontrol->value.iec958.status[1] = (status >> 8) & 0xff; ct_spdif_get()
650 ucontrol->value.iec958.status[2] = (status >> 16) & 0xff; ct_spdif_get()
651 ucontrol->value.iec958.status[3] = (status >> 24) & 0xff; ct_spdif_get()
657 struct snd_ctl_elem_value *ucontrol) ct_spdif_put()
663 status = (ucontrol->value.iec958.status[0] << 0) | ct_spdif_put()
664 (ucontrol->value.iec958.status[1] << 8) | ct_spdif_put()
665 (ucontrol->value.iec958.status[2] << 16) | ct_spdif_put()
666 (ucontrol->value.iec958.status[3] << 24); ct_spdif_put()
345 ct_alsa_mix_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_volume_get() argument
367 ct_alsa_mix_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_volume_put() argument
424 output_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) output_switch_get() argument
432 output_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) output_switch_put() argument
459 mic_source_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mic_source_switch_get() argument
467 mic_source_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mic_source_switch_put() argument
582 ct_alsa_mix_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_switch_get() argument
593 ct_alsa_mix_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_alsa_mix_switch_put() argument
627 ct_spdif_get_mask(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_spdif_get_mask() argument
637 ct_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_spdif_get() argument
656 ct_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) ct_spdif_put() argument
/linux-4.1.27/sound/usb/
H A Dmixer_quirks.c300 static int snd_audigy2nx_led_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy2nx_led_get() argument
302 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; snd_audigy2nx_led_get()
337 struct snd_ctl_elem_value *ucontrol) snd_audigy2nx_led_put()
342 int value = ucontrol->value.integer.value[0]; snd_audigy2nx_led_put()
469 struct snd_ctl_elem_value *ucontrol) snd_emu0204_ch_switch_get()
471 ucontrol->value.enumerated.item[0] = kcontrol->private_value; snd_emu0204_ch_switch_get()
497 struct snd_ctl_elem_value *ucontrol) snd_emu0204_ch_switch_put()
501 unsigned int value = ucontrol->value.enumerated.item[0]; snd_emu0204_ch_switch_put()
540 struct snd_ctl_elem_value *ucontrol) snd_xonar_u1_switch_get()
542 ucontrol->value.integer.value[0] = !!(kcontrol->private_value & 0x02); snd_xonar_u1_switch_get()
564 struct snd_ctl_elem_value *ucontrol) snd_xonar_u1_switch_put()
571 if (ucontrol->value.integer.value[0]) snd_xonar_u1_switch_put()
608 struct snd_ctl_elem_value *ucontrol) snd_mbox1_switch_get()
610 ucontrol->value.enumerated.item[0] = kctl->private_value; snd_mbox1_switch_get()
683 struct snd_ctl_elem_value *ucontrol) snd_mbox1_switch_put()
691 new_val = ucontrol->value.enumerated.item[0]; snd_mbox1_switch_put()
761 struct snd_ctl_elem_value *ucontrol) snd_nativeinstruments_control_get()
763 ucontrol->value.integer.value[0] = kcontrol->private_value >> 24; snd_nativeinstruments_control_get()
785 struct snd_ctl_elem_value *ucontrol) snd_nativeinstruments_control_put()
789 u8 newval = ucontrol->value.integer.value[0]; snd_nativeinstruments_control_put()
922 struct snd_ctl_elem_value *ucontrol) snd_ftu_eff_switch_get()
924 ucontrol->value.enumerated.item[0] = kctl->private_value >> 24; snd_ftu_eff_switch_get()
953 struct snd_ctl_elem_value *ucontrol) snd_ftu_eff_switch_put()
960 new_val = ucontrol->value.enumerated.item[0]; snd_ftu_eff_switch_put()
1501 struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_default_get()
1516 ucontrol->value.iec958.status[0] = kcontrol->private_value & 0xff; snd_microii_spdif_default_get()
1517 ucontrol->value.iec958.status[1] = (kcontrol->private_value >> 8) & 0xff; snd_microii_spdif_default_get()
1518 ucontrol->value.iec958.status[2] = 0x00; snd_microii_spdif_default_get()
1541 ucontrol->value.iec958.status[3] = (rate == 48000) ? snd_microii_spdif_default_get()
1592 struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_default_put()
1600 pval |= (ucontrol->value.iec958.status[1] & 0x0f) << 8; snd_microii_spdif_default_put()
1601 pval |= (ucontrol->value.iec958.status[0] & 0x0f); snd_microii_spdif_default_put()
1604 pval |= (ucontrol->value.iec958.status[1] & 0xf0) << 8; snd_microii_spdif_default_put()
1619 struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_mask_get()
1621 ucontrol->value.iec958.status[0] = 0x0f; snd_microii_spdif_mask_get()
1622 ucontrol->value.iec958.status[1] = 0xff; snd_microii_spdif_mask_get()
1623 ucontrol->value.iec958.status[2] = 0x00; snd_microii_spdif_mask_get()
1624 ucontrol->value.iec958.status[3] = 0x00; snd_microii_spdif_mask_get()
1630 struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_switch_get()
1632 ucontrol->value.integer.value[0] = !(kcontrol->private_value & 0x02); snd_microii_spdif_switch_get()
1661 struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_switch_put()
1667 reg = ucontrol->value.integer.value[0] ? 0x28 : 0x2a; snd_microii_spdif_switch_put()
336 snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_audigy2nx_led_put() argument
468 snd_emu0204_ch_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu0204_ch_switch_get() argument
496 snd_emu0204_ch_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_emu0204_ch_switch_put() argument
539 snd_xonar_u1_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_xonar_u1_switch_get() argument
563 snd_xonar_u1_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_xonar_u1_switch_put() argument
607 snd_mbox1_switch_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_mbox1_switch_get() argument
682 snd_mbox1_switch_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_mbox1_switch_put() argument
760 snd_nativeinstruments_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_nativeinstruments_control_get() argument
784 snd_nativeinstruments_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_nativeinstruments_control_put() argument
921 snd_ftu_eff_switch_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_ftu_eff_switch_get() argument
952 snd_ftu_eff_switch_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_ftu_eff_switch_put() argument
1500 snd_microii_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_default_get() argument
1591 snd_microii_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_default_put() argument
1618 snd_microii_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_mask_get() argument
1629 snd_microii_spdif_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_switch_get() argument
1660 snd_microii_spdif_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_microii_spdif_switch_put() argument
H A Dmixer_scarlett.c245 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_switch_get()
256 ucontrol->value.integer.value[i] = val; scarlett_ctl_switch_get()
263 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_switch_put()
274 val = ucontrol->value.integer.value[i]; scarlett_ctl_switch_put()
316 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_get()
328 ucontrol->value.integer.value[i] = val; scarlett_ctl_get()
335 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_put()
346 val = ucontrol->value.integer.value[i] - scarlett_ctl_put()
411 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_get()
423 ucontrol->value.enumerated.item[0] = val; scarlett_ctl_enum_get()
429 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_put()
439 val = ucontrol->value.integer.value[0]; scarlett_ctl_enum_put()
459 struct snd_ctl_elem_value *ucontrol) scarlett_ctl_meter_get()
476 ucontrol->value.enumerated.item[0] = clamp((int)buf[0], 0, 1); scarlett_ctl_meter_get()
244 scarlett_ctl_switch_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_switch_get() argument
262 scarlett_ctl_switch_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_switch_put() argument
315 scarlett_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_get() argument
334 scarlett_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_put() argument
410 scarlett_ctl_enum_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_get() argument
428 scarlett_ctl_enum_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_put() argument
458 scarlett_ctl_meter_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_meter_get() argument
H A Dmixer.c1089 struct snd_ctl_elem_value *ucontrol) mixer_ctl_feature_get()
1094 ucontrol->value.integer.value[0] = cval->min; mixer_ctl_feature_get()
1104 ucontrol->value.integer.value[cnt] = val; mixer_ctl_feature_get()
1114 ucontrol->value.integer.value[0] = val; mixer_ctl_feature_get()
1121 struct snd_ctl_elem_value *ucontrol) mixer_ctl_feature_put()
1135 val = ucontrol->value.integer.value[cnt]; mixer_ctl_feature_put()
1148 val = ucontrol->value.integer.value[0]; mixer_ctl_feature_put()
1640 struct snd_ctl_elem_value *ucontrol) mixer_ctl_procunit_get()
1647 ucontrol->value.integer.value[0] = cval->min; mixer_ctl_procunit_get()
1651 ucontrol->value.integer.value[0] = val; mixer_ctl_procunit_get()
1657 struct snd_ctl_elem_value *ucontrol) mixer_ctl_procunit_put()
1665 val = ucontrol->value.integer.value[0]; mixer_ctl_procunit_put()
1928 struct snd_ctl_elem_value *ucontrol) mixer_ctl_selector_get()
1935 ucontrol->value.enumerated.item[0] = 0; mixer_ctl_selector_get()
1939 ucontrol->value.enumerated.item[0] = val; mixer_ctl_selector_get()
1945 struct snd_ctl_elem_value *ucontrol) mixer_ctl_selector_put()
1953 val = ucontrol->value.enumerated.item[0]; mixer_ctl_selector_put()
1088 mixer_ctl_feature_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_feature_get() argument
1120 mixer_ctl_feature_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_feature_put() argument
1639 mixer_ctl_procunit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_procunit_get() argument
1656 mixer_ctl_procunit_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_procunit_put() argument
1927 mixer_ctl_selector_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_selector_get() argument
1944 mixer_ctl_selector_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mixer_ctl_selector_put() argument
H A Dstream.c183 struct snd_ctl_elem_value *ucontrol) usb_chmap_ctl_get()
190 memset(ucontrol->value.integer.value, 0, usb_chmap_ctl_get()
191 sizeof(ucontrol->value.integer.value)); usb_chmap_ctl_get()
196 ucontrol->value.integer.value[i] = chmap->map[i]; usb_chmap_ctl_get()
182 usb_chmap_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) usb_chmap_ctl_get() argument
/linux-4.1.27/sound/soc/intel/haswell/
H A Dsst-haswell-pcm.c182 struct snd_ctl_elem_value *ucontrol) hsw_stream_volume_put()
203 hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); hsw_stream_volume_put()
205 hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); hsw_stream_volume_put()
212 if (ucontrol->value.integer.value[0] == hsw_stream_volume_put()
213 ucontrol->value.integer.value[1]) { hsw_stream_volume_put()
214 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); hsw_stream_volume_put()
218 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); hsw_stream_volume_put()
220 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); hsw_stream_volume_put()
231 struct snd_ctl_elem_value *ucontrol) hsw_stream_volume_get()
251 ucontrol->value.integer.value[0] = hsw_stream_volume_get()
253 ucontrol->value.integer.value[1] = hsw_stream_volume_get()
262 ucontrol->value.integer.value[0] = hsw_ipc_to_mixer(volume); hsw_stream_volume_get()
264 ucontrol->value.integer.value[1] = hsw_ipc_to_mixer(volume); hsw_stream_volume_get()
274 struct snd_ctl_elem_value *ucontrol) hsw_volume_put()
283 if (ucontrol->value.integer.value[0] == hsw_volume_put()
284 ucontrol->value.integer.value[1]) { hsw_volume_put()
286 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); hsw_volume_put()
290 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[0]); hsw_volume_put()
293 volume = hsw_mixer_to_ipc(ucontrol->value.integer.value[1]); hsw_volume_put()
303 struct snd_ctl_elem_value *ucontrol) hsw_volume_get()
312 ucontrol->value.integer.value[0] = hsw_ipc_to_mixer(volume); hsw_volume_get()
315 ucontrol->value.integer.value[1] = hsw_ipc_to_mixer(volume); hsw_volume_get()
323 struct snd_ctl_elem_value *ucontrol) hsw_waves_switch_get()
330 ucontrol->value.integer.value[0] = hsw_waves_switch_get()
337 struct snd_ctl_elem_value *ucontrol) hsw_waves_switch_put()
344 bool switch_on = (bool)ucontrol->value.integer.value[0]; hsw_waves_switch_put()
371 struct snd_ctl_elem_value *ucontrol) hsw_waves_param_get()
378 return sst_hsw_load_param_line(hsw, ucontrol->value.bytes.data); hsw_waves_param_get()
382 struct snd_ctl_elem_value *ucontrol) hsw_waves_param_put()
389 int param_id = ucontrol->value.bytes.data[0]; hsw_waves_param_put()
399 ret = sst_hsw_store_param_line(hsw, ucontrol->value.bytes.data); hsw_waves_param_put()
405 param_size, ucontrol->value.bytes.data); hsw_waves_param_put()
181 hsw_stream_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_stream_volume_put() argument
230 hsw_stream_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_stream_volume_get() argument
273 hsw_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_volume_put() argument
302 hsw_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_volume_get() argument
322 hsw_waves_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_waves_switch_get() argument
336 hsw_waves_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_waves_switch_put() argument
370 hsw_waves_param_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_waves_param_get() argument
381 hsw_waves_param_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hsw_waves_param_put() argument
/linux-4.1.27/sound/soc/fsl/
H A Dmx27vis-aic32x4.c81 struct snd_ctl_elem_value *ucontrol) mx27vis_amp_set()
85 int value = ucontrol->value.integer.value[0]; mx27vis_amp_set()
108 struct snd_ctl_elem_value *ucontrol) mx27vis_amp_get()
116 ucontrol->value.integer.value[0] = mx27vis_amp_gain; mx27vis_amp_get()
119 ucontrol->value.integer.value[0] = mx27vis_amp_mute; mx27vis_amp_get()
80 mx27vis_amp_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mx27vis_amp_set() argument
107 mx27vis_amp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mx27vis_amp_get() argument
H A Dfsl_spdif.c660 struct snd_ctl_elem_value *ucontrol) fsl_spdif_capture_get()
672 ucontrol->value.iec958.status[0] = (cstatus >> 16) & 0xFF; fsl_spdif_capture_get()
673 ucontrol->value.iec958.status[1] = (cstatus >> 8) & 0xFF; fsl_spdif_capture_get()
674 ucontrol->value.iec958.status[2] = cstatus & 0xFF; fsl_spdif_capture_get()
677 ucontrol->value.iec958.status[3] = (cstatus >> 16) & 0xFF; fsl_spdif_capture_get()
678 ucontrol->value.iec958.status[4] = (cstatus >> 8) & 0xFF; fsl_spdif_capture_get()
679 ucontrol->value.iec958.status[5] = cstatus & 0xFF; fsl_spdif_capture_get()
692 struct snd_ctl_elem_value *ucontrol) fsl_spdif_subcode_get()
703 memcpy(&ucontrol->value.iec958.subcode[0], fsl_spdif_subcode_get()
724 struct snd_ctl_elem_value *ucontrol) fsl_spdif_qget()
735 memcpy(&ucontrol->value.bytes.data[0], fsl_spdif_qget()
758 struct snd_ctl_elem_value *ucontrol) fsl_spdif_vbit_get()
766 ucontrol->value.integer.value[0] = (val & INT_VAL_NOGOOD) != 0; fsl_spdif_vbit_get()
825 struct snd_ctl_elem_value *ucontrol) fsl_spdif_rxrate_get()
834 ucontrol->value.integer.value[0] = rate; fsl_spdif_rxrate_get()
857 struct snd_ctl_elem_value *ucontrol) fsl_spdif_usync_get()
865 ucontrol->value.integer.value[0] = (val & SRCD_CD_USER) != 0; fsl_spdif_usync_get()
876 struct snd_ctl_elem_value *ucontrol) fsl_spdif_usync_put()
881 u32 val = ucontrol->value.integer.value[0] << SRCD_CD_USER_OFFSET; fsl_spdif_usync_put()
659 fsl_spdif_capture_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_capture_get() argument
691 fsl_spdif_subcode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_subcode_get() argument
723 fsl_spdif_qget(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_qget() argument
757 fsl_spdif_vbit_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_vbit_get() argument
824 fsl_spdif_rxrate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_rxrate_get() argument
856 fsl_spdif_usync_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_usync_get() argument
875 fsl_spdif_usync_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) fsl_spdif_usync_put() argument
/linux-4.1.27/sound/usb/line6/
H A Dpcm.c35 struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_volume_get()
39 ucontrol->value.integer.value[0] = line6pcm->impulse_volume; snd_line6_impulse_volume_get()
44 struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_volume_put()
47 int value = ucontrol->value.integer.value[0]; snd_line6_impulse_volume_put()
79 struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_period_get()
83 ucontrol->value.integer.value[0] = line6pcm->impulse_period; snd_line6_impulse_period_get()
88 struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_period_put()
91 int value = ucontrol->value.integer.value[0]; snd_line6_impulse_period_put()
379 struct snd_ctl_elem_value *ucontrol) snd_line6_control_playback_get()
385 ucontrol->value.integer.value[i] = line6pcm->volume_playback[i]; snd_line6_control_playback_get()
392 struct snd_ctl_elem_value *ucontrol) snd_line6_control_playback_put()
399 ucontrol->value.integer.value[i]) { snd_line6_control_playback_put()
401 ucontrol->value.integer.value[i]; snd_line6_control_playback_put()
34 snd_line6_impulse_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_volume_get() argument
43 snd_line6_impulse_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_volume_put() argument
78 snd_line6_impulse_period_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_period_get() argument
87 snd_line6_impulse_period_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_impulse_period_put() argument
378 snd_line6_control_playback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_control_playback_get() argument
391 snd_line6_control_playback_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_line6_control_playback_put() argument
H A Dtoneport.c159 struct snd_ctl_elem_value *ucontrol) snd_toneport_monitor_get()
163 ucontrol->value.integer.value[0] = line6pcm->volume_monitor; snd_toneport_monitor_get()
169 struct snd_ctl_elem_value *ucontrol) snd_toneport_monitor_put()
174 if (ucontrol->value.integer.value[0] == line6pcm->volume_monitor) snd_toneport_monitor_put()
177 line6pcm->volume_monitor = ucontrol->value.integer.value[0]; snd_toneport_monitor_put()
214 struct snd_ctl_elem_value *ucontrol) snd_toneport_source_get()
219 ucontrol->value.enumerated.item[0] = toneport->source; snd_toneport_source_get()
225 struct snd_ctl_elem_value *ucontrol) snd_toneport_source_put()
232 source = ucontrol->value.enumerated.item[0]; snd_toneport_source_put()
158 snd_toneport_monitor_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_toneport_monitor_get() argument
168 snd_toneport_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_toneport_monitor_put() argument
213 snd_toneport_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_toneport_source_get() argument
224 snd_toneport_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_toneport_source_put() argument
H A Dpod.c358 struct snd_ctl_elem_value *ucontrol) snd_pod_control_monitor_get()
363 ucontrol->value.integer.value[0] = pod->monitor_level; snd_pod_control_monitor_get()
369 struct snd_ctl_elem_value *ucontrol) snd_pod_control_monitor_put()
374 if (ucontrol->value.integer.value[0] == pod->monitor_level) snd_pod_control_monitor_put()
377 pod->monitor_level = ucontrol->value.integer.value[0]; snd_pod_control_monitor_put()
378 pod_set_system_param_int(pod, ucontrol->value.integer.value[0], snd_pod_control_monitor_put()
357 snd_pod_control_monitor_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pod_control_monitor_get() argument
368 snd_pod_control_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_pod_control_monitor_put() argument
/linux-4.1.27/sound/pci/rme9652/
H A Dhdsp.c1590 static int snd_hdsp_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_control_spdif_get() argument
1594 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif); snd_hdsp_control_spdif_get()
1598 static int snd_hdsp_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_control_spdif_put() argument
1604 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); snd_hdsp_control_spdif_put()
1619 static int snd_hdsp_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_control_spdif_stream_get() argument
1623 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif_stream); snd_hdsp_control_spdif_stream_get()
1627 static int snd_hdsp_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_control_spdif_stream_put() argument
1633 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); snd_hdsp_control_spdif_stream_put()
1650 static int snd_hdsp_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_control_spdif_mask_get() argument
1652 ucontrol->value.iec958.status[0] = kcontrol->private_value; snd_hdsp_control_spdif_mask_get()
1688 static int snd_hdsp_get_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_spdif_in() argument
1692 ucontrol->value.enumerated.item[0] = hdsp_spdif_in(hdsp); snd_hdsp_get_spdif_in()
1696 static int snd_hdsp_put_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_spdif_in() argument
1704 val = ucontrol->value.enumerated.item[0] % ((hdsp->io_type == H9632) ? 4 : 3); snd_hdsp_put_spdif_in()
1741 struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_toggle_setting()
1747 ucontrol->value.integer.value[0] = hdsp_toggle_setting(hdsp, regmask); snd_hdsp_get_toggle_setting()
1753 struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_toggle_setting()
1762 val = ucontrol->value.integer.value[0] & 1; snd_hdsp_put_toggle_setting()
1792 static int snd_hdsp_get_spdif_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_spdif_sample_rate() argument
1798 ucontrol->value.enumerated.item[0] = 0; snd_hdsp_get_spdif_sample_rate()
1801 ucontrol->value.enumerated.item[0] = 1; snd_hdsp_get_spdif_sample_rate()
1804 ucontrol->value.enumerated.item[0] = 2; snd_hdsp_get_spdif_sample_rate()
1807 ucontrol->value.enumerated.item[0] = 3; snd_hdsp_get_spdif_sample_rate()
1810 ucontrol->value.enumerated.item[0] = 4; snd_hdsp_get_spdif_sample_rate()
1813 ucontrol->value.enumerated.item[0] = 5; snd_hdsp_get_spdif_sample_rate()
1816 ucontrol->value.enumerated.item[0] = 7; snd_hdsp_get_spdif_sample_rate()
1819 ucontrol->value.enumerated.item[0] = 8; snd_hdsp_get_spdif_sample_rate()
1822 ucontrol->value.enumerated.item[0] = 9; snd_hdsp_get_spdif_sample_rate()
1825 ucontrol->value.enumerated.item[0] = 6; snd_hdsp_get_spdif_sample_rate()
1846 static int snd_hdsp_get_system_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_system_sample_rate() argument
1850 ucontrol->value.enumerated.item[0] = hdsp->system_sample_rate; snd_hdsp_get_system_sample_rate()
1875 static int snd_hdsp_get_autosync_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_autosync_sample_rate() argument
1881 ucontrol->value.enumerated.item[0] = 0; snd_hdsp_get_autosync_sample_rate()
1884 ucontrol->value.enumerated.item[0] = 1; snd_hdsp_get_autosync_sample_rate()
1887 ucontrol->value.enumerated.item[0] = 2; snd_hdsp_get_autosync_sample_rate()
1890 ucontrol->value.enumerated.item[0] = 3; snd_hdsp_get_autosync_sample_rate()
1893 ucontrol->value.enumerated.item[0] = 4; snd_hdsp_get_autosync_sample_rate()
1896 ucontrol->value.enumerated.item[0] = 5; snd_hdsp_get_autosync_sample_rate()
1899 ucontrol->value.enumerated.item[0] = 7; snd_hdsp_get_autosync_sample_rate()
1902 ucontrol->value.enumerated.item[0] = 8; snd_hdsp_get_autosync_sample_rate()
1905 ucontrol->value.enumerated.item[0] = 9; snd_hdsp_get_autosync_sample_rate()
1908 ucontrol->value.enumerated.item[0] = 6; snd_hdsp_get_autosync_sample_rate()
1938 static int snd_hdsp_get_system_clock_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_system_clock_mode() argument
1942 ucontrol->value.enumerated.item[0] = hdsp_system_clock_mode(hdsp); snd_hdsp_get_system_clock_mode()
2048 static int snd_hdsp_get_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_clock_source() argument
2052 ucontrol->value.enumerated.item[0] = hdsp_clock_source(hdsp); snd_hdsp_get_clock_source()
2056 static int snd_hdsp_put_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_clock_source() argument
2064 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_clock_source()
2084 static int snd_hdsp_get_clock_source_lock(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_clock_source_lock() argument
2088 ucontrol->value.integer.value[0] = hdsp->clock_source_locked; snd_hdsp_get_clock_source_lock()
2092 static int snd_hdsp_put_clock_source_lock(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_clock_source_lock() argument
2097 change = (int)ucontrol->value.integer.value[0] != hdsp->clock_source_locked; snd_hdsp_put_clock_source_lock()
2099 hdsp->clock_source_locked = !!ucontrol->value.integer.value[0]; snd_hdsp_put_clock_source_lock()
2154 static int snd_hdsp_get_da_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_da_gain() argument
2158 ucontrol->value.enumerated.item[0] = hdsp_da_gain(hdsp); snd_hdsp_get_da_gain()
2162 static int snd_hdsp_put_da_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_da_gain() argument
2170 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_da_gain()
2233 static int snd_hdsp_get_ad_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_ad_gain() argument
2237 ucontrol->value.enumerated.item[0] = hdsp_ad_gain(hdsp); snd_hdsp_get_ad_gain()
2241 static int snd_hdsp_put_ad_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_ad_gain() argument
2249 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_ad_gain()
2312 static int snd_hdsp_get_phone_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_phone_gain() argument
2316 ucontrol->value.enumerated.item[0] = hdsp_phone_gain(hdsp); snd_hdsp_get_phone_gain()
2320 static int snd_hdsp_put_phone_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_phone_gain() argument
2328 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_phone_gain()
2429 static int snd_hdsp_get_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_pref_sync_ref() argument
2433 ucontrol->value.enumerated.item[0] = hdsp_pref_sync_ref(hdsp); snd_hdsp_get_pref_sync_ref()
2437 static int snd_hdsp_put_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_pref_sync_ref() argument
2461 val = ucontrol->value.enumerated.item[0] % max; snd_hdsp_put_pref_sync_ref()
2513 static int snd_hdsp_get_autosync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_autosync_ref() argument
2517 ucontrol->value.enumerated.item[0] = hdsp_autosync_ref(hdsp); snd_hdsp_get_autosync_ref()
2541 static int snd_hdsp_get_precise_pointer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_precise_pointer() argument
2546 ucontrol->value.integer.value[0] = hdsp->precise_ptr; snd_hdsp_get_precise_pointer()
2551 static int snd_hdsp_put_precise_pointer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_precise_pointer() argument
2559 val = ucontrol->value.integer.value[0] & 1; snd_hdsp_put_precise_pointer()
2587 static int snd_hdsp_get_use_midi_tasklet(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_use_midi_tasklet() argument
2592 ucontrol->value.integer.value[0] = hdsp->use_midi_tasklet; snd_hdsp_get_use_midi_tasklet()
2597 static int snd_hdsp_put_use_midi_tasklet(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_use_midi_tasklet() argument
2605 val = ucontrol->value.integer.value[0] & 1; snd_hdsp_put_use_midi_tasklet()
2635 static int snd_hdsp_get_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_mixer() argument
2642 source = ucontrol->value.integer.value[0]; snd_hdsp_get_mixer()
2643 destination = ucontrol->value.integer.value[1]; snd_hdsp_get_mixer()
2651 ucontrol->value.integer.value[2] = hdsp_read_gain (hdsp, addr); snd_hdsp_get_mixer()
2656 static int snd_hdsp_put_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_mixer() argument
2668 source = ucontrol->value.integer.value[0]; snd_hdsp_put_mixer()
2669 destination = ucontrol->value.integer.value[1]; snd_hdsp_put_mixer()
2676 gain = ucontrol->value.integer.value[2]; snd_hdsp_put_mixer()
2715 static int snd_hdsp_get_wc_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_wc_sync_check() argument
2719 ucontrol->value.enumerated.item[0] = hdsp_wc_sync_check(hdsp); snd_hdsp_get_wc_sync_check()
2746 static int snd_hdsp_get_spdif_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_spdif_sync_check() argument
2750 ucontrol->value.enumerated.item[0] = hdsp_spdif_sync_check(hdsp); snd_hdsp_get_spdif_sync_check()
2775 static int snd_hdsp_get_adatsync_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_adatsync_sync_check() argument
2779 ucontrol->value.enumerated.item[0] = hdsp_adatsync_sync_check(hdsp); snd_hdsp_get_adatsync_sync_check()
2803 static int snd_hdsp_get_adat_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_adat_sync_check() argument
2808 offset = ucontrol->id.index - 1; snd_hdsp_get_adat_sync_check()
2826 ucontrol->value.enumerated.item[0] = hdsp_adat_sync_check(hdsp, offset); snd_hdsp_get_adat_sync_check()
2877 static int snd_hdsp_get_dds_offset(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_dds_offset() argument
2881 ucontrol->value.integer.value[0] = hdsp_dds_offset(hdsp); snd_hdsp_get_dds_offset()
2885 static int snd_hdsp_put_dds_offset(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_dds_offset() argument
2893 val = ucontrol->value.integer.value[0]; snd_hdsp_put_dds_offset()
2994 static int snd_hdsp_get_rpm_input12(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_rpm_input12() argument
2998 ucontrol->value.enumerated.item[0] = hdsp_rpm_input12(hdsp); snd_hdsp_get_rpm_input12()
3030 static int snd_hdsp_put_rpm_input12(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_rpm_input12() argument
3038 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_rpm_input12()
3079 static int snd_hdsp_get_rpm_input34(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_rpm_input34() argument
3083 ucontrol->value.enumerated.item[0] = hdsp_rpm_input34(hdsp); snd_hdsp_get_rpm_input34()
3115 static int snd_hdsp_put_rpm_input34(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_rpm_input34() argument
3123 val = ucontrol->value.enumerated.item[0]; snd_hdsp_put_rpm_input34()
3145 static int snd_hdsp_get_rpm_bypass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_rpm_bypass() argument
3149 ucontrol->value.integer.value[0] = hdsp_rpm_bypass(hdsp); snd_hdsp_get_rpm_bypass()
3165 static int snd_hdsp_put_rpm_bypass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_rpm_bypass() argument
3173 val = ucontrol->value.integer.value[0] & 1; snd_hdsp_put_rpm_bypass()
3197 static int snd_hdsp_get_rpm_disconnect(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_rpm_disconnect() argument
3201 ucontrol->value.integer.value[0] = hdsp_rpm_disconnect(hdsp); snd_hdsp_get_rpm_disconnect()
3217 static int snd_hdsp_put_rpm_disconnect(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_rpm_disconnect() argument
3225 val = ucontrol->value.integer.value[0] & 1; snd_hdsp_put_rpm_disconnect()
1740 snd_hdsp_get_toggle_setting(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_get_toggle_setting() argument
1752 snd_hdsp_put_toggle_setting(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdsp_put_toggle_setting() argument
H A Dhdspm.c2255 ucontrol) snd_hdspm_get_system_sample_rate()
2259 ucontrol->value.integer.value[0] = hdspm_get_system_sample_rate(hdspm); snd_hdspm_get_system_sample_rate()
2265 ucontrol) snd_hdspm_put_system_sample_rate()
2268 int rate = ucontrol->value.integer.value[0]; snd_hdspm_put_system_sample_rate()
2272 hdspm_set_dds_value(hdspm, ucontrol->value.integer.value[0]); snd_hdspm_put_system_sample_rate()
2419 ucontrol) snd_hdspm_get_autosync_sample_rate()
2427 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2431 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2435 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2439 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2448 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2452 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2456 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2460 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2470 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2474 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2478 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2482 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2486 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2496 ucontrol->value.enumerated.item[0] = snd_hdspm_get_autosync_sample_rate()
2563 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_system_clock_mode()
2567 ucontrol->value.enumerated.item[0] = hdspm_system_clock_mode(hdspm); snd_hdspm_get_system_clock_mode()
2572 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_system_clock_mode()
2580 val = ucontrol->value.enumerated.item[0]; snd_hdspm_put_system_clock_mode()
2655 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_clock_source()
2659 ucontrol->value.enumerated.item[0] = hdspm_clock_source(hdspm); snd_hdspm_get_clock_source()
2664 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_clock_source()
2672 val = ucontrol->value.enumerated.item[0]; snd_hdspm_put_clock_source()
2976 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_pref_sync_ref()
2982 ucontrol->value.enumerated.item[0] = psf; snd_hdspm_get_pref_sync_ref()
2990 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_pref_sync_ref()
2998 val = ucontrol->value.enumerated.item[0]; snd_hdspm_put_pref_sync_ref()
3079 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_autosync_ref()
3083 ucontrol->value.enumerated.item[0] = hdspm_autosync_ref(hdspm); snd_hdspm_get_autosync_ref()
3107 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_video_input_format()
3129 ucontrol->value.enumerated.item[0] = ret; snd_hdspm_get_tco_video_input_format()
3185 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_ltc_frames()
3189 ucontrol->value.enumerated.item[0] = hdspm_tco_ltc_frames(hdspm); snd_hdspm_get_tco_ltc_frames()
3240 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_toggle_setting()
3246 ucontrol->value.integer.value[0] = hdspm_toggle_setting(hdspm, regmask); snd_hdspm_get_toggle_setting()
3252 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_toggle_setting()
3261 val = ucontrol->value.integer.value[0] & 1; snd_hdspm_put_toggle_setting()
3303 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_input_select()
3308 ucontrol->value.enumerated.item[0] = hdspm_input_select(hdspm); snd_hdspm_get_input_select()
3314 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_input_select()
3322 val = ucontrol->value.integer.value[0] & 1; snd_hdspm_put_input_select()
3365 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_ds_wire()
3370 ucontrol->value.enumerated.item[0] = hdspm_ds_wire(hdspm); snd_hdspm_get_ds_wire()
3376 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_ds_wire()
3384 val = ucontrol->value.integer.value[0] & 1; snd_hdspm_put_ds_wire()
3438 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_qs_wire()
3443 ucontrol->value.enumerated.item[0] = hdspm_qs_wire(hdspm); snd_hdspm_get_qs_wire()
3449 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_qs_wire()
3457 val = ucontrol->value.integer.value[0]; snd_hdspm_put_qs_wire()
3513 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tristate()
3519 ucontrol->value.enumerated.item[0] = hdspm_tristate(hdspm, regmask); snd_hdspm_get_tristate()
3525 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tristate()
3534 val = ucontrol->value.integer.value[0]; snd_hdspm_put_tristate()
3592 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_madi_speedmode()
3597 ucontrol->value.enumerated.item[0] = hdspm_madi_speedmode(hdspm); snd_hdspm_get_madi_speedmode()
3603 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_madi_speedmode()
3611 val = ucontrol->value.integer.value[0]; snd_hdspm_put_madi_speedmode()
3647 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_mixer()
3653 source = ucontrol->value.integer.value[0]; snd_hdspm_get_mixer()
3659 destination = ucontrol->value.integer.value[1]; snd_hdspm_get_mixer()
3667 ucontrol->value.integer.value[2] = snd_hdspm_get_mixer()
3671 ucontrol->value.integer.value[2] = snd_hdspm_get_mixer()
3680 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_mixer()
3691 source = ucontrol->value.integer.value[0]; snd_hdspm_put_mixer()
3692 destination = ucontrol->value.integer.value[1]; snd_hdspm_put_mixer()
3699 gain = ucontrol->value.integer.value[2]; snd_hdspm_put_mixer()
3751 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_playback_mixer()
3756 channel = ucontrol->id.index - 1; snd_hdspm_get_playback_mixer()
3762 ucontrol->value.integer.value[0] = snd_hdspm_get_playback_mixer()
3770 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_playback_mixer()
3780 channel = ucontrol->id.index - 1; snd_hdspm_put_playback_mixer()
3785 gain = ucontrol->value.integer.value[0]*UNITY_GAIN/64; snd_hdspm_put_playback_mixer()
4016 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_sync_check()
4102 ucontrol->value.enumerated.item[0] = val; snd_hdspm_get_sync_check()
4221 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_sample_rate()
4225 ucontrol->value.enumerated.item[0] = hdspm->tco->samplerate; snd_hdspm_get_tco_sample_rate()
4231 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_sample_rate()
4235 if (hdspm->tco->samplerate != ucontrol->value.enumerated.item[0]) { snd_hdspm_put_tco_sample_rate()
4236 hdspm->tco->samplerate = ucontrol->value.enumerated.item[0]; snd_hdspm_put_tco_sample_rate()
4268 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_pull()
4272 ucontrol->value.enumerated.item[0] = hdspm->tco->pull; snd_hdspm_get_tco_pull()
4278 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_pull()
4282 if (hdspm->tco->pull != ucontrol->value.enumerated.item[0]) { snd_hdspm_put_tco_pull()
4283 hdspm->tco->pull = ucontrol->value.enumerated.item[0]; snd_hdspm_put_tco_pull()
4313 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_wck_conversion()
4317 ucontrol->value.enumerated.item[0] = hdspm->tco->wordclock; snd_hdspm_get_tco_wck_conversion()
4323 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_wck_conversion()
4327 if (hdspm->tco->wordclock != ucontrol->value.enumerated.item[0]) { snd_hdspm_put_tco_wck_conversion()
4328 hdspm->tco->wordclock = ucontrol->value.enumerated.item[0]; snd_hdspm_put_tco_wck_conversion()
4360 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_frame_rate()
4364 ucontrol->value.enumerated.item[0] = hdspm->tco->framerate; snd_hdspm_get_tco_frame_rate()
4370 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_frame_rate()
4374 if (hdspm->tco->framerate != ucontrol->value.enumerated.item[0]) { snd_hdspm_put_tco_frame_rate()
4375 hdspm->tco->framerate = ucontrol->value.enumerated.item[0]; snd_hdspm_put_tco_frame_rate()
4406 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_sync_source()
4410 ucontrol->value.enumerated.item[0] = hdspm->tco->input; snd_hdspm_get_tco_sync_source()
4416 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_sync_source()
4420 if (hdspm->tco->input != ucontrol->value.enumerated.item[0]) { snd_hdspm_put_tco_sync_source()
4421 hdspm->tco->input = ucontrol->value.enumerated.item[0]; snd_hdspm_put_tco_sync_source()
4456 struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_word_term()
4460 ucontrol->value.integer.value[0] = hdspm->tco->term; snd_hdspm_get_tco_word_term()
4467 struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_word_term()
4471 if (hdspm->tco->term != ucontrol->value.integer.value[0]) { snd_hdspm_put_tco_word_term()
4472 hdspm->tco->term = ucontrol->value.integer.value[0]; snd_hdspm_put_tco_word_term()
2253 snd_hdspm_get_system_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_hdspm_get_system_sample_rate() argument
2263 snd_hdspm_put_system_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_hdspm_put_system_sample_rate() argument
2417 snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value * ucontrol) snd_hdspm_get_autosync_sample_rate() argument
2562 snd_hdspm_get_system_clock_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_system_clock_mode() argument
2571 snd_hdspm_put_system_clock_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_system_clock_mode() argument
2654 snd_hdspm_get_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_clock_source() argument
2663 snd_hdspm_put_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_clock_source() argument
2975 snd_hdspm_get_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_pref_sync_ref() argument
2989 snd_hdspm_put_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_pref_sync_ref() argument
3078 snd_hdspm_get_autosync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_autosync_ref() argument
3106 snd_hdspm_get_tco_video_input_format(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_video_input_format() argument
3184 snd_hdspm_get_tco_ltc_frames(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_ltc_frames() argument
3239 snd_hdspm_get_toggle_setting(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_toggle_setting() argument
3251 snd_hdspm_put_toggle_setting(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_toggle_setting() argument
3302 snd_hdspm_get_input_select(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_input_select() argument
3313 snd_hdspm_put_input_select(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_input_select() argument
3364 snd_hdspm_get_ds_wire(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_ds_wire() argument
3375 snd_hdspm_put_ds_wire(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_ds_wire() argument
3437 snd_hdspm_get_qs_wire(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_qs_wire() argument
3448 snd_hdspm_put_qs_wire(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_qs_wire() argument
3512 snd_hdspm_get_tristate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tristate() argument
3524 snd_hdspm_put_tristate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tristate() argument
3591 snd_hdspm_get_madi_speedmode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_madi_speedmode() argument
3602 snd_hdspm_put_madi_speedmode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_madi_speedmode() argument
3646 snd_hdspm_get_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_mixer() argument
3679 snd_hdspm_put_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_mixer() argument
3750 snd_hdspm_get_playback_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_playback_mixer() argument
3769 snd_hdspm_put_playback_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_playback_mixer() argument
4015 snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_sync_check() argument
4220 snd_hdspm_get_tco_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_sample_rate() argument
4230 snd_hdspm_put_tco_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_sample_rate() argument
4267 snd_hdspm_get_tco_pull(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_pull() argument
4277 snd_hdspm_put_tco_pull(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_pull() argument
4312 snd_hdspm_get_tco_wck_conversion(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_wck_conversion() argument
4322 snd_hdspm_put_tco_wck_conversion(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_wck_conversion() argument
4359 snd_hdspm_get_tco_frame_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_frame_rate() argument
4369 snd_hdspm_put_tco_frame_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_frame_rate() argument
4405 snd_hdspm_get_tco_sync_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_sync_source() argument
4415 snd_hdspm_put_tco_sync_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_sync_source() argument
4455 snd_hdspm_get_tco_word_term(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_get_tco_word_term() argument
4466 snd_hdspm_put_tco_word_term(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_hdspm_put_tco_word_term() argument
H A Drme9652.c817 static int snd_rme9652_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_control_spdif_get() argument
821 snd_rme9652_convert_to_aes(&ucontrol->value.iec958, rme9652->creg_spdif); snd_rme9652_control_spdif_get()
825 static int snd_rme9652_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_control_spdif_put() argument
831 val = snd_rme9652_convert_from_aes(&ucontrol->value.iec958); snd_rme9652_control_spdif_put()
846 static int snd_rme9652_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_control_spdif_stream_get() argument
850 snd_rme9652_convert_to_aes(&ucontrol->value.iec958, rme9652->creg_spdif_stream); snd_rme9652_control_spdif_stream_get()
854 static int snd_rme9652_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_control_spdif_stream_put() argument
860 val = snd_rme9652_convert_from_aes(&ucontrol->value.iec958); snd_rme9652_control_spdif_stream_put()
877 static int snd_rme9652_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_control_spdif_mask_get() argument
879 ucontrol->value.iec958.status[0] = kcontrol->private_value; snd_rme9652_control_spdif_mask_get()
928 static int snd_rme9652_get_adat1_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_adat1_in() argument
933 ucontrol->value.enumerated.item[0] = rme9652_adat1_in(rme9652); snd_rme9652_get_adat1_in()
938 static int snd_rme9652_put_adat1_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_adat1_in() argument
946 val = ucontrol->value.enumerated.item[0] % 2; snd_rme9652_put_adat1_in()
993 static int snd_rme9652_get_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_spdif_in() argument
998 ucontrol->value.enumerated.item[0] = rme9652_spdif_in(rme9652); snd_rme9652_get_spdif_in()
1003 static int snd_rme9652_put_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_spdif_in() argument
1011 val = ucontrol->value.enumerated.item[0] % 3; snd_rme9652_put_spdif_in()
1055 static int snd_rme9652_get_spdif_out(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_spdif_out() argument
1060 ucontrol->value.integer.value[0] = rme9652_spdif_out(rme9652); snd_rme9652_get_spdif_out()
1065 static int snd_rme9652_put_spdif_out(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_spdif_out() argument
1073 val = ucontrol->value.integer.value[0] & 1; snd_rme9652_put_spdif_out()
1138 static int snd_rme9652_get_sync_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_sync_mode() argument
1143 ucontrol->value.enumerated.item[0] = rme9652_sync_mode(rme9652); snd_rme9652_get_sync_mode()
1148 static int snd_rme9652_put_sync_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_sync_mode() argument
1154 val = ucontrol->value.enumerated.item[0] % 3; snd_rme9652_put_sync_mode()
1228 static int snd_rme9652_get_sync_pref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_sync_pref() argument
1233 ucontrol->value.enumerated.item[0] = rme9652_sync_pref(rme9652); snd_rme9652_get_sync_pref()
1238 static int snd_rme9652_put_sync_pref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_sync_pref() argument
1247 val = ucontrol->value.enumerated.item[0] % max; snd_rme9652_put_sync_pref()
1265 static int snd_rme9652_get_thru(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_thru() argument
1272 ucontrol->value.integer.value[k] = !!(thru_bits & (1 << k)); snd_rme9652_get_thru()
1277 static int snd_rme9652_put_thru(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_thru() argument
1288 if (ucontrol->value.integer.value[chn]) snd_rme9652_put_thru()
1313 static int snd_rme9652_get_passthru(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_passthru() argument
1318 ucontrol->value.integer.value[0] = rme9652->passthru; snd_rme9652_get_passthru()
1323 static int snd_rme9652_put_passthru(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_put_passthru() argument
1333 val = ucontrol->value.integer.value[0] & 1; snd_rme9652_put_passthru()
1335 change = (ucontrol->value.integer.value[0] != rme9652->passthru); snd_rme9652_put_passthru()
1359 static int snd_rme9652_get_spdif_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_spdif_rate() argument
1364 ucontrol->value.integer.value[0] = rme9652_spdif_sample_rate(rme9652); snd_rme9652_get_spdif_rate()
1384 static int snd_rme9652_get_adat_sync(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_adat_sync() argument
1396 ucontrol->value.enumerated.item[0] = (val & mask1) ? 1 : 0; snd_rme9652_get_adat_sync()
1397 ucontrol->value.enumerated.item[0] |= (val & mask2) ? 2 : 0; snd_rme9652_get_adat_sync()
1409 static int snd_rme9652_get_tc_valid(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_rme9652_get_tc_valid() argument
1413 ucontrol->value.integer.value[0] = snd_rme9652_get_tc_valid()
/linux-4.1.27/sound/pci/cs46xx/
H A Dcs46xx_lib.c1912 static int snd_cs46xx_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_vol_get() argument
1917 ucontrol->value.integer.value[0] = 0xffff - (val >> 16); snd_cs46xx_vol_get()
1918 ucontrol->value.integer.value[1] = 0xffff - (val & 0xffff); snd_cs46xx_vol_get()
1922 static int snd_cs46xx_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_vol_put() argument
1926 unsigned int val = ((0xffff - ucontrol->value.integer.value[0]) << 16 | snd_cs46xx_vol_put()
1927 (0xffff - ucontrol->value.integer.value[1])); snd_cs46xx_vol_put()
1940 static int snd_cs46xx_vol_dac_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_vol_dac_get() argument
1944 ucontrol->value.integer.value[0] = chip->dsp_spos_instance->dac_volume_left; snd_cs46xx_vol_dac_get()
1945 ucontrol->value.integer.value[1] = chip->dsp_spos_instance->dac_volume_right; snd_cs46xx_vol_dac_get()
1950 static int snd_cs46xx_vol_dac_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_vol_dac_put() argument
1955 if (chip->dsp_spos_instance->dac_volume_right != ucontrol->value.integer.value[0] || snd_cs46xx_vol_dac_put()
1956 chip->dsp_spos_instance->dac_volume_left != ucontrol->value.integer.value[1]) { snd_cs46xx_vol_dac_put()
1958 ucontrol->value.integer.value[0], snd_cs46xx_vol_dac_put()
1959 ucontrol->value.integer.value[1]); snd_cs46xx_vol_dac_put()
1967 static int snd_cs46xx_vol_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1971 ucontrol->value.integer.value[0] = chip->dsp_spos_instance->spdif_input_volume_left;
1972 ucontrol->value.integer.value[1] = chip->dsp_spos_instance->spdif_input_volume_right;
1976 static int snd_cs46xx_vol_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
1981 if (chip->dsp_spos_instance->spdif_input_volume_left != ucontrol->value.integer.value[0] ||
1982 chip->dsp_spos_instance->spdif_input_volume_right!= ucontrol->value.integer.value[1]) {
1984 ucontrol->value.integer.value[0],
1985 ucontrol->value.integer.value[1]);
1996 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_iec958_get()
2002 ucontrol->value.integer.value[0] = (chip->dsp_spos_instance->spdif_status_out & DSP_SPDIF_STATUS_OUTPUT_ENABLED); snd_cs46xx_iec958_get()
2004 ucontrol->value.integer.value[0] = chip->dsp_spos_instance->spdif_status_in; snd_cs46xx_iec958_get()
2010 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_iec958_put()
2019 if (ucontrol->value.integer.value[0] && !change) snd_cs46xx_iec958_put()
2021 else if (change && !ucontrol->value.integer.value[0]) snd_cs46xx_iec958_put()
2029 if (ucontrol->value.integer.value[0] && !change) { snd_cs46xx_iec958_put()
2033 else if (change && !ucontrol->value.integer.value[0]) snd_cs46xx_iec958_put()
2047 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_adc_capture_get()
2053 ucontrol->value.integer.value[0] = 1; snd_cs46xx_adc_capture_get()
2055 ucontrol->value.integer.value[0] = 0; snd_cs46xx_adc_capture_get()
2061 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_adc_capture_put()
2067 if (ucontrol->value.integer.value[0] && !ins->adc_input) { snd_cs46xx_adc_capture_put()
2070 } else if (!ucontrol->value.integer.value[0] && ins->adc_input) { snd_cs46xx_adc_capture_put()
2078 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_pcm_capture_get()
2084 ucontrol->value.integer.value[0] = 1; snd_cs46xx_pcm_capture_get()
2086 ucontrol->value.integer.value[0] = 0; snd_cs46xx_pcm_capture_get()
2093 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_pcm_capture_put()
2099 if (ucontrol->value.integer.value[0] && !ins->pcm_input) { snd_cs46xx_pcm_capture_put()
2102 } else if (!ucontrol->value.integer.value[0] && ins->pcm_input) { snd_cs46xx_pcm_capture_put()
2111 struct snd_ctl_elem_value *ucontrol) snd_herc_spdif_select_get()
2118 ucontrol->value.integer.value[0] = 1; snd_herc_spdif_select_get()
2120 ucontrol->value.integer.value[0] = 0; snd_herc_spdif_select_get()
2129 struct snd_ctl_elem_value *ucontrol) snd_herc_spdif_select_put()
2135 if (ucontrol->value.integer.value[0]) { snd_herc_spdif_select_put()
2161 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_default_get()
2167 ucontrol->value.iec958.status[0] = _wrap_all_bits((ins->spdif_csuv_default >> 24) & 0xff); snd_cs46xx_spdif_default_get()
2168 ucontrol->value.iec958.status[1] = _wrap_all_bits((ins->spdif_csuv_default >> 16) & 0xff); snd_cs46xx_spdif_default_get()
2169 ucontrol->value.iec958.status[2] = 0; snd_cs46xx_spdif_default_get()
2170 ucontrol->value.iec958.status[3] = _wrap_all_bits((ins->spdif_csuv_default) & 0xff); snd_cs46xx_spdif_default_get()
2177 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_default_put()
2185 val = ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[0]) << 24) | snd_cs46xx_spdif_default_put()
2186 ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[2]) << 16) | snd_cs46xx_spdif_default_put()
2187 ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[3])) | snd_cs46xx_spdif_default_put()
2204 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_mask_get()
2206 ucontrol->value.iec958.status[0] = 0xff; snd_cs46xx_spdif_mask_get()
2207 ucontrol->value.iec958.status[1] = 0xff; snd_cs46xx_spdif_mask_get()
2208 ucontrol->value.iec958.status[2] = 0x00; snd_cs46xx_spdif_mask_get()
2209 ucontrol->value.iec958.status[3] = 0xff; snd_cs46xx_spdif_mask_get()
2214 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_stream_get()
2220 ucontrol->value.iec958.status[0] = _wrap_all_bits((ins->spdif_csuv_stream >> 24) & 0xff); snd_cs46xx_spdif_stream_get()
2221 ucontrol->value.iec958.status[1] = _wrap_all_bits((ins->spdif_csuv_stream >> 16) & 0xff); snd_cs46xx_spdif_stream_get()
2222 ucontrol->value.iec958.status[2] = 0; snd_cs46xx_spdif_stream_get()
2223 ucontrol->value.iec958.status[3] = _wrap_all_bits((ins->spdif_csuv_stream) & 0xff); snd_cs46xx_spdif_stream_get()
2230 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_stream_put()
2238 val = ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[0]) << 24) | snd_cs46xx_spdif_stream_put()
2239 ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[1]) << 16) | snd_cs46xx_spdif_stream_put()
2240 ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[3])) | snd_cs46xx_spdif_stream_put()
2356 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_front_dup_get()
2361 ucontrol->value.integer.value[0] = (val & 0x200) ? 0 : 1; snd_cs46xx_front_dup_get()
2366 struct snd_ctl_elem_value *ucontrol) snd_cs46xx_front_dup_put()
2371 ucontrol->value.integer.value[0] ? 0 : 0x200); snd_cs46xx_front_dup_put()
1995 snd_cs46xx_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_iec958_get() argument
2009 snd_cs46xx_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_iec958_put() argument
2046 snd_cs46xx_adc_capture_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_adc_capture_get() argument
2060 snd_cs46xx_adc_capture_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_adc_capture_put() argument
2077 snd_cs46xx_pcm_capture_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_pcm_capture_get() argument
2092 snd_cs46xx_pcm_capture_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_pcm_capture_put() argument
2110 snd_herc_spdif_select_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_herc_spdif_select_get() argument
2128 snd_herc_spdif_select_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_herc_spdif_select_put() argument
2160 snd_cs46xx_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_default_get() argument
2176 snd_cs46xx_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_default_put() argument
2203 snd_cs46xx_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_mask_get() argument
2213 snd_cs46xx_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_stream_get() argument
2229 snd_cs46xx_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_spdif_stream_put() argument
2355 snd_cs46xx_front_dup_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_front_dup_get() argument
2365 snd_cs46xx_front_dup_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs46xx_front_dup_put() argument
/linux-4.1.27/sound/pci/lola/
H A Dlola_mixer.c526 struct snd_ctl_elem_value *ucontrol) lola_analog_vol_get()
533 ucontrol->value.integer.value[i] = lola_analog_vol_get()
539 struct snd_ctl_elem_value *ucontrol) lola_analog_vol_put()
547 ucontrol->value.integer.value[i], lola_analog_vol_put()
623 struct snd_ctl_elem_value *ucontrol) lola_input_src_get()
629 ucontrol->value.integer.value[i] = lola_input_src_get()
635 struct snd_ctl_elem_value *ucontrol) lola_input_src_put()
643 if (ucontrol->value.integer.value[i]) lola_input_src_put()
685 struct snd_ctl_elem_value *ucontrol) lola_src_gain_get()
702 ucontrol->value.integer.value[i] = val; lola_src_gain_get()
708 struct snd_ctl_elem_value *ucontrol) lola_src_gain_put()
717 unsigned short val = ucontrol->value.integer.value[i]; lola_src_gain_put()
766 struct snd_ctl_elem_value *ucontrol)
774 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
785 ucontrol->value.integer.value[i] = val;
791 struct snd_ctl_elem_value *ucontrol)
804 unsigned short val = ucontrol->value.integer.value[i];
811 dst = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + dst_ofs;
525 lola_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_analog_vol_get() argument
538 lola_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_analog_vol_put() argument
622 lola_input_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_input_src_get() argument
634 lola_input_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_input_src_put() argument
684 lola_src_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_src_gain_get() argument
707 lola_src_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lola_src_gain_put() argument
/linux-4.1.27/sound/pci/trident/
H A Dtrident_main.c2316 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_control_get()
2323 ucontrol->value.integer.value[0] = val == kcontrol->private_value; snd_trident_spdif_control_get()
2329 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_control_put()
2335 val = ucontrol->value.integer.value[0] ? (unsigned char) kcontrol->private_value : 0x00; snd_trident_spdif_control_put()
2384 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_default_get()
2389 ucontrol->value.iec958.status[0] = (trident->spdif_bits >> 0) & 0xff; snd_trident_spdif_default_get()
2390 ucontrol->value.iec958.status[1] = (trident->spdif_bits >> 8) & 0xff; snd_trident_spdif_default_get()
2391 ucontrol->value.iec958.status[2] = (trident->spdif_bits >> 16) & 0xff; snd_trident_spdif_default_get()
2392 ucontrol->value.iec958.status[3] = (trident->spdif_bits >> 24) & 0xff; snd_trident_spdif_default_get()
2398 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_default_put()
2404 val = (ucontrol->value.iec958.status[0] << 0) | snd_trident_spdif_default_put()
2405 (ucontrol->value.iec958.status[1] << 8) | snd_trident_spdif_default_put()
2406 (ucontrol->value.iec958.status[2] << 16) | snd_trident_spdif_default_put()
2407 (ucontrol->value.iec958.status[3] << 24); snd_trident_spdif_default_put()
2446 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_mask_get()
2448 ucontrol->value.iec958.status[0] = 0xff; snd_trident_spdif_mask_get()
2449 ucontrol->value.iec958.status[1] = 0xff; snd_trident_spdif_mask_get()
2450 ucontrol->value.iec958.status[2] = 0xff; snd_trident_spdif_mask_get()
2451 ucontrol->value.iec958.status[3] = 0xff; snd_trident_spdif_mask_get()
2479 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_stream_get()
2484 ucontrol->value.iec958.status[0] = (trident->spdif_pcm_bits >> 0) & 0xff; snd_trident_spdif_stream_get()
2485 ucontrol->value.iec958.status[1] = (trident->spdif_pcm_bits >> 8) & 0xff; snd_trident_spdif_stream_get()
2486 ucontrol->value.iec958.status[2] = (trident->spdif_pcm_bits >> 16) & 0xff; snd_trident_spdif_stream_get()
2487 ucontrol->value.iec958.status[3] = (trident->spdif_pcm_bits >> 24) & 0xff; snd_trident_spdif_stream_get()
2493 struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_stream_put()
2499 val = (ucontrol->value.iec958.status[0] << 0) | snd_trident_spdif_stream_put()
2500 (ucontrol->value.iec958.status[1] << 8) | snd_trident_spdif_stream_put()
2501 (ucontrol->value.iec958.status[2] << 16) | snd_trident_spdif_stream_put()
2502 (ucontrol->value.iec958.status[3] << 24); snd_trident_spdif_stream_put()
2536 struct snd_ctl_elem_value *ucontrol) snd_trident_ac97_control_get()
2543 ucontrol->value.integer.value[0] = (val & (1 << kcontrol->private_value)) ? 1 : 0; snd_trident_ac97_control_get()
2549 struct snd_ctl_elem_value *ucontrol) snd_trident_ac97_control_put()
2558 if (ucontrol->value.integer.value[0]) snd_trident_ac97_control_put()
2594 struct snd_ctl_elem_value *ucontrol) snd_trident_vol_control_get()
2600 ucontrol->value.integer.value[0] = 255 - ((val >> kcontrol->private_value) & 0xff); snd_trident_vol_control_get()
2601 ucontrol->value.integer.value[1] = 255 - ((val >> (kcontrol->private_value + 8)) & 0xff); snd_trident_vol_control_get()
2608 struct snd_ctl_elem_value *ucontrol) snd_trident_vol_control_put()
2617 val |= ((255 - (ucontrol->value.integer.value[0] & 0xff)) | snd_trident_vol_control_put()
2618 ((255 - (ucontrol->value.integer.value[1] & 0xff)) << 8)) << kcontrol->private_value; snd_trident_vol_control_put()
2668 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_vol_control_get()
2671 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_vol_control_get()
2674 ucontrol->value.integer.value[0] = 1023 - mix->vol; snd_trident_pcm_vol_control_get()
2676 ucontrol->value.integer.value[0] = 255 - (mix->vol>>2); snd_trident_pcm_vol_control_get()
2682 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_vol_control_put()
2685 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_vol_control_put()
2690 val = 1023 - (ucontrol->value.integer.value[0] & 1023); snd_trident_pcm_vol_control_put()
2692 val = (255 - (ucontrol->value.integer.value[0] & 255)) << 2; snd_trident_pcm_vol_control_put()
2732 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_pan_control_get()
2735 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_pan_control_get()
2737 ucontrol->value.integer.value[0] = mix->pan; snd_trident_pcm_pan_control_get()
2738 if (ucontrol->value.integer.value[0] & 0x40) { snd_trident_pcm_pan_control_get()
2739 ucontrol->value.integer.value[0] = (0x3f - (ucontrol->value.integer.value[0] & 0x3f)); snd_trident_pcm_pan_control_get()
2741 ucontrol->value.integer.value[0] |= 0x40; snd_trident_pcm_pan_control_get()
2747 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_pan_control_put()
2750 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_pan_control_put()
2754 if (ucontrol->value.integer.value[0] & 0x40) snd_trident_pcm_pan_control_put()
2755 val = ucontrol->value.integer.value[0] & 0x3f; snd_trident_pcm_pan_control_put()
2757 val = (0x3f - (ucontrol->value.integer.value[0] & 0x3f)) | 0x40; snd_trident_pcm_pan_control_put()
2795 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_rvol_control_get()
2798 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_rvol_control_get()
2800 ucontrol->value.integer.value[0] = 127 - mix->rvol; snd_trident_pcm_rvol_control_get()
2805 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_rvol_control_put()
2808 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_rvol_control_put()
2812 val = 0x7f - (ucontrol->value.integer.value[0] & 0x7f); snd_trident_pcm_rvol_control_put()
2853 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_cvol_control_get()
2856 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_cvol_control_get()
2858 ucontrol->value.integer.value[0] = 127 - mix->cvol; snd_trident_pcm_cvol_control_get()
2863 struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_cvol_control_put()
2866 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->id)]; snd_trident_pcm_cvol_control_put()
2870 val = 0x7f - (ucontrol->value.integer.value[0] & 0x7f); snd_trident_pcm_cvol_control_put()
2315 snd_trident_spdif_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_control_get() argument
2328 snd_trident_spdif_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_control_put() argument
2383 snd_trident_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_default_get() argument
2397 snd_trident_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_default_put() argument
2445 snd_trident_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_mask_get() argument
2478 snd_trident_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_stream_get() argument
2492 snd_trident_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_spdif_stream_put() argument
2535 snd_trident_ac97_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_ac97_control_get() argument
2548 snd_trident_ac97_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_ac97_control_put() argument
2593 snd_trident_vol_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_vol_control_get() argument
2607 snd_trident_vol_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_vol_control_put() argument
2667 snd_trident_pcm_vol_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_vol_control_get() argument
2681 snd_trident_pcm_vol_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_vol_control_put() argument
2731 snd_trident_pcm_pan_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_pan_control_get() argument
2746 snd_trident_pcm_pan_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_pan_control_put() argument
2794 snd_trident_pcm_rvol_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_rvol_control_get() argument
2804 snd_trident_pcm_rvol_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_rvol_control_put() argument
2852 snd_trident_pcm_cvol_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_cvol_control_get() argument
2862 snd_trident_pcm_cvol_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_trident_pcm_cvol_control_put() argument
/linux-4.1.27/sound/pci/ymfpci/
H A Dymfpci_main.c1289 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_default_get()
1294 ucontrol->value.iec958.status[0] = (chip->spdif_bits >> 0) & 0xff; snd_ymfpci_spdif_default_get()
1295 ucontrol->value.iec958.status[1] = (chip->spdif_bits >> 8) & 0xff; snd_ymfpci_spdif_default_get()
1296 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; snd_ymfpci_spdif_default_get()
1302 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_default_put()
1308 val = ((ucontrol->value.iec958.status[0] & 0x3e) << 0) | snd_ymfpci_spdif_default_put()
1309 (ucontrol->value.iec958.status[1] << 8); snd_ymfpci_spdif_default_put()
1336 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_mask_get()
1341 ucontrol->value.iec958.status[0] = 0x3e; snd_ymfpci_spdif_mask_get()
1342 ucontrol->value.iec958.status[1] = 0xff; snd_ymfpci_spdif_mask_get()
1364 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_stream_get()
1369 ucontrol->value.iec958.status[0] = (chip->spdif_pcm_bits >> 0) & 0xff; snd_ymfpci_spdif_stream_get()
1370 ucontrol->value.iec958.status[1] = (chip->spdif_pcm_bits >> 8) & 0xff; snd_ymfpci_spdif_stream_get()
1371 ucontrol->value.iec958.status[3] = IEC958_AES3_CON_FS_48000; snd_ymfpci_spdif_stream_get()
1377 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_stream_put()
1383 val = ((ucontrol->value.iec958.status[0] & 0x3e) << 0) | snd_ymfpci_spdif_stream_put()
1384 (ucontrol->value.iec958.status[1] << 8); snd_ymfpci_spdif_stream_put()
1464 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_get_single()
1476 ucontrol->value.integer.value[0] = snd_ymfpci_get_single()
1482 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_single()
1496 val = (ucontrol->value.integer.value[0] & mask); snd_ymfpci_put_single()
1530 static int snd_ymfpci_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_get_double() argument
1542 ucontrol->value.integer.value[0] = (val >> shift_left) & mask; snd_ymfpci_get_double()
1543 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; snd_ymfpci_get_double()
1547 static int snd_ymfpci_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_double() argument
1557 val1 = ucontrol->value.integer.value[0] & mask; snd_ymfpci_put_double()
1558 val2 = ucontrol->value.integer.value[1] & mask; snd_ymfpci_put_double()
1571 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_nativedacvol()
1579 value = ucontrol->value.integer.value[0] & 0x3fff; snd_ymfpci_put_nativedacvol()
1580 value |= (ucontrol->value.integer.value[1] & 0x3fff) << 16; snd_ymfpci_put_nativedacvol()
1595 static int snd_ymfpci_get_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_get_dup4ch() argument
1598 ucontrol->value.integer.value[0] = chip->mode_dup4ch; snd_ymfpci_get_dup4ch()
1602 static int snd_ymfpci_put_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_dup4ch() argument
1606 change = (ucontrol->value.integer.value[0] != chip->mode_dup4ch); snd_ymfpci_put_dup4ch()
1608 chip->mode_dup4ch = !!ucontrol->value.integer.value[0]; snd_ymfpci_put_dup4ch()
1694 static int snd_ymfpci_gpio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_gpio_sw_get() argument
1698 ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); snd_ymfpci_gpio_sw_get()
1702 static int snd_ymfpci_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_gpio_sw_put() argument
1707 if (snd_ymfpci_get_gpio_out(chip, pin) != ucontrol->value.integer.value[0]) { snd_ymfpci_gpio_sw_put()
1708 snd_ymfpci_set_gpio_out(chip, pin, !!ucontrol->value.integer.value[0]); snd_ymfpci_gpio_sw_put()
1709 ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); snd_ymfpci_gpio_sw_put()
1739 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_pcm_vol_get()
1744 ucontrol->value.integer.value[0] = chip->pcm_mixer[subs].left; snd_ymfpci_pcm_vol_get()
1745 ucontrol->value.integer.value[1] = chip->pcm_mixer[subs].right; snd_ymfpci_pcm_vol_get()
1750 struct snd_ctl_elem_value *ucontrol) snd_ymfpci_pcm_vol_put()
1757 if (ucontrol->value.integer.value[0] != chip->pcm_mixer[subs].left || snd_ymfpci_pcm_vol_put()
1758 ucontrol->value.integer.value[1] != chip->pcm_mixer[subs].right) { snd_ymfpci_pcm_vol_put()
1759 chip->pcm_mixer[subs].left = ucontrol->value.integer.value[0]; snd_ymfpci_pcm_vol_put()
1760 chip->pcm_mixer[subs].right = ucontrol->value.integer.value[1]; snd_ymfpci_pcm_vol_put()
1288 snd_ymfpci_spdif_default_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_default_get() argument
1301 snd_ymfpci_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_default_put() argument
1335 snd_ymfpci_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_mask_get() argument
1363 snd_ymfpci_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_stream_get() argument
1376 snd_ymfpci_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_spdif_stream_put() argument
1463 snd_ymfpci_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_get_single() argument
1481 snd_ymfpci_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_single() argument
1570 snd_ymfpci_put_nativedacvol(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_put_nativedacvol() argument
1738 snd_ymfpci_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_pcm_vol_get() argument
1749 snd_ymfpci_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_ymfpci_pcm_vol_put() argument
/linux-4.1.27/sound/sh/
H A Daica.c484 struct snd_ctl_elem_value *ucontrol) aica_pcmswitch_get()
486 ucontrol->value.integer.value[0] = 1; /* TO DO: Fix me */ aica_pcmswitch_get()
491 struct snd_ctl_elem_value *ucontrol) aica_pcmswitch_put()
493 if (ucontrol->value.integer.value[0] == 1) aica_pcmswitch_put()
511 struct snd_ctl_elem_value *ucontrol) aica_pcmvolume_get()
517 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; aica_pcmvolume_get()
522 struct snd_ctl_elem_value *ucontrol) aica_pcmvolume_put()
529 vol = ucontrol->value.integer.value[0]; aica_pcmvolume_put()
534 dreamcastcard->channel->vol = ucontrol->value.integer.value[0]; aica_pcmvolume_put()
535 dreamcastcard->master_volume = ucontrol->value.integer.value[0]; aica_pcmvolume_put()
483 aica_pcmswitch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aica_pcmswitch_get() argument
490 aica_pcmswitch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aica_pcmswitch_put() argument
510 aica_pcmvolume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aica_pcmvolume_get() argument
521 aica_pcmvolume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) aica_pcmvolume_put() argument
/linux-4.1.27/sound/spi/
H A Dat73c213.c402 struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_get()
412 ucontrol->value.integer.value[0] = snd_at73c213_mono_get()
416 ucontrol->value.integer.value[0] = snd_at73c213_mono_get()
417 mask - ucontrol->value.integer.value[0]; snd_at73c213_mono_get()
425 struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_put()
435 val = (ucontrol->value.integer.value[0] & mask); snd_at73c213_mono_put()
472 struct snd_ctl_elem_value *ucontrol) snd_at73c213_stereo_get()
484 ucontrol->value.integer.value[0] = snd_at73c213_stereo_get()
486 ucontrol->value.integer.value[1] = snd_at73c213_stereo_get()
490 ucontrol->value.integer.value[0] = snd_at73c213_stereo_get()
491 mask - ucontrol->value.integer.value[0]; snd_at73c213_stereo_get()
492 ucontrol->value.integer.value[1] = snd_at73c213_stereo_get()
493 mask - ucontrol->value.integer.value[1]; snd_at73c213_stereo_get()
502 struct snd_ctl_elem_value *ucontrol) snd_at73c213_stereo_put()
514 val1 = ucontrol->value.integer.value[0] & mask; snd_at73c213_stereo_put()
515 val2 = ucontrol->value.integer.value[1] & mask; snd_at73c213_stereo_put()
551 struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_switch_get()
560 ucontrol->value.integer.value[0] = snd_at73c213_mono_switch_get()
564 ucontrol->value.integer.value[0] = snd_at73c213_mono_switch_get()
565 0x01 - ucontrol->value.integer.value[0]; snd_at73c213_mono_switch_get()
573 struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_switch_put()
583 if (ucontrol->value.integer.value[0]) snd_at73c213_mono_switch_put()
401 snd_at73c213_mono_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_get() argument
424 snd_at73c213_mono_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_put() argument
471 snd_at73c213_stereo_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_stereo_get() argument
501 snd_at73c213_stereo_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_stereo_put() argument
550 snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_switch_get() argument
572 snd_at73c213_mono_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_at73c213_mono_switch_put() argument
/linux-4.1.27/sound/isa/es1688/
H A Des1688_lib.c768 static int snd_es1688_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_get_mux() argument
771 ucontrol->value.enumerated.item[0] = snd_es1688_mixer_read(chip, ES1688_REC_DEV) & 7; snd_es1688_get_mux()
775 static int snd_es1688_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_put_mux() argument
782 if (ucontrol->value.enumerated.item[0] > 8) snd_es1688_put_mux()
786 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); snd_es1688_put_mux()
811 static int snd_es1688_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_get_single() argument
821 ucontrol->value.integer.value[0] = (snd_es1688_mixer_read(chip, reg) >> shift) & mask; snd_es1688_get_single()
824 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es1688_get_single()
828 static int snd_es1688_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_put_single() argument
839 nval = (ucontrol->value.integer.value[0] & mask); snd_es1688_put_single()
870 static int snd_es1688_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_get_double() argument
895 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; snd_es1688_get_double()
896 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; snd_es1688_get_double()
898 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es1688_get_double()
899 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_es1688_get_double()
904 static int snd_es1688_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es1688_put_double() argument
917 val1 = ucontrol->value.integer.value[0] & mask; snd_es1688_put_double()
918 val2 = ucontrol->value.integer.value[1] & mask; snd_es1688_put_double()
/linux-4.1.27/sound/soc/spear/
H A Dspdif_out.c214 struct snd_ctl_elem_value *ucontrol) spdif_mute_get()
219 ucontrol->value.integer.value[0] = host->saved_params.mute; spdif_mute_get()
224 struct snd_ctl_elem_value *ucontrol) spdif_mute_put()
229 if (host->saved_params.mute == ucontrol->value.integer.value[0]) spdif_mute_put()
232 spdif_digital_mute(cpu_dai, ucontrol->value.integer.value[0]); spdif_mute_put()
213 spdif_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spdif_mute_get() argument
223 spdif_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) spdif_mute_put() argument
/linux-4.1.27/sound/pci/vx222/
H A Dvx222_ops.c878 static int vx_input_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_input_level_get() argument
883 ucontrol->value.integer.value[0] = chip->input_level[0]; vx_input_level_get()
884 ucontrol->value.integer.value[1] = chip->input_level[1]; vx_input_level_get()
889 static int vx_input_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_input_level_put() argument
893 if (ucontrol->value.integer.value[0] < 0 || vx_input_level_put()
894 ucontrol->value.integer.value[0] > MIC_LEVEL_MAX) vx_input_level_put()
896 if (ucontrol->value.integer.value[1] < 0 || vx_input_level_put()
897 ucontrol->value.integer.value[1] > MIC_LEVEL_MAX) vx_input_level_put()
900 if (chip->input_level[0] != ucontrol->value.integer.value[0] || vx_input_level_put()
901 chip->input_level[1] != ucontrol->value.integer.value[1]) { vx_input_level_put()
902 chip->input_level[0] = ucontrol->value.integer.value[0]; vx_input_level_put()
903 chip->input_level[1] = ucontrol->value.integer.value[1]; vx_input_level_put()
922 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_level_get() argument
926 ucontrol->value.integer.value[0] = chip->mic_level; vx_mic_level_get()
930 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) vx_mic_level_put() argument
934 if (ucontrol->value.integer.value[0] < 0 || vx_mic_level_put()
935 ucontrol->value.integer.value[0] > MIC_LEVEL_MAX) vx_mic_level_put()
938 if (chip->mic_level != ucontrol->value.integer.value[0]) { vx_mic_level_put()
939 chip->mic_level = ucontrol->value.integer.value[0]; vx_mic_level_put()
/linux-4.1.27/sound/aoa/fabrics/
H A Dlayout.c635 struct snd_ctl_elem_value *ucontrol) \
639 ucontrol->value.integer.value[0] = \
644 struct snd_ctl_elem_value *ucontrol) \
649 !!ucontrol->value.integer.value[0]); \
667 struct snd_ctl_elem_value *ucontrol) detect_choice_get()
673 ucontrol->value.integer.value[0] = ldev->switch_on_headphone; detect_choice_get()
676 ucontrol->value.integer.value[0] = ldev->switch_on_lineout; detect_choice_get()
685 struct snd_ctl_elem_value *ucontrol) detect_choice_put()
691 ldev->switch_on_headphone = !!ucontrol->value.integer.value[0]; detect_choice_put()
694 ldev->switch_on_lineout = !!ucontrol->value.integer.value[0]; detect_choice_put()
723 struct snd_ctl_elem_value *ucontrol) detected_get()
740 ucontrol->value.integer.value[0] = v; detected_get()
666 detect_choice_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) detect_choice_get() argument
684 detect_choice_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) detect_choice_put() argument
722 detected_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) detected_get() argument
/linux-4.1.27/sound/soc/sh/
H A Dsiu_dai.c367 struct snd_ctl_elem_value *ucontrol) siu_dai_get_volume()
379 ucontrol->value.integer.value[0] = vol & 0xffff; siu_dai_get_volume()
380 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; siu_dai_get_volume()
385 ucontrol->value.integer.value[0] = vol & 0xffff; siu_dai_get_volume()
386 ucontrol->value.integer.value[1] = vol >> 16 & 0xffff; siu_dai_get_volume()
398 struct snd_ctl_elem_value *ucontrol) siu_dai_put_volume()
409 if (ucontrol->value.integer.value[0] < 0 || siu_dai_put_volume()
410 ucontrol->value.integer.value[0] > SIU_MAX_VOLUME || siu_dai_put_volume()
411 ucontrol->value.integer.value[1] < 0 || siu_dai_put_volume()
412 ucontrol->value.integer.value[1] > SIU_MAX_VOLUME) siu_dai_put_volume()
415 new_vol = ucontrol->value.integer.value[0] | siu_dai_put_volume()
416 ucontrol->value.integer.value[1] << 16; siu_dai_put_volume()
366 siu_dai_get_volume(struct snd_kcontrol *kctrl, struct snd_ctl_elem_value *ucontrol) siu_dai_get_volume() argument
397 siu_dai_put_volume(struct snd_kcontrol *kctrl, struct snd_ctl_elem_value *ucontrol) siu_dai_put_volume() argument
/linux-4.1.27/sound/sparc/
H A Dcs4231.c1296 struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_mux()
1302 ucontrol->value.enumerated.item[0] = snd_cs4231_get_mux()
1304 ucontrol->value.enumerated.item[1] = snd_cs4231_get_mux()
1312 struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_mux()
1319 if (ucontrol->value.enumerated.item[0] > 3 || snd_cs4231_put_mux()
1320 ucontrol->value.enumerated.item[1] > 3) snd_cs4231_put_mux()
1322 left = ucontrol->value.enumerated.item[0] << 6; snd_cs4231_put_mux()
1323 right = ucontrol->value.enumerated.item[1] << 6; snd_cs4231_put_mux()
1354 struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_single()
1365 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; snd_cs4231_get_single()
1370 ucontrol->value.integer.value[0] = snd_cs4231_get_single()
1371 (mask - ucontrol->value.integer.value[0]); snd_cs4231_get_single()
1377 struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_single()
1388 val = (ucontrol->value.integer.value[0] & mask); snd_cs4231_put_single()
1419 struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_double()
1432 ucontrol->value.integer.value[0] = snd_cs4231_get_double()
1434 ucontrol->value.integer.value[1] = snd_cs4231_get_double()
1440 ucontrol->value.integer.value[0] = snd_cs4231_get_double()
1441 (mask - ucontrol->value.integer.value[0]); snd_cs4231_get_double()
1442 ucontrol->value.integer.value[1] = snd_cs4231_get_double()
1443 (mask - ucontrol->value.integer.value[1]); snd_cs4231_get_double()
1450 struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_double()
1463 val1 = ucontrol->value.integer.value[0] & mask; snd_cs4231_put_double()
1464 val2 = ucontrol->value.integer.value[1] & mask; snd_cs4231_put_double()
1295 snd_cs4231_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_mux() argument
1311 snd_cs4231_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_mux() argument
1353 snd_cs4231_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_single() argument
1376 snd_cs4231_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_single() argument
1418 snd_cs4231_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_get_double() argument
1449 snd_cs4231_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4231_put_double() argument
H A Ddbri.c2266 struct snd_ctl_elem_value *ucontrol) snd_cs4215_get_volume()
2275 ucontrol->value.integer.value[0] = info->left_gain; snd_cs4215_get_volume()
2276 ucontrol->value.integer.value[1] = info->right_gain; snd_cs4215_get_volume()
2281 struct snd_ctl_elem_value *ucontrol) snd_cs4215_put_volume()
2289 vol[0] = ucontrol->value.integer.value[0]; snd_cs4215_put_volume()
2290 vol[1] = ucontrol->value.integer.value[1]; snd_cs4215_put_volume()
2332 struct snd_ctl_elem_value *ucontrol) snd_cs4215_get_single()
2344 ucontrol->value.integer.value[0] = snd_cs4215_get_single()
2347 ucontrol->value.integer.value[0] = snd_cs4215_get_single()
2351 ucontrol->value.integer.value[0] = snd_cs4215_get_single()
2352 mask - ucontrol->value.integer.value[0]; snd_cs4215_get_single()
2357 struct snd_ctl_elem_value *ucontrol) snd_cs4215_put_single()
2370 val = (ucontrol->value.integer.value[0] & mask); snd_cs4215_put_single()
2387 mask, changed, ucontrol->value.integer.value[0], snd_cs4215_put_single()
2265 snd_cs4215_get_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4215_get_volume() argument
2280 snd_cs4215_put_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4215_put_volume() argument
2331 snd_cs4215_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4215_get_single() argument
2356 snd_cs4215_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_cs4215_put_single() argument
H A Damd7930.c799 static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_amd7930_get_volume() argument
818 ucontrol->value.integer.value[0] = *swval; snd_amd7930_get_volume()
823 static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) snd_amd7930_put_volume() argument
845 if (*swval != ucontrol->value.integer.value[0]) { snd_amd7930_put_volume()
846 *swval = ucontrol->value.integer.value[0] & 0xff; snd_amd7930_put_volume()
/linux-4.1.27/sound/isa/
H A Des18xx.c992 static int snd_es18xx_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_mux() argument
1005 ucontrol->value.enumerated.item[0] = muxSource; snd_es18xx_get_mux()
1009 static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_put_mux() argument
1013 unsigned char val = ucontrol->value.enumerated.item[0]; snd_es18xx_put_mux()
1048 static int snd_es18xx_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_spatializer_enable() argument
1052 ucontrol->value.integer.value[0] = !!(val & 8); snd_es18xx_get_spatializer_enable()
1056 static int snd_es18xx_put_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_put_spatializer_enable() argument
1061 nval = ucontrol->value.integer.value[0] ? 0x0c : 0x04; snd_es18xx_put_spatializer_enable()
1080 static int snd_es18xx_get_hw_volume(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_hw_volume() argument
1083 ucontrol->value.integer.value[0] = snd_es18xx_mixer_read(chip, 0x61) & 0x3f; snd_es18xx_get_hw_volume()
1084 ucontrol->value.integer.value[1] = snd_es18xx_mixer_read(chip, 0x63) & 0x3f; snd_es18xx_get_hw_volume()
1090 static int snd_es18xx_get_hw_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_hw_switch() argument
1093 ucontrol->value.integer.value[0] = !(snd_es18xx_mixer_read(chip, 0x61) & 0x40); snd_es18xx_get_hw_switch()
1094 ucontrol->value.integer.value[1] = !(snd_es18xx_mixer_read(chip, 0x63) & 0x40); snd_es18xx_get_hw_switch()
1144 static int snd_es18xx_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_single() argument
1158 ucontrol->value.integer.value[0] = (val >> shift) & mask; snd_es18xx_get_single()
1160 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es18xx_get_single()
1164 static int snd_es18xx_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_put_single() argument
1174 val = (ucontrol->value.integer.value[0] & mask); snd_es18xx_put_single()
1208 static int snd_es18xx_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_get_double() argument
1224 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; snd_es18xx_get_double()
1225 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; snd_es18xx_get_double()
1227 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_es18xx_get_double()
1228 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_es18xx_get_double()
1233 static int snd_es18xx_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_es18xx_put_double() argument
1245 val1 = ucontrol->value.integer.value[0] & mask; snd_es18xx_put_double()
1246 val2 = ucontrol->value.integer.value[1] & mask; snd_es18xx_put_double()
H A Dopl3sa2.c355 static int snd_opl3sa2_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl3sa2_get_single() argument
365 ucontrol->value.integer.value[0] = (chip->ctlregs[reg] >> shift) & mask; snd_opl3sa2_get_single()
368 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_opl3sa2_get_single()
372 static int snd_opl3sa2_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl3sa2_put_single() argument
383 val = (ucontrol->value.integer.value[0] & mask); snd_opl3sa2_put_single()
410 static int snd_opl3sa2_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl3sa2_get_double() argument
422 ucontrol->value.integer.value[0] = (chip->ctlregs[left_reg] >> shift_left) & mask; snd_opl3sa2_get_double()
423 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; snd_opl3sa2_get_double()
426 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_opl3sa2_get_double()
427 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_opl3sa2_get_double()
432 static int snd_opl3sa2_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_opl3sa2_put_double() argument
445 val1 = ucontrol->value.integer.value[0] & mask; snd_opl3sa2_put_double()
446 val2 = ucontrol->value.integer.value[1] & mask; snd_opl3sa2_put_double()
/linux-4.1.27/include/sound/
H A Dwss.h189 struct snd_ctl_elem_value *ucontrol);
191 struct snd_ctl_elem_value *ucontrol);
231 struct snd_ctl_elem_value *ucontrol);
233 struct snd_ctl_elem_value *ucontrol);
H A Dsoc.h561 struct snd_ctl_elem_value *ucontrol);
563 struct snd_ctl_elem_value *ucontrol);
570 struct snd_ctl_elem_value *ucontrol);
572 struct snd_ctl_elem_value *ucontrol);
576 struct snd_ctl_elem_value *ucontrol);
578 struct snd_ctl_elem_value *ucontrol);
582 struct snd_ctl_elem_value *ucontrol);
584 struct snd_ctl_elem_value *ucontrol);
590 struct snd_ctl_elem_value *ucontrol);
592 struct snd_ctl_elem_value *ucontrol);
594 struct snd_ctl_elem_info *ucontrol);
600 struct snd_ctl_elem_value *ucontrol);
602 struct snd_ctl_elem_value *ucontrol);
604 struct snd_ctl_elem_value *ucontrol);
606 struct snd_ctl_elem_value *ucontrol);
H A Dcontrol.h31 typedef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol);
32 typedef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol);
H A Dsoc-dapm.h359 struct snd_ctl_elem_value *ucontrol);
361 struct snd_ctl_elem_value *ucontrol);
363 struct snd_ctl_elem_value *ucontrol);
365 struct snd_ctl_elem_value *ucontrol);
/linux-4.1.27/sound/drivers/
H A Daloop.c812 struct snd_ctl_elem_value *ucontrol) loopback_rate_shift_get()
816 ucontrol->value.integer.value[0] = loopback_rate_shift_get()
823 struct snd_ctl_elem_value *ucontrol) loopback_rate_shift_put()
829 val = ucontrol->value.integer.value[0]; loopback_rate_shift_put()
846 struct snd_ctl_elem_value *ucontrol) loopback_notify_get()
850 ucontrol->value.integer.value[0] = loopback_notify_get()
857 struct snd_ctl_elem_value *ucontrol) loopback_notify_put()
863 val = ucontrol->value.integer.value[0] ? 1 : 0; loopback_notify_put()
874 struct snd_ctl_elem_value *ucontrol) loopback_active_get()
884 ucontrol->value.integer.value[0] = val; loopback_active_get()
900 struct snd_ctl_elem_value *ucontrol) loopback_format_get()
904 ucontrol->value.integer.value[0] = loopback_format_get()
922 struct snd_ctl_elem_value *ucontrol) loopback_rate_get()
926 ucontrol->value.integer.value[0] = loopback_rate_get()
944 struct snd_ctl_elem_value *ucontrol) loopback_channels_get()
948 ucontrol->value.integer.value[0] = loopback_channels_get()
811 loopback_rate_shift_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_rate_shift_get() argument
822 loopback_rate_shift_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_rate_shift_put() argument
845 loopback_notify_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_notify_get() argument
856 loopback_notify_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_notify_put() argument
873 loopback_active_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_active_get() argument
899 loopback_format_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_format_get() argument
921 loopback_rate_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_rate_get() argument
943 loopback_channels_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) loopback_channels_get() argument
H A Ddummy.c744 struct snd_ctl_elem_value *ucontrol) snd_dummy_volume_get()
750 ucontrol->value.integer.value[0] = dummy->mixer_volume[addr][0]; snd_dummy_volume_get()
751 ucontrol->value.integer.value[1] = dummy->mixer_volume[addr][1]; snd_dummy_volume_get()
757 struct snd_ctl_elem_value *ucontrol) snd_dummy_volume_put()
763 left = ucontrol->value.integer.value[0]; snd_dummy_volume_put()
768 right = ucontrol->value.integer.value[1]; snd_dummy_volume_put()
793 struct snd_ctl_elem_value *ucontrol) snd_dummy_capsrc_get()
799 ucontrol->value.integer.value[0] = dummy->capture_source[addr][0]; snd_dummy_capsrc_get()
800 ucontrol->value.integer.value[1] = dummy->capture_source[addr][1]; snd_dummy_capsrc_get()
805 static int snd_dummy_capsrc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dummy_capsrc_put() argument
811 left = ucontrol->value.integer.value[0] & 1; snd_dummy_capsrc_put()
812 right = ucontrol->value.integer.value[1] & 1; snd_dummy_capsrc_put()
743 snd_dummy_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dummy_volume_get() argument
756 snd_dummy_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dummy_volume_put() argument
792 snd_dummy_capsrc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_dummy_capsrc_get() argument
/linux-4.1.27/sound/isa/opti9xx/
H A Dmiro.c269 struct snd_ctl_elem_value *ucontrol) snd_miro_get_capture()
281 ucontrol->value.integer.value[0] = value & 0x20; snd_miro_get_capture()
287 struct snd_ctl_elem_value *ucontrol) snd_miro_put_capture()
292 value = !(ucontrol->value.integer.value[0]); snd_miro_put_capture()
319 struct snd_ctl_elem_value *ucontrol) snd_miro_get_preamp()
332 ucontrol->value.integer.value[0] = miro->aci->aci_preamp; snd_miro_get_preamp()
343 ucontrol->value.integer.value[0] = value; snd_miro_get_preamp()
349 struct snd_ctl_elem_value *ucontrol) snd_miro_put_preamp()
354 value = ucontrol->value.integer.value[0]; snd_miro_put_preamp()
372 struct snd_ctl_elem_value *ucontrol) snd_miro_get_amp()
375 ucontrol->value.integer.value[0] = miro->aci->aci_amp; snd_miro_get_amp()
381 struct snd_ctl_elem_value *ucontrol) snd_miro_put_amp()
386 value = ucontrol->value.integer.value[0]; snd_miro_put_amp()
484 struct snd_ctl_elem_value *ucontrol) snd_miro_put_double()
492 left = ucontrol->value.integer.value[0]; snd_miro_put_double()
493 right = ucontrol->value.integer.value[1]; snd_miro_put_double()
268 snd_miro_get_capture(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_get_capture() argument
286 snd_miro_put_capture(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_put_capture() argument
318 snd_miro_get_preamp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_get_preamp() argument
348 snd_miro_put_preamp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_put_preamp() argument
371 snd_miro_get_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_get_amp() argument
380 snd_miro_put_amp(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_put_amp() argument
483 snd_miro_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_miro_put_double() argument
/linux-4.1.27/sound/mips/
H A Dsgio2audio.c172 struct snd_ctl_elem_value *ucontrol) sgio2audio_gain_get()
179 ucontrol->value.integer.value[0] = (vol >> 8) & 0xFF; sgio2audio_gain_get()
180 ucontrol->value.integer.value[1] = vol & 0xFF; sgio2audio_gain_get()
186 struct snd_ctl_elem_value *ucontrol) sgio2audio_gain_put()
192 newvol = (ucontrol->value.integer.value[0] << 8) | sgio2audio_gain_put()
193 ucontrol->value.integer.value[1]; sgio2audio_gain_put()
211 struct snd_ctl_elem_value *ucontrol) sgio2audio_source_get()
215 ucontrol->value.enumerated.item[0] = ad1843_get_recsrc(&chip->ad1843); sgio2audio_source_get()
220 struct snd_ctl_elem_value *ucontrol) sgio2audio_source_put()
227 ucontrol->value.enumerated.item[0]); sgio2audio_source_put()
171 sgio2audio_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sgio2audio_gain_get() argument
185 sgio2audio_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sgio2audio_gain_put() argument
210 sgio2audio_source_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sgio2audio_source_get() argument
219 sgio2audio_source_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sgio2audio_source_put() argument
H A Dhal2.c200 struct snd_ctl_elem_value *ucontrol) hal2_gain_get()
223 ucontrol->value.integer.value[0] = l; hal2_gain_get()
224 ucontrol->value.integer.value[1] = r; hal2_gain_get()
230 struct snd_ctl_elem_value *ucontrol) hal2_gain_put()
236 l = ucontrol->value.integer.value[0]; hal2_gain_put()
237 r = ucontrol->value.integer.value[1]; hal2_gain_put()
199 hal2_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hal2_gain_get() argument
229 hal2_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) hal2_gain_put() argument
/linux-4.1.27/sound/parisc/
H A Dharmony.c713 struct snd_ctl_elem_value *ucontrol) snd_harmony_volume_get()
731 ucontrol->value.integer.value[0] = left; snd_harmony_volume_get()
733 ucontrol->value.integer.value[1] = right; snd_harmony_volume_get()
742 struct snd_ctl_elem_value *ucontrol) snd_harmony_volume_put()
754 left = ucontrol->value.integer.value[0] & mask; snd_harmony_volume_put()
761 right = ucontrol->value.integer.value[1] & mask; snd_harmony_volume_put()
786 struct snd_ctl_elem_value *ucontrol) snd_harmony_captureroute_get()
794 ucontrol->value.enumerated.item[0] = value; snd_harmony_captureroute_get()
803 struct snd_ctl_elem_value *ucontrol) snd_harmony_captureroute_put()
811 value = ucontrol->value.enumerated.item[0] & 1; snd_harmony_captureroute_put()
712 snd_harmony_volume_get(struct snd_kcontrol *kc, struct snd_ctl_elem_value *ucontrol) snd_harmony_volume_get() argument
741 snd_harmony_volume_put(struct snd_kcontrol *kc, struct snd_ctl_elem_value *ucontrol) snd_harmony_volume_put() argument
785 snd_harmony_captureroute_get(struct snd_kcontrol *kc, struct snd_ctl_elem_value *ucontrol) snd_harmony_captureroute_get() argument
802 snd_harmony_captureroute_put(struct snd_kcontrol *kc, struct snd_ctl_elem_value *ucontrol) snd_harmony_captureroute_put() argument
/linux-4.1.27/drivers/media/pci/saa7134/
H A Dsaa7134-alsa.c939 struct snd_ctl_elem_value * ucontrol) snd_saa7134_volume_get()
944 ucontrol->value.integer.value[0] = chip->mixer_volume[addr][0]; snd_saa7134_volume_get()
945 ucontrol->value.integer.value[1] = chip->mixer_volume[addr][1]; snd_saa7134_volume_get()
950 struct snd_ctl_elem_value * ucontrol) snd_saa7134_volume_put()
958 left = ucontrol->value.integer.value[0]; snd_saa7134_volume_put()
963 right = ucontrol->value.integer.value[1]; snd_saa7134_volume_put()
1036 struct snd_ctl_elem_value * ucontrol) snd_saa7134_capsrc_get()
1043 ucontrol->value.integer.value[0] = chip->capture_source[0]; snd_saa7134_capsrc_get()
1044 ucontrol->value.integer.value[1] = chip->capture_source[1]; snd_saa7134_capsrc_get()
1046 ucontrol->value.integer.value[0] = 0; snd_saa7134_capsrc_get()
1047 ucontrol->value.integer.value[1] = 0; snd_saa7134_capsrc_get()
1055 struct snd_ctl_elem_value * ucontrol) snd_saa7134_capsrc_put()
1058 left = ucontrol->value.integer.value[0] & 1; snd_saa7134_capsrc_put()
1059 right = ucontrol->value.integer.value[1] & 1; snd_saa7134_capsrc_put()
938 snd_saa7134_volume_get(struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol) snd_saa7134_volume_get() argument
949 snd_saa7134_volume_put(struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol) snd_saa7134_volume_put() argument
1035 snd_saa7134_capsrc_get(struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol) snd_saa7134_capsrc_get() argument
1054 snd_saa7134_capsrc_put(struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol) snd_saa7134_capsrc_put() argument
/linux-4.1.27/sound/soc/intel/atom/
H A Dsst-atom-controls.c160 struct snd_ctl_elem_value *ucontrol) sst_slot_get()
177 ucontrol->value.enumerated.item[0] = mux; sst_slot_get()
218 struct snd_ctl_elem_value *ucontrol) sst_slot_put()
233 mux = ucontrol->value.enumerated.item[0]; sst_slot_put()
327 struct snd_ctl_elem_value *ucontrol) sst_algo_control_get()
334 memcpy(ucontrol->value.bytes.data, bc->params, bc->max); sst_algo_control_get()
346 struct snd_ctl_elem_value *ucontrol) sst_algo_control_set()
357 memcpy(bc->params, ucontrol->value.bytes.data, bc->max); sst_algo_control_set()
433 struct snd_ctl_elem_value *ucontrol) sst_gain_get()
441 ucontrol->value.integer.value[0] = gv->l_gain; sst_gain_get()
442 ucontrol->value.integer.value[1] = gv->r_gain; sst_gain_get()
446 ucontrol->value.integer.value[0] = gv->mute ? 1 : 0; sst_gain_get()
450 ucontrol->value.integer.value[0] = gv->ramp_duration; sst_gain_get()
463 struct snd_ctl_elem_value *ucontrol) sst_gain_put()
475 gv->l_gain = ucontrol->value.integer.value[0]; sst_gain_put()
476 gv->r_gain = ucontrol->value.integer.value[1]; sst_gain_put()
482 gv->mute = !!ucontrol->value.integer.value[0]; sst_gain_put()
487 gv->ramp_duration = ucontrol->value.integer.value[0]; sst_gain_put()
159 sst_slot_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_slot_get() argument
217 sst_slot_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_slot_put() argument
326 sst_algo_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_algo_control_get() argument
345 sst_algo_control_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_algo_control_set() argument
432 sst_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_gain_get() argument
462 sst_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) sst_gain_put() argument
/linux-4.1.27/sound/isa/wss/
H A Dwss_lib.c2021 struct snd_ctl_elem_value *ucontrol) snd_wss_get_mux()
2027 ucontrol->value.enumerated.item[0] = (chip->image[CS4231_LEFT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_wss_get_mux()
2028 ucontrol->value.enumerated.item[1] = (chip->image[CS4231_RIGHT_INPUT] & CS4231_MIXS_ALL) >> 6; snd_wss_get_mux()
2034 struct snd_ctl_elem_value *ucontrol) snd_wss_put_mux()
2041 if (ucontrol->value.enumerated.item[0] > 3 || snd_wss_put_mux()
2042 ucontrol->value.enumerated.item[1] > 3) snd_wss_put_mux()
2044 left = ucontrol->value.enumerated.item[0] << 6; snd_wss_put_mux()
2045 right = ucontrol->value.enumerated.item[1] << 6; snd_wss_put_mux()
2071 struct snd_ctl_elem_value *ucontrol) snd_wss_get_single()
2081 ucontrol->value.integer.value[0] = (chip->image[reg] >> shift) & mask; snd_wss_get_single()
2084 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_wss_get_single()
2090 struct snd_ctl_elem_value *ucontrol) snd_wss_put_single()
2101 val = (ucontrol->value.integer.value[0] & mask); snd_wss_put_single()
2128 struct snd_ctl_elem_value *ucontrol) snd_wss_get_double()
2140 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; snd_wss_get_double()
2141 ucontrol->value.integer.value[1] = (chip->image[right_reg] >> shift_right) & mask; snd_wss_get_double()
2144 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; snd_wss_get_double()
2145 ucontrol->value.integer.value[1] = mask - ucontrol->value.integer.value[1]; snd_wss_get_double()
2152 struct snd_ctl_elem_value *ucontrol) snd_wss_put_double()
2165 val1 = ucontrol->value.integer.value[0] & mask; snd_wss_put_double()
2166 val2 = ucontrol->value.integer.value[1] & mask; snd_wss_put_double()
2020 snd_wss_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_get_mux() argument
2033 snd_wss_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_put_mux() argument
2070 snd_wss_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_get_single() argument
2089 snd_wss_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_put_single() argument
2127 snd_wss_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_get_double() argument
2151 snd_wss_put_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_wss_put_double() argument
/linux-4.1.27/sound/pci/aw2/
H A Daw2-alsa.c144 *ucontrol);
147 *ucontrol);
734 *ucontrol) snd_aw2_control_switch_capture_get()
738 ucontrol->value.enumerated.item[0] = CTL_ROUTE_DIGITAL; snd_aw2_control_switch_capture_get()
740 ucontrol->value.enumerated.item[0] = CTL_ROUTE_ANALOG; snd_aw2_control_switch_capture_get()
746 *ucontrol) snd_aw2_control_switch_capture_put()
753 if (((ucontrol->value.integer.value[0] == CTL_ROUTE_DIGITAL) snd_aw2_control_switch_capture_put()
755 || ((ucontrol->value.integer.value[0] == CTL_ROUTE_ANALOG) snd_aw2_control_switch_capture_put()
732 snd_aw2_control_switch_capture_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_aw2_control_switch_capture_get() argument
744 snd_aw2_control_switch_capture_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) snd_aw2_control_switch_capture_put() argument
/linux-4.1.27/sound/soc/ux500/
H A Dmop500_ab8500.c134 struct snd_ctl_elem_value *ucontrol) mclk_input_control_get()
140 ucontrol->value.enumerated.item[0] = drvdata->mclk_sel; mclk_input_control_get()
146 struct snd_ctl_elem_value *ucontrol) mclk_input_control_put()
151 unsigned int val = ucontrol->value.enumerated.item[0]; mclk_input_control_put()
133 mclk_input_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mclk_input_control_get() argument
145 mclk_input_control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) mclk_input_control_put() argument
/linux-4.1.27/sound/usb/caiaq/
H A Dcontrol.c80 struct snd_ctl_elem_value *ucontrol) control_get()
87 ucontrol->value.integer.value[0] control_get()
90 ucontrol->value.integer.value[0] control_get()
97 struct snd_ctl_elem_value *ucontrol) control_put()
102 int v = ucontrol->value.integer.value[0]; control_put()
79 control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) control_get() argument
96 control_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) control_put() argument
/linux-4.1.27/sound/pci/lx6464es/
H A Dlx6464es.c880 struct snd_ctl_elem_value *ucontrol) lx_control_playback_get()
883 ucontrol->value.integer.value[0] = chip->playback_mute; lx_control_playback_get()
888 struct snd_ctl_elem_value *ucontrol) lx_control_playback_put()
894 if (current_value != ucontrol->value.integer.value[0]) { lx_control_playback_put()
879 lx_control_playback_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lx_control_playback_get() argument
887 lx_control_playback_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) lx_control_playback_put() argument

Completed in 4745 milliseconds

12