Lines Matching refs:adev

38 static int set_stream_app_type_mixer_ctrl(struct audio_device *adev,  in set_stream_app_type_mixer_ctrl()  argument
58 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in set_stream_app_type_mixer_ctrl()
119 static int audio_extn_utils_send_app_type_cfg_hfp(struct audio_device *adev, in audio_extn_utils_send_app_type_cfg_hfp() argument
154 rc = platform_get_default_app_type_v2(adev->platform, PCM_PLAYBACK, &app_type); in audio_extn_utils_send_app_type_cfg_hfp()
159 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, in audio_extn_utils_send_app_type_cfg_hfp()
166 rc = platform_get_default_app_type_v2(adev->platform, PCM_CAPTURE, &app_type); in audio_extn_utils_send_app_type_cfg_hfp()
169 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, in audio_extn_utils_send_app_type_cfg_hfp()
185 rc = platform_get_default_app_type_v2(adev->platform, PCM_CAPTURE, &app_type); in audio_extn_utils_send_app_type_cfg_hfp()
187 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, in audio_extn_utils_send_app_type_cfg_hfp()
195 rc = platform_get_default_app_type_v2(adev->platform, PCM_PLAYBACK, &app_type); in audio_extn_utils_send_app_type_cfg_hfp()
197 rc = set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, in audio_extn_utils_send_app_type_cfg_hfp()
211 static int derive_capture_app_type_cfg(struct audio_device *adev, in derive_capture_app_type_cfg() argument
224 platform_check_and_update_copp_sample_rate(adev->platform, in derive_capture_app_type_cfg()
233 platform_get_app_type_v2(adev->platform, in derive_capture_app_type_cfg()
241 platform_get_app_type_v2(adev->platform, in derive_capture_app_type_cfg()
248 platform_get_app_type_v2(adev->platform, in derive_capture_app_type_cfg()
264 static int derive_playback_app_type_cfg(struct audio_device *adev, in derive_playback_app_type_cfg() argument
280 platform_check_and_update_copp_sample_rate(adev->platform, in derive_playback_app_type_cfg()
292 platform_get_app_type_v2(adev->platform, in derive_playback_app_type_cfg()
300 platform_get_app_type_v2(adev->platform, in derive_playback_app_type_cfg()
308 platform_get_app_type_v2(adev->platform, in derive_playback_app_type_cfg()
315 platform_get_app_type_v2(adev->platform, in derive_playback_app_type_cfg()
331 static int derive_acdb_dev_id(struct audio_device *adev __unused, in derive_acdb_dev_id()
345 int audio_extn_utils_send_app_type_cfg(struct audio_device *adev, in audio_extn_utils_send_app_type_cfg() argument
361 return audio_extn_utils_send_app_type_cfg_hfp(adev, usecase); in audio_extn_utils_send_app_type_cfg()
368 ret = derive_playback_app_type_cfg(adev, in audio_extn_utils_send_app_type_cfg()
373 ret = derive_capture_app_type_cfg(adev, in audio_extn_utils_send_app_type_cfg()
409 set_stream_app_type_mixer_ctrl(adev, pcm_device_id, app_type, acdb_dev_id, in audio_extn_utils_send_app_type_cfg()
418 int audio_extn_utils_send_app_type_gain(struct audio_device *adev, in audio_extn_utils_send_app_type_gain() argument
425 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_utils_send_app_type_gain()
442 void audio_extn_utils_send_audio_calibration(struct audio_device *adev, in audio_extn_utils_send_audio_calibration() argument
453 platform_send_audio_calibration_v2(adev->platform, usecase, in audio_extn_utils_send_audio_calibration()
461 platform_send_audio_calibration_v2(adev->platform, usecase, in audio_extn_utils_send_audio_calibration()
466 platform_get_default_app_type_v2(adev->platform, type, &app_type); in audio_extn_utils_send_audio_calibration()
467 platform_send_audio_calibration_v2(adev->platform, usecase, app_type, in audio_extn_utils_send_audio_calibration()