Lines Matching refs:ucontrol
1567 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_volume_get() argument
1575 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_get()
1594 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_volume_put() argument
1602 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_put()
1973 struct snd_ctl_elem_value *ucontrol; in put_kctl_with_value() local
1974 ucontrol = kzalloc(sizeof(*ucontrol), GFP_KERNEL); in put_kctl_with_value()
1975 if (!ucontrol) in put_kctl_with_value()
1977 ucontrol->value.integer.value[0] = val; in put_kctl_with_value()
1978 ucontrol->value.integer.value[1] = val; in put_kctl_with_value()
1979 kctl->put(kctl, ucontrol); in put_kctl_with_value()
1980 kfree(ucontrol); in put_kctl_with_value()
2081 struct snd_ctl_elem_value *ucontrol) in vmaster_mute_mode_get() argument
2084 ucontrol->value.enumerated.item[0] = hook->mute_mode; in vmaster_mute_mode_get()
2089 struct snd_ctl_elem_value *ucontrol) in vmaster_mute_mode_put() argument
2094 hook->mute_mode = ucontrol->value.enumerated.item[0]; in vmaster_mute_mode_put()
2202 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_switch_get() argument
2209 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_switch_get()
2230 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_amp_switch_put() argument
2237 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_switch_put()
2273 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_bind_switch_get() argument
2282 err = snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_get()
2298 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_bind_switch_put() argument
2310 err = snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in snd_hda_mixer_bind_switch_put()
2355 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_bind_ctls_get() argument
2364 err = c->ops->get(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_get()
2380 struct snd_ctl_elem_value *ucontrol) in snd_hda_mixer_bind_ctls_put() argument
2391 err = c->ops->put(kcontrol, ucontrol); in snd_hda_mixer_bind_ctls_put()
2458 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_cmask_get() argument
2460 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | in snd_hda_spdif_cmask_get()
2464 ucontrol->value.iec958.status[1] = IEC958_AES1_CON_CATEGORY | in snd_hda_spdif_cmask_get()
2470 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_pmask_get() argument
2472 ucontrol->value.iec958.status[0] = IEC958_AES0_PROFESSIONAL | in snd_hda_spdif_pmask_get()
2479 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_default_get() argument
2487 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get()
2488 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get()
2489 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get()
2490 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get()
2583 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_default_put() argument
2595 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put()
2596 ((unsigned int)ucontrol->value.iec958.status[1] << 8) | in snd_hda_spdif_default_put()
2597 ((unsigned int)ucontrol->value.iec958.status[2] << 16) | in snd_hda_spdif_default_put()
2598 ((unsigned int)ucontrol->value.iec958.status[3] << 24); in snd_hda_spdif_default_put()
2612 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_out_switch_get() argument
2620 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2637 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_out_switch_put() argument
2650 if (ucontrol->value.integer.value[0]) in snd_hda_spdif_out_switch_put()
2828 struct snd_ctl_elem_value *ucontrol) in spdif_share_sw_get() argument
2831 ucontrol->value.integer.value[0] = mout->share_spdif; in spdif_share_sw_get()
2836 struct snd_ctl_elem_value *ucontrol) in spdif_share_sw_put() argument
2839 mout->share_spdif = !!ucontrol->value.integer.value[0]; in spdif_share_sw_put()
2879 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_in_switch_get() argument
2883 ucontrol->value.integer.value[0] = codec->spdif_in_enable; in snd_hda_spdif_in_switch_get()
2888 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_in_switch_put() argument
2892 unsigned int val = !!ucontrol->value.integer.value[0]; in snd_hda_spdif_in_switch_put()
2907 struct snd_ctl_elem_value *ucontrol) in snd_hda_spdif_in_status_get() argument
2917 ucontrol->value.iec958.status[0] = sbits; in snd_hda_spdif_in_status_get()
2918 ucontrol->value.iec958.status[1] = sbits >> 8; in snd_hda_spdif_in_status_get()
2919 ucontrol->value.iec958.status[2] = sbits >> 16; in snd_hda_spdif_in_status_get()
2920 ucontrol->value.iec958.status[3] = sbits >> 24; in snd_hda_spdif_in_status_get()
4033 struct snd_ctl_elem_value *ucontrol, in snd_hda_input_mux_put() argument
4041 idx = ucontrol->value.enumerated.item[0]; in snd_hda_input_mux_put()