Lines Matching refs:snd_device

654     snd_device_t snd_device;  in enable_audio_route()  local
667 snd_device = usecase->in_snd_device; in enable_audio_route()
694 snd_device = usecase->out_snd_device; in enable_audio_route()
703 platform_add_backend_name(adev->platform, mixer_path, snd_device); in enable_audio_route()
715 snd_device_t snd_device; in disable_audio_route() local
723 snd_device = usecase->in_snd_device; in disable_audio_route()
725 snd_device = usecase->out_snd_device; in disable_audio_route()
731 platform_add_backend_name(adev->platform, mixer_path, snd_device); in disable_audio_route()
749 snd_device_t snd_device) in enable_snd_device() argument
754 if (snd_device < SND_DEVICE_MIN || in enable_snd_device()
755 snd_device >= SND_DEVICE_MAX) { in enable_snd_device()
756 ALOGE("%s: Invalid sound device %d", __func__, snd_device); in enable_snd_device()
760 platform_send_audio_calibration(adev->platform, snd_device); in enable_snd_device()
762 if (adev->snd_dev_ref_cnt[snd_device] >= 1) { in enable_snd_device()
764 __func__, snd_device, platform_get_snd_device_name(snd_device)); in enable_snd_device()
770 audio_extn_sound_trigger_update_device_status(snd_device, in enable_snd_device()
776 audio_extn_dsm_feedback_enable(adev, snd_device, true); in enable_snd_device()
778 if ((snd_device == SND_DEVICE_OUT_SPEAKER || in enable_snd_device()
779 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE || in enable_snd_device()
780 snd_device == SND_DEVICE_OUT_SPEAKER_REVERSE || in enable_snd_device()
781 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && in enable_snd_device()
783 if (platform_get_snd_device_acdb_id(snd_device) < 0) { in enable_snd_device()
786 if (audio_extn_spkr_prot_start_processing(snd_device)) { in enable_snd_device()
790 } else if (platform_can_split_snd_device(snd_device, in enable_snd_device()
796 platform_set_speaker_gain_in_combo(adev, snd_device, true); in enable_snd_device()
799 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) { in enable_snd_device()
804 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name); in enable_snd_device()
806 if (is_a2dp_device(snd_device)) { in enable_snd_device()
818 adev->snd_dev_ref_cnt[snd_device]++; in enable_snd_device()
825 snd_device_t snd_device) in disable_snd_device() argument
830 if (snd_device < SND_DEVICE_MIN || in disable_snd_device()
831 snd_device >= SND_DEVICE_MAX) { in disable_snd_device()
832 ALOGE("%s: Invalid sound device %d", __func__, snd_device); in disable_snd_device()
835 if (adev->snd_dev_ref_cnt[snd_device] <= 0) { in disable_snd_device()
839 audio_extn_tfa_98xx_disable_speaker(snd_device); in disable_snd_device()
841 adev->snd_dev_ref_cnt[snd_device]--; in disable_snd_device()
842 if (adev->snd_dev_ref_cnt[snd_device] == 0) { in disable_snd_device()
843 audio_extn_dsm_feedback_enable(adev, snd_device, false); in disable_snd_device()
845 if (is_a2dp_device(snd_device)) { in disable_snd_device()
849 if ((snd_device == SND_DEVICE_OUT_SPEAKER || in disable_snd_device()
850 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE || in disable_snd_device()
851 snd_device == SND_DEVICE_OUT_SPEAKER_REVERSE || in disable_snd_device()
852 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && in disable_snd_device()
854 audio_extn_spkr_prot_stop_processing(snd_device); in disable_snd_device()
863 } else if (platform_can_split_snd_device(snd_device, in disable_snd_device()
869 platform_set_speaker_gain_in_combo(adev, snd_device, false); in disable_snd_device()
872 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) { in disable_snd_device()
877 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name); in disable_snd_device()
880 audio_extn_sound_trigger_update_device_status(snd_device, in disable_snd_device()
1138 snd_device_t snd_device) in check_and_route_playback_usecases() argument
1147 snd_device); in check_and_route_playback_usecases()
1152 if ((SND_DEVICE_OUT_BT_A2DP == snd_device || in check_and_route_playback_usecases()
1153 SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP == snd_device || in check_and_route_playback_usecases()
1154 SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_A2DP == snd_device) && in check_and_route_playback_usecases()
1180 (usecase->out_snd_device != snd_device && in check_and_route_playback_usecases()
1183 platform_check_backends_match(snd_device, usecase->out_snd_device))) { in check_and_route_playback_usecases()
1206 snd_device); in check_and_route_playback_usecases()
1232 snd_device_t snd_device) in check_and_route_capture_usecases() argument
1239 platform_check_and_set_capture_backend_cfg(adev, uc_info, snd_device); in check_and_route_capture_usecases()
1258 usecase->in_snd_device != snd_device && in check_and_route_capture_usecases()
1261 platform_check_backends_match(snd_device,\ in check_and_route_capture_usecases()
1284 enable_snd_device(adev, snd_device); in check_and_route_capture_usecases()
1294 usecase->in_snd_device = snd_device; in check_and_route_capture_usecases()
6349 snd_device_t snd_device; in adev_verify_devices() local