Lines Matching refs:adev
38 static int set_stream_app_type_mixer_ctrl(struct audio_device *adev,
58 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
119 static int audio_extn_utils_send_app_type_cfg_hfp(struct audio_device *adev,
156 rc = platform_get_default_app_type_v2(adev->platform, PCM_PLAYBACK, &app_type);
161 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type,
168 rc = platform_get_default_app_type_v2(adev->platform, PCM_CAPTURE, &app_type);
171 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type,
187 rc = platform_get_default_app_type_v2(adev->platform, PCM_CAPTURE, &app_type);
189 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type,
197 rc = platform_get_default_app_type_v2(adev->platform, PCM_PLAYBACK, &app_type);
199 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type,
213 static int derive_capture_app_type_cfg(struct audio_device *adev,
226 platform_check_and_update_copp_sample_rate(adev->platform,
235 platform_get_app_type_v2(adev->platform,
243 platform_get_app_type_v2(adev->platform,
250 platform_get_app_type_v2(adev->platform,
266 static int derive_playback_app_type_cfg(struct audio_device *adev,
282 platform_check_and_update_copp_sample_rate(adev->platform,
290 platform_get_app_type_v2(adev->platform,
298 platform_get_app_type_v2(adev->platform,
306 platform_get_app_type_v2(adev->platform,
313 platform_get_app_type_v2(adev->platform,
329 static int derive_acdb_dev_id(struct audio_device *adev __unused,
343 int audio_extn_utils_send_app_type_cfg(struct audio_device *adev,
357 return audio_extn_utils_send_app_type_cfg_hfp(adev, usecase);
364 ret = derive_playback_app_type_cfg(adev,
369 ret = derive_capture_app_type_cfg(adev,
384 acdb_dev_id = derive_acdb_dev_id(adev, usecase);
391 set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, acdb_dev_id,
399 int audio_extn_utils_send_app_type_gain(struct audio_device *adev,
406 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
423 void audio_extn_utils_send_audio_calibration(struct audio_device *adev,
434 platform_send_audio_calibration_v2(adev->platform, usecase,
442 platform_send_audio_calibration_v2(adev->platform, usecase,
447 platform_get_default_app_type_v2(adev->platform, type, &app_type);
448 platform_send_audio_calibration_v2(adev->platform, usecase, app_type,