Lines Matching refs:ctl
832 struct mixer_ctl *ctl; in get_cvd_version() local
836 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
837 if (!ctl) { in get_cvd_version()
841 mixer_ctl_update(ctl); in get_cvd_version()
843 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
847 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1632 struct mixer_ctl *ctl; in platform_set_voice_volume() local
1645 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
1646 if (!ctl) { in platform_set_voice_volume()
1652 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
1668 struct mixer_ctl *ctl; in platform_set_mic_mute() local
1676 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_mic_mute()
1677 if (!ctl) { in platform_set_mic_mute()
1683 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_mic_mute()
1699 struct mixer_ctl *ctl; in platform_set_device_mute() local
1719 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_device_mute()
1720 if (!ctl) { in platform_set_device_mute()
1728 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_device_mute()
2187 struct mixer_ctl *ctl; in platform_set_hdmi_channels() local
2206 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels()
2207 if (!ctl) { in platform_set_hdmi_channels()
2213 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_hdmi_channels()
2228 struct mixer_ctl *ctl; in platform_edid_get_max_channels() local
2230 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_DATA_BLOCK_MIXER_CTL); in platform_edid_get_max_channels()
2231 if (!ctl) { in platform_edid_get_max_channels()
2237 mixer_ctl_update(ctl); in platform_edid_get_max_channels()
2239 count = mixer_ctl_get_num_values(ctl); in platform_edid_get_max_channels()
2245 ret = mixer_ctl_get_array(ctl, block, count); in platform_edid_get_max_channels()
2276 struct mixer_ctl *ctl; in platform_set_slowtalk() local
2282 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_slowtalk()
2283 if (!ctl) { in platform_set_slowtalk()
2289 ret = mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_slowtalk()
2306 struct mixer_ctl *ctl; in set_hd_voice() local
2313 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in set_hd_voice()
2314 if (!ctl) { in set_hd_voice()
2320 ret = mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in set_hd_voice()
2442 struct mixer_ctl *ctl; in platform_set_incall_recording_session_id() local
2447 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_incall_recording_session_id()
2448 if (!ctl) { in platform_set_incall_recording_session_id()
2453 num_ctl_values = mixer_ctl_get_num_values(ctl); in platform_set_incall_recording_session_id()
2455 if (mixer_ctl_set_value(ctl, i, session_id)) { in platform_set_incall_recording_session_id()
2759 struct mixer_ctl *ctl; in platform_set_codec_backend_cfg() local
2760 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_codec_backend_cfg()
2761 if (!ctl) { in platform_set_codec_backend_cfg()
2768 mixer_ctl_set_enum_by_string(ctl, "S24_LE"); in platform_set_codec_backend_cfg()
2770 mixer_ctl_set_enum_by_string(ctl, "S16_LE"); in platform_set_codec_backend_cfg()
2789 struct mixer_ctl *ctl; in platform_set_codec_backend_cfg() local
2815 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_codec_backend_cfg()
2816 if(!ctl) { in platform_set_codec_backend_cfg()
2823 mixer_ctl_set_enum_by_string(ctl, rate_str); in platform_set_codec_backend_cfg()