Lines Matching refs:snd_device
651 snd_device_t snd_device; in enable_audio_route() local
664 snd_device = usecase->in_snd_device; in enable_audio_route()
691 snd_device = usecase->out_snd_device; in enable_audio_route()
700 platform_add_backend_name(adev->platform, mixer_path, snd_device); in enable_audio_route()
712 snd_device_t snd_device; in disable_audio_route() local
720 snd_device = usecase->in_snd_device; in disable_audio_route()
722 snd_device = usecase->out_snd_device; in disable_audio_route()
728 platform_add_backend_name(adev->platform, mixer_path, snd_device); in disable_audio_route()
746 snd_device_t snd_device) in enable_snd_device() argument
751 if (snd_device < SND_DEVICE_MIN || in enable_snd_device()
752 snd_device >= SND_DEVICE_MAX) { in enable_snd_device()
753 ALOGE("%s: Invalid sound device %d", __func__, snd_device); in enable_snd_device()
757 platform_send_audio_calibration(adev->platform, snd_device); in enable_snd_device()
759 if (adev->snd_dev_ref_cnt[snd_device] >= 1) { in enable_snd_device()
761 __func__, snd_device, platform_get_snd_device_name(snd_device)); in enable_snd_device()
767 audio_extn_sound_trigger_update_device_status(snd_device, in enable_snd_device()
773 audio_extn_dsm_feedback_enable(adev, snd_device, true); in enable_snd_device()
775 if ((snd_device == SND_DEVICE_OUT_SPEAKER || in enable_snd_device()
776 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE || in enable_snd_device()
777 snd_device == SND_DEVICE_OUT_SPEAKER_REVERSE || in enable_snd_device()
778 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && in enable_snd_device()
780 if (platform_get_snd_device_acdb_id(snd_device) < 0) { in enable_snd_device()
783 if (audio_extn_spkr_prot_start_processing(snd_device)) { in enable_snd_device()
787 } else if (platform_can_split_snd_device(snd_device, in enable_snd_device()
793 platform_set_speaker_gain_in_combo(adev, snd_device, true); in enable_snd_device()
796 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) { in enable_snd_device()
801 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name); in enable_snd_device()
803 if (is_a2dp_device(snd_device) && in enable_snd_device()
812 adev->snd_dev_ref_cnt[snd_device]++; in enable_snd_device()
819 snd_device_t snd_device) in disable_snd_device() argument
824 if (snd_device < SND_DEVICE_MIN || in disable_snd_device()
825 snd_device >= SND_DEVICE_MAX) { in disable_snd_device()
826 ALOGE("%s: Invalid sound device %d", __func__, snd_device); in disable_snd_device()
829 if (adev->snd_dev_ref_cnt[snd_device] <= 0) { in disable_snd_device()
833 audio_extn_tfa_98xx_disable_speaker(snd_device); in disable_snd_device()
835 adev->snd_dev_ref_cnt[snd_device]--; in disable_snd_device()
836 if (adev->snd_dev_ref_cnt[snd_device] == 0) { in disable_snd_device()
837 audio_extn_dsm_feedback_enable(adev, snd_device, false); in disable_snd_device()
839 if (is_a2dp_device(snd_device)) in disable_snd_device()
842 if ((snd_device == SND_DEVICE_OUT_SPEAKER || in disable_snd_device()
843 snd_device == SND_DEVICE_OUT_SPEAKER_SAFE || in disable_snd_device()
844 snd_device == SND_DEVICE_OUT_SPEAKER_REVERSE || in disable_snd_device()
845 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) && in disable_snd_device()
847 audio_extn_spkr_prot_stop_processing(snd_device); in disable_snd_device()
856 } else if (platform_can_split_snd_device(snd_device, in disable_snd_device()
862 platform_set_speaker_gain_in_combo(adev, snd_device, false); in disable_snd_device()
865 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) { in disable_snd_device()
870 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name); in disable_snd_device()
873 audio_extn_sound_trigger_update_device_status(snd_device, in disable_snd_device()
1131 snd_device_t snd_device) in check_and_route_playback_usecases() argument
1140 snd_device); in check_and_route_playback_usecases()
1145 if ((SND_DEVICE_OUT_BT_A2DP == snd_device || in check_and_route_playback_usecases()
1146 SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP == snd_device || in check_and_route_playback_usecases()
1147 SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_A2DP == snd_device) && in check_and_route_playback_usecases()
1173 (usecase->out_snd_device != snd_device && in check_and_route_playback_usecases()
1176 platform_check_backends_match(snd_device, usecase->out_snd_device))) { in check_and_route_playback_usecases()
1199 snd_device); in check_and_route_playback_usecases()
1219 snd_device_t snd_device) in check_and_route_capture_usecases() argument
1226 platform_check_and_set_capture_backend_cfg(adev, uc_info, snd_device); in check_and_route_capture_usecases()
1245 usecase->in_snd_device != snd_device && in check_and_route_capture_usecases()
1248 platform_check_backends_match(snd_device,\ in check_and_route_capture_usecases()
1271 enable_snd_device(adev, snd_device); in check_and_route_capture_usecases()
1281 usecase->in_snd_device = snd_device; in check_and_route_capture_usecases()
6223 snd_device_t snd_device; in adev_verify_devices() local