Home | History | Annotate | Download | only in hal

Lines Matching defs:snd_device

512     snd_device_t snd_device;
521 snd_device = usecase->in_snd_device;
523 snd_device = usecase->out_snd_device;
527 platform_add_backend_name(adev->platform, mixer_path, snd_device);
538 snd_device_t snd_device;
546 snd_device = usecase->in_snd_device;
548 snd_device = usecase->out_snd_device;
550 platform_add_backend_name(adev->platform, mixer_path, snd_device);
559 snd_device_t snd_device)
564 if (snd_device < SND_DEVICE_MIN ||
565 snd_device >= SND_DEVICE_MAX) {
566 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
570 platform_send_audio_calibration(adev->platform, snd_device);
572 if (adev->snd_dev_ref_cnt[snd_device] >= 1) {
573 ALOGV("%s: snd_device(%d: %s) is already active",
574 __func__, snd_device, platform_get_snd_device_name(snd_device));
580 audio_extn_sound_trigger_update_device_status(snd_device,
586 audio_extn_dsm_feedback_enable(adev, snd_device, true);
588 if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
589 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
591 if (audio_extn_spkr_prot_get_acdb_id(snd_device) < 0) {
594 if (audio_extn_spkr_prot_start_processing(snd_device)) {
598 } else if (platform_can_split_snd_device(snd_device,
604 platform_set_speaker_gain_in_combo(adev, snd_device, true);
607 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) {
612 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
616 adev->snd_dev_ref_cnt[snd_device]++;
623 snd_device_t snd_device)
628 if (snd_device < SND_DEVICE_MIN ||
629 snd_device >= SND_DEVICE_MAX) {
630 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
633 if (adev->snd_dev_ref_cnt[snd_device] <= 0) {
637 audio_extn_tfa_98xx_disable_speaker(snd_device);
639 adev->snd_dev_ref_cnt[snd_device]--;
640 if (adev->snd_dev_ref_cnt[snd_device] == 0) {
641 audio_extn_dsm_feedback_enable(adev, snd_device, false);
642 if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
643 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
645 audio_extn_spkr_prot_stop_processing(snd_device);
646 } else if (platform_can_split_snd_device(snd_device,
652 platform_set_speaker_gain_in_combo(adev, snd_device, false);
655 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) {
660 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
663 audio_extn_sound_trigger_update_device_status(snd_device,
674 d1, d11, d2 - SND_DEVICE enums
690 use ANDROID_DEVICE_OUT enums to match devices since SND_DEVICE enums may vary
749 ALOGW("%s failed to split snd_device %d",
780 snd_device_t snd_device)
787 platform_check_and_set_playback_backend_cfg(adev, uc_info, snd_device);
808 usecase->out_snd_device != snd_device &&
810 platform_check_backends_match(snd_device, usecase->out_snd_device)) {
833 snd_device);
853 snd_device_t snd_device)
860 platform_check_and_set_capture_backend_cfg(adev, uc_info, snd_device);
879 usecase->in_snd_device != snd_device &&
901 enable_snd_device(adev, snd_device);
911 usecase->in_snd_device = snd_device;
3996 snd_device_t snd_device;