Home | History | Annotate | Download | only in hal

Lines Matching refs:snd_device

537     snd_device_t snd_device;
546 snd_device = usecase->in_snd_device;
548 snd_device = usecase->out_snd_device;
551 platform_add_backend_name(adev->platform, mixer_path, snd_device);
562 snd_device_t snd_device;
570 snd_device = usecase->in_snd_device;
572 snd_device = usecase->out_snd_device;
574 platform_add_backend_name(adev->platform, mixer_path, snd_device);
583 snd_device_t snd_device)
588 if (snd_device < SND_DEVICE_MIN ||
589 snd_device >= SND_DEVICE_MAX) {
590 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
594 platform_send_audio_calibration(adev->platform, snd_device);
596 if (adev->snd_dev_ref_cnt[snd_device] >= 1) {
597 ALOGV("%s: snd_device(%d: %s) is already active",
598 __func__, snd_device, platform_get_snd_device_name(snd_device));
604 audio_extn_sound_trigger_update_device_status(snd_device,
610 audio_extn_dsm_feedback_enable(adev, snd_device, true);
612 if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
613 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
615 if (audio_extn_spkr_prot_get_acdb_id(snd_device) < 0) {
618 if (audio_extn_spkr_prot_start_processing(snd_device)) {
622 } else if (platform_can_split_snd_device(snd_device,
628 platform_set_speaker_gain_in_combo(adev, snd_device, true);
631 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) {
636 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
640 adev->snd_dev_ref_cnt[snd_device]++;
647 snd_device_t snd_device)
652 if (snd_device < SND_DEVICE_MIN ||
653 snd_device >= SND_DEVICE_MAX) {
654 ALOGE("%s: Invalid sound device %d", __func__, snd_device);
657 if (adev->snd_dev_ref_cnt[snd_device] <= 0) {
661 adev->snd_dev_ref_cnt[snd_device]--;
662 if (adev->snd_dev_ref_cnt[snd_device] == 0) {
663 audio_extn_dsm_feedback_enable(adev, snd_device, false);
664 if ((snd_device == SND_DEVICE_OUT_SPEAKER ||
665 snd_device == SND_DEVICE_OUT_VOICE_SPEAKER) &&
667 audio_extn_spkr_prot_stop_processing(snd_device);
668 } else if (platform_can_split_snd_device(snd_device,
674 platform_set_speaker_gain_in_combo(adev, snd_device, false);
677 if (platform_get_snd_device_name_extn(adev->platform, snd_device, device_name) < 0 ) {
682 ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, device_name);
685 audio_extn_sound_trigger_update_device_status(snd_device,
696 d1, d11, d2 - SND_DEVICE enums
712 use ANDROID_DEVICE_OUT enums to match devices since SND_DEVICE enums may vary
771 ALOGW("%s failed to split snd_device %d",
802 snd_device_t snd_device)
828 usecase->out_snd_device != snd_device &&
830 platform_check_backends_match(snd_device, usecase->out_snd_device)) {
853 snd_device);
873 snd_device_t snd_device)
880 platform_check_and_set_capture_backend_cfg(adev, uc_info, snd_device);
899 usecase->in_snd_device != snd_device &&
921 enable_snd_device(adev, snd_device);
931 usecase->in_snd_device = snd_device;
3531 snd_device_t snd_device;