Lines Matching refs:ucontrol
1590 … int snd_hdsp_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_get() argument
1594 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif); in snd_hdsp_control_spdif_get()
1598 … int snd_hdsp_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_put() argument
1604 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); in snd_hdsp_control_spdif_put()
1619 …d_hdsp_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_stream_get() argument
1623 snd_hdsp_convert_to_aes(&ucontrol->value.iec958, hdsp->creg_spdif_stream); in snd_hdsp_control_spdif_stream_get()
1627 …d_hdsp_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_stream_put() argument
1633 val = snd_hdsp_convert_from_aes(&ucontrol->value.iec958); in snd_hdsp_control_spdif_stream_put()
1650 …snd_hdsp_control_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_control_spdif_mask_get() argument
1652 ucontrol->value.iec958.status[0] = kcontrol->private_value; in snd_hdsp_control_spdif_mask_get()
1688 static int snd_hdsp_get_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_spdif_in() argument
1692 ucontrol->value.enumerated.item[0] = hdsp_spdif_in(hdsp); in snd_hdsp_get_spdif_in()
1696 static int snd_hdsp_put_spdif_in(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_spdif_in() argument
1704 val = ucontrol->value.enumerated.item[0] % ((hdsp->io_type == H9632) ? 4 : 3); in snd_hdsp_put_spdif_in()
1741 struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_toggle_setting() argument
1747 ucontrol->value.integer.value[0] = hdsp_toggle_setting(hdsp, regmask); in snd_hdsp_get_toggle_setting()
1753 struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_toggle_setting() argument
1762 val = ucontrol->value.integer.value[0] & 1; in snd_hdsp_put_toggle_setting()
1792 … snd_hdsp_get_spdif_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_spdif_sample_rate() argument
1798 ucontrol->value.enumerated.item[0] = 0; in snd_hdsp_get_spdif_sample_rate()
1801 ucontrol->value.enumerated.item[0] = 1; in snd_hdsp_get_spdif_sample_rate()
1804 ucontrol->value.enumerated.item[0] = 2; in snd_hdsp_get_spdif_sample_rate()
1807 ucontrol->value.enumerated.item[0] = 3; in snd_hdsp_get_spdif_sample_rate()
1810 ucontrol->value.enumerated.item[0] = 4; in snd_hdsp_get_spdif_sample_rate()
1813 ucontrol->value.enumerated.item[0] = 5; in snd_hdsp_get_spdif_sample_rate()
1816 ucontrol->value.enumerated.item[0] = 7; in snd_hdsp_get_spdif_sample_rate()
1819 ucontrol->value.enumerated.item[0] = 8; in snd_hdsp_get_spdif_sample_rate()
1822 ucontrol->value.enumerated.item[0] = 9; in snd_hdsp_get_spdif_sample_rate()
1825 ucontrol->value.enumerated.item[0] = 6; in snd_hdsp_get_spdif_sample_rate()
1846 …snd_hdsp_get_system_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_system_sample_rate() argument
1850 ucontrol->value.enumerated.item[0] = hdsp->system_sample_rate; in snd_hdsp_get_system_sample_rate()
1875 …d_hdsp_get_autosync_sample_rate(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_autosync_sample_rate() argument
1881 ucontrol->value.enumerated.item[0] = 0; in snd_hdsp_get_autosync_sample_rate()
1884 ucontrol->value.enumerated.item[0] = 1; in snd_hdsp_get_autosync_sample_rate()
1887 ucontrol->value.enumerated.item[0] = 2; in snd_hdsp_get_autosync_sample_rate()
1890 ucontrol->value.enumerated.item[0] = 3; in snd_hdsp_get_autosync_sample_rate()
1893 ucontrol->value.enumerated.item[0] = 4; in snd_hdsp_get_autosync_sample_rate()
1896 ucontrol->value.enumerated.item[0] = 5; in snd_hdsp_get_autosync_sample_rate()
1899 ucontrol->value.enumerated.item[0] = 7; in snd_hdsp_get_autosync_sample_rate()
1902 ucontrol->value.enumerated.item[0] = 8; in snd_hdsp_get_autosync_sample_rate()
1905 ucontrol->value.enumerated.item[0] = 9; in snd_hdsp_get_autosync_sample_rate()
1908 ucontrol->value.enumerated.item[0] = 6; in snd_hdsp_get_autosync_sample_rate()
1938 … snd_hdsp_get_system_clock_mode(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_system_clock_mode() argument
1942 ucontrol->value.enumerated.item[0] = hdsp_system_clock_mode(hdsp); in snd_hdsp_get_system_clock_mode()
2048 …c int snd_hdsp_get_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_clock_source() argument
2052 ucontrol->value.enumerated.item[0] = hdsp_clock_source(hdsp); in snd_hdsp_get_clock_source()
2056 …c int snd_hdsp_put_clock_source(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_clock_source() argument
2064 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_clock_source()
2084 … snd_hdsp_get_clock_source_lock(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_clock_source_lock() argument
2088 ucontrol->value.integer.value[0] = hdsp->clock_source_locked; in snd_hdsp_get_clock_source_lock()
2092 … snd_hdsp_put_clock_source_lock(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_clock_source_lock() argument
2097 change = (int)ucontrol->value.integer.value[0] != hdsp->clock_source_locked; in snd_hdsp_put_clock_source_lock()
2099 hdsp->clock_source_locked = !!ucontrol->value.integer.value[0]; in snd_hdsp_put_clock_source_lock()
2154 static int snd_hdsp_get_da_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_da_gain() argument
2158 ucontrol->value.enumerated.item[0] = hdsp_da_gain(hdsp); in snd_hdsp_get_da_gain()
2162 static int snd_hdsp_put_da_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_da_gain() argument
2170 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_da_gain()
2233 static int snd_hdsp_get_ad_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_ad_gain() argument
2237 ucontrol->value.enumerated.item[0] = hdsp_ad_gain(hdsp); in snd_hdsp_get_ad_gain()
2241 static int snd_hdsp_put_ad_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_ad_gain() argument
2249 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_ad_gain()
2312 …tic int snd_hdsp_get_phone_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_phone_gain() argument
2316 ucontrol->value.enumerated.item[0] = hdsp_phone_gain(hdsp); in snd_hdsp_get_phone_gain()
2320 …tic int snd_hdsp_put_phone_gain(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_phone_gain() argument
2328 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_phone_gain()
2429 … int snd_hdsp_get_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_pref_sync_ref() argument
2433 ucontrol->value.enumerated.item[0] = hdsp_pref_sync_ref(hdsp); in snd_hdsp_get_pref_sync_ref()
2437 … int snd_hdsp_put_pref_sync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_pref_sync_ref() argument
2461 val = ucontrol->value.enumerated.item[0] % max; in snd_hdsp_put_pref_sync_ref()
2513 …c int snd_hdsp_get_autosync_ref(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_autosync_ref() argument
2517 ucontrol->value.enumerated.item[0] = hdsp_autosync_ref(hdsp); in snd_hdsp_get_autosync_ref()
2541 …nt snd_hdsp_get_precise_pointer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_precise_pointer() argument
2546 ucontrol->value.integer.value[0] = hdsp->precise_ptr; in snd_hdsp_get_precise_pointer()
2551 …nt snd_hdsp_put_precise_pointer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_precise_pointer() argument
2559 val = ucontrol->value.integer.value[0] & 1; in snd_hdsp_put_precise_pointer()
2587 …t snd_hdsp_get_use_midi_tasklet(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_use_midi_tasklet() argument
2592 ucontrol->value.integer.value[0] = hdsp->use_midi_tasklet; in snd_hdsp_get_use_midi_tasklet()
2597 …t snd_hdsp_put_use_midi_tasklet(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_use_midi_tasklet() argument
2605 val = ucontrol->value.integer.value[0] & 1; in snd_hdsp_put_use_midi_tasklet()
2635 static int snd_hdsp_get_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_mixer() argument
2642 source = ucontrol->value.integer.value[0]; in snd_hdsp_get_mixer()
2643 destination = ucontrol->value.integer.value[1]; in snd_hdsp_get_mixer()
2651 ucontrol->value.integer.value[2] = hdsp_read_gain (hdsp, addr); in snd_hdsp_get_mixer()
2656 static int snd_hdsp_put_mixer(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_mixer() argument
2668 source = ucontrol->value.integer.value[0]; in snd_hdsp_put_mixer()
2669 destination = ucontrol->value.integer.value[1]; in snd_hdsp_put_mixer()
2676 gain = ucontrol->value.integer.value[2]; in snd_hdsp_put_mixer()
2715 … int snd_hdsp_get_wc_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_wc_sync_check() argument
2719 ucontrol->value.enumerated.item[0] = hdsp_wc_sync_check(hdsp); in snd_hdsp_get_wc_sync_check()
2746 …t snd_hdsp_get_spdif_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_spdif_sync_check() argument
2750 ucontrol->value.enumerated.item[0] = hdsp_spdif_sync_check(hdsp); in snd_hdsp_get_spdif_sync_check()
2775 …nd_hdsp_get_adatsync_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_adatsync_sync_check() argument
2779 ucontrol->value.enumerated.item[0] = hdsp_adatsync_sync_check(hdsp); in snd_hdsp_get_adatsync_sync_check()
2803 …nt snd_hdsp_get_adat_sync_check(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_adat_sync_check() argument
2808 offset = ucontrol->id.index - 1; in snd_hdsp_get_adat_sync_check()
2826 ucontrol->value.enumerated.item[0] = hdsp_adat_sync_check(hdsp, offset); in snd_hdsp_get_adat_sync_check()
2877 …tic int snd_hdsp_get_dds_offset(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_dds_offset() argument
2881 ucontrol->value.integer.value[0] = hdsp_dds_offset(hdsp); in snd_hdsp_get_dds_offset()
2885 …tic int snd_hdsp_put_dds_offset(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_dds_offset() argument
2893 val = ucontrol->value.integer.value[0]; in snd_hdsp_put_dds_offset()
2994 …ic int snd_hdsp_get_rpm_input12(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_rpm_input12() argument
2998 ucontrol->value.enumerated.item[0] = hdsp_rpm_input12(hdsp); in snd_hdsp_get_rpm_input12()
3030 …ic int snd_hdsp_put_rpm_input12(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_rpm_input12() argument
3038 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_rpm_input12()
3079 …ic int snd_hdsp_get_rpm_input34(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_rpm_input34() argument
3083 ucontrol->value.enumerated.item[0] = hdsp_rpm_input34(hdsp); in snd_hdsp_get_rpm_input34()
3115 …ic int snd_hdsp_put_rpm_input34(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_rpm_input34() argument
3123 val = ucontrol->value.enumerated.item[0]; in snd_hdsp_put_rpm_input34()
3145 …tic int snd_hdsp_get_rpm_bypass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_rpm_bypass() argument
3149 ucontrol->value.integer.value[0] = hdsp_rpm_bypass(hdsp); in snd_hdsp_get_rpm_bypass()
3165 …tic int snd_hdsp_put_rpm_bypass(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_rpm_bypass() argument
3173 val = ucontrol->value.integer.value[0] & 1; in snd_hdsp_put_rpm_bypass()
3197 …int snd_hdsp_get_rpm_disconnect(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_get_rpm_disconnect() argument
3201 ucontrol->value.integer.value[0] = hdsp_rpm_disconnect(hdsp); in snd_hdsp_get_rpm_disconnect()
3217 …int snd_hdsp_put_rpm_disconnect(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_hdsp_put_rpm_disconnect() argument
3225 val = ucontrol->value.integer.value[0] & 1; in snd_hdsp_put_rpm_disconnect()