Lines Matching refs:ctl
1510 struct mixer_ctl *ctl; in get_cvd_version() local
1514 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
1515 if (!ctl) { in get_cvd_version()
1519 mixer_ctl_update(ctl); in get_cvd_version()
1521 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
1525 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1632 struct mixer_ctl *ctl = NULL; in platform_backend_app_type_cfg_init() local
1635 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in platform_backend_app_type_cfg_init()
1636 if (!ctl) { in platform_backend_app_type_cfg_init()
1666 if (mixer_ctl_set_array(ctl, app_type_cfg, length) < 0) { in platform_backend_app_type_cfg_init()
1675 struct mixer_ctl *ctl; in configure_flicker_sensor_input() local
1693 ctl = mixer_get_ctl_by_name(mixer, ctl1); in configure_flicker_sensor_input()
1694 mixer_ctl_set_value(ctl, 0, setting1); in configure_flicker_sensor_input()
1695 ctl = mixer_get_ctl_by_name(mixer, ctl2); in configure_flicker_sensor_input()
1696 mixer_ctl_set_enum_by_string(ctl, setting2); in configure_flicker_sensor_input()
1697 ctl = mixer_get_ctl_by_name(mixer, ctl3); in configure_flicker_sensor_input()
1698 mixer_ctl_set_enum_by_string(ctl, setting3); in configure_flicker_sensor_input()
1699 ctl = mixer_get_ctl_by_name(mixer, ctl4); in configure_flicker_sensor_input()
1700 mixer_ctl_set_enum_by_string(ctl, setting4); in configure_flicker_sensor_input()
1701 ctl = mixer_get_ctl_by_name(mixer, ctl5); in configure_flicker_sensor_input()
1702 mixer_ctl_set_enum_by_string(ctl, setting5); in configure_flicker_sensor_input()
1703 ctl = mixer_get_ctl_by_name(mixer, ctl6); in configure_flicker_sensor_input()
1704 mixer_ctl_set_value(ctl, 0, setting6); in configure_flicker_sensor_input()
1705 ctl = mixer_get_ctl_by_name(mixer, ctl7); in configure_flicker_sensor_input()
1706 mixer_ctl_set_value(ctl, 0, setting7); in configure_flicker_sensor_input()
1707 ctl = mixer_get_ctl_by_name(mixer, ctl8); in configure_flicker_sensor_input()
1708 mixer_ctl_set_enum_by_string(ctl, setting8); in configure_flicker_sensor_input()
2614 struct mixer_ctl *ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_mic_break_det() local
2615 if (!ctl) { in platform_set_mic_break_det()
2621 ret = mixer_ctl_set_value(ctl, 0, enable); in platform_set_mic_break_det()
2683 struct mixer_ctl *ctl; in platform_set_voice_volume() local
2697 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
2698 if (!ctl) { in platform_set_voice_volume()
2704 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
2715 ctl = mixer_get_ctl_by_name(adev->mixer, mute_mixer_ctl_name); in platform_set_voice_volume()
2716 if (!ctl) { in platform_set_voice_volume()
2722 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
2738 struct mixer_ctl *ctl; in platform_set_mic_mute() local
2753 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_mic_mute()
2754 if (!ctl) { in platform_set_mic_mute()
2760 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_mic_mute()
2776 struct mixer_ctl *ctl; in platform_set_device_mute() local
2796 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_device_mute()
2797 if (!ctl) { in platform_set_device_mute()
2805 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_device_mute()
3582 struct mixer_ctl *ctl; in platform_set_hdmi_channels() local
3601 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels()
3602 if (!ctl) { in platform_set_hdmi_channels()
3608 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_hdmi_channels()
3623 struct mixer_ctl *ctl; in platform_edid_get_max_channels() local
3625 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_DATA_BLOCK_MIXER_CTL); in platform_edid_get_max_channels()
3626 if (!ctl) { in platform_edid_get_max_channels()
3632 mixer_ctl_update(ctl); in platform_edid_get_max_channels()
3634 count = mixer_ctl_get_num_values(ctl); in platform_edid_get_max_channels()
3640 ret = mixer_ctl_get_array(ctl, block, count); in platform_edid_get_max_channels()
3673 struct mixer_ctl *ctl; in platform_set_incall_recording_session_id() local
3678 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_incall_recording_session_id()
3679 if (!ctl) { in platform_set_incall_recording_session_id()
3684 num_ctl_values = mixer_ctl_get_num_values(ctl); in platform_set_incall_recording_session_id()
3686 if (mixer_ctl_set_value(ctl, i, session_id)) { in platform_set_incall_recording_session_id()
3714 struct mixer_ctl *ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_incall_recording_session_channels() local
3716 if (!ctl) { in platform_set_incall_recording_session_channels()
3721 num_ctl_values = mixer_ctl_get_num_values(ctl); in platform_set_incall_recording_session_channels()
3723 if (mixer_ctl_set_value(ctl, i, channel_count)) { in platform_set_incall_recording_session_channels()
3999 const struct mixer_ctl *ctl; in ramp_speaker_gain() local
4058 struct mixer_ctl *ctl; in platform_set_swap_mixer() local
4076 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_swap_mixer()
4077 if (!ctl) { in platform_set_swap_mixer()
4082 if (mixer_ctl_set_value(ctl, 0, swap_channels) < 0) { in platform_set_swap_mixer()
4233 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4234 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4236 if (!ctl) { in platform_set_backend_cfg()
4245 ret = mixer_ctl_set_enum_by_string(ctl, "S24_3LE"); in platform_set_backend_cfg()
4247 ret = mixer_ctl_set_enum_by_string(ctl, "S24_LE"); in platform_set_backend_cfg()
4249 ret = mixer_ctl_set_enum_by_string(ctl, "S32_LE"); in platform_set_backend_cfg()
4251 ret = mixer_ctl_set_enum_by_string(ctl, "S16_LE"); in platform_set_backend_cfg()
4268 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4315 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4317 if(!ctl) { in platform_set_backend_cfg()
4326 mixer_ctl_set_enum_by_string(ctl, rate_str); in platform_set_backend_cfg()
4331 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4354 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4356 if (!ctl) { in platform_set_backend_cfg()
4362 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_backend_cfg()
4719 struct mixer_ctl *ctl; in init_be_dai_name_table() local
4723 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in init_be_dai_name_table()
4724 if (!ctl) { in init_be_dai_name_table()
4731 mixer_ctl_update(ctl); in init_be_dai_name_table()
4733 size = mixer_ctl_get_num_values(ctl); in init_be_dai_name_table()
4750 ret = mixer_ctl_get_array(ctl, (void *)be_dai_name_table, size); in init_be_dai_name_table()
5174 struct mixer_ctl *ctl = mixer_get_ctl_by_name(_platform->adev->mixer, in platform_set_usb_service_interval() local
5176 if (!ctl) { in platform_set_usb_service_interval()
5180 if (mixer_ctl_get_value(ctl, 0) != (int)service_interval) { in platform_set_usb_service_interval()
5181 mixer_ctl_set_value(ctl, 0, service_interval); in platform_set_usb_service_interval()
5205 struct mixer_ctl *ctl = mixer_get_ctl_by_name(_platform->adev->mixer, in platform_get_usb_service_interval() local
5207 if (!ctl) { in platform_get_usb_service_interval()
5211 *service_interval = mixer_ctl_get_value(ctl, 0); in platform_get_usb_service_interval()