Lines Matching refs:ctl
1491 struct mixer_ctl *ctl; in get_cvd_version() local
1495 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
1496 if (!ctl) { in get_cvd_version()
1500 mixer_ctl_update(ctl); in get_cvd_version()
1502 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
1506 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1613 struct mixer_ctl *ctl = NULL; in platform_backend_app_type_cfg_init() local
1616 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in platform_backend_app_type_cfg_init()
1617 if (!ctl) { in platform_backend_app_type_cfg_init()
1647 if (mixer_ctl_set_array(ctl, app_type_cfg, length) < 0) { in platform_backend_app_type_cfg_init()
1656 struct mixer_ctl *ctl; in configure_flicker_sensor_input() local
1674 ctl = mixer_get_ctl_by_name(mixer, ctl1); in configure_flicker_sensor_input()
1675 mixer_ctl_set_value(ctl, 0, setting1); in configure_flicker_sensor_input()
1676 ctl = mixer_get_ctl_by_name(mixer, ctl2); in configure_flicker_sensor_input()
1677 mixer_ctl_set_enum_by_string(ctl, setting2); in configure_flicker_sensor_input()
1678 ctl = mixer_get_ctl_by_name(mixer, ctl3); in configure_flicker_sensor_input()
1679 mixer_ctl_set_enum_by_string(ctl, setting3); in configure_flicker_sensor_input()
1680 ctl = mixer_get_ctl_by_name(mixer, ctl4); in configure_flicker_sensor_input()
1681 mixer_ctl_set_enum_by_string(ctl, setting4); in configure_flicker_sensor_input()
1682 ctl = mixer_get_ctl_by_name(mixer, ctl5); in configure_flicker_sensor_input()
1683 mixer_ctl_set_enum_by_string(ctl, setting5); in configure_flicker_sensor_input()
1684 ctl = mixer_get_ctl_by_name(mixer, ctl6); in configure_flicker_sensor_input()
1685 mixer_ctl_set_value(ctl, 0, setting6); in configure_flicker_sensor_input()
1686 ctl = mixer_get_ctl_by_name(mixer, ctl7); in configure_flicker_sensor_input()
1687 mixer_ctl_set_value(ctl, 0, setting7); in configure_flicker_sensor_input()
1688 ctl = mixer_get_ctl_by_name(mixer, ctl8); in configure_flicker_sensor_input()
1689 mixer_ctl_set_enum_by_string(ctl, setting8); in configure_flicker_sensor_input()
2588 struct mixer_ctl *ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_mic_break_det() local
2589 if (!ctl) { in platform_set_mic_break_det()
2595 ret = mixer_ctl_set_value(ctl, 0, enable); in platform_set_mic_break_det()
2657 struct mixer_ctl *ctl; in platform_set_voice_volume() local
2671 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
2672 if (!ctl) { in platform_set_voice_volume()
2678 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
2689 ctl = mixer_get_ctl_by_name(adev->mixer, mute_mixer_ctl_name); in platform_set_voice_volume()
2690 if (!ctl) { in platform_set_voice_volume()
2696 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
2712 struct mixer_ctl *ctl; in platform_set_mic_mute() local
2727 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_mic_mute()
2728 if (!ctl) { in platform_set_mic_mute()
2734 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_mic_mute()
2750 struct mixer_ctl *ctl; in platform_set_device_mute() local
2770 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_device_mute()
2771 if (!ctl) { in platform_set_device_mute()
2779 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_device_mute()
3553 struct mixer_ctl *ctl; in platform_set_hdmi_channels() local
3572 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels()
3573 if (!ctl) { in platform_set_hdmi_channels()
3579 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_hdmi_channels()
3594 struct mixer_ctl *ctl; in platform_edid_get_max_channels() local
3596 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_DATA_BLOCK_MIXER_CTL); in platform_edid_get_max_channels()
3597 if (!ctl) { in platform_edid_get_max_channels()
3603 mixer_ctl_update(ctl); in platform_edid_get_max_channels()
3605 count = mixer_ctl_get_num_values(ctl); in platform_edid_get_max_channels()
3611 ret = mixer_ctl_get_array(ctl, block, count); in platform_edid_get_max_channels()
3644 struct mixer_ctl *ctl; in platform_set_incall_recording_session_id() local
3649 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_incall_recording_session_id()
3650 if (!ctl) { in platform_set_incall_recording_session_id()
3655 num_ctl_values = mixer_ctl_get_num_values(ctl); in platform_set_incall_recording_session_id()
3657 if (mixer_ctl_set_value(ctl, i, session_id)) { in platform_set_incall_recording_session_id()
3685 struct mixer_ctl *ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_incall_recording_session_channels() local
3687 if (!ctl) { in platform_set_incall_recording_session_channels()
3692 num_ctl_values = mixer_ctl_get_num_values(ctl); in platform_set_incall_recording_session_channels()
3694 if (mixer_ctl_set_value(ctl, i, channel_count)) { in platform_set_incall_recording_session_channels()
3900 const struct mixer_ctl *ctl; in ramp_speaker_gain() local
3959 struct mixer_ctl *ctl; in platform_set_swap_mixer() local
3977 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_swap_mixer()
3978 if (!ctl) { in platform_set_swap_mixer()
3983 if (mixer_ctl_set_value(ctl, 0, swap_channels) < 0) { in platform_set_swap_mixer()
4134 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4135 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4137 if (!ctl) { in platform_set_backend_cfg()
4146 ret = mixer_ctl_set_enum_by_string(ctl, "S24_3LE"); in platform_set_backend_cfg()
4148 ret = mixer_ctl_set_enum_by_string(ctl, "S24_LE"); in platform_set_backend_cfg()
4150 ret = mixer_ctl_set_enum_by_string(ctl, "S32_LE"); in platform_set_backend_cfg()
4152 ret = mixer_ctl_set_enum_by_string(ctl, "S16_LE"); in platform_set_backend_cfg()
4169 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4216 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4218 if(!ctl) { in platform_set_backend_cfg()
4227 mixer_ctl_set_enum_by_string(ctl, rate_str); in platform_set_backend_cfg()
4232 struct mixer_ctl *ctl = NULL; in platform_set_backend_cfg() local
4255 ctl = mixer_get_ctl_by_name(adev->mixer, in platform_set_backend_cfg()
4257 if (!ctl) { in platform_set_backend_cfg()
4263 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_backend_cfg()
4620 struct mixer_ctl *ctl; in init_be_dai_name_table() local
4624 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in init_be_dai_name_table()
4625 if (!ctl) { in init_be_dai_name_table()
4632 mixer_ctl_update(ctl); in init_be_dai_name_table()
4634 size = mixer_ctl_get_num_values(ctl); in init_be_dai_name_table()
4651 ret = mixer_ctl_get_array(ctl, (void *)be_dai_name_table, size); in init_be_dai_name_table()
5075 struct mixer_ctl *ctl = mixer_get_ctl_by_name(_platform->adev->mixer, in platform_set_usb_service_interval() local
5077 if (!ctl) { in platform_set_usb_service_interval()
5081 if (mixer_ctl_get_value(ctl, 0) != (int)service_interval) { in platform_set_usb_service_interval()
5082 mixer_ctl_set_value(ctl, 0, service_interval); in platform_set_usb_service_interval()
5106 struct mixer_ctl *ctl = mixer_get_ctl_by_name(_platform->adev->mixer, in platform_get_usb_service_interval() local
5108 if (!ctl) { in platform_get_usb_service_interval()
5112 *service_interval = mixer_ctl_get_value(ctl, 0); in platform_get_usb_service_interval()