hal: Ignore ultrasound usecase in select_devices()

This matches stock audio HAL from veux.

Change-Id: I1abb3b703024abe1b4723e11e82016fcbb9dbcc2
This commit is contained in:
Alexander Winkowski 2024-10-28 17:55:26 +00:00
parent 43de748dd5
commit 1ff334b540
No known key found for this signature in database
GPG Key ID: 72762A66704CDE44
1 changed files with 8 additions and 0 deletions

View File

@ -3053,6 +3053,14 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
return -EINVAL;
}
#ifdef ELLIPTIC_ULTRASOUND_ENABLED
if (usecase->id == USECASE_AUDIO_ULTRASOUND_RX ||
usecase->id == USECASE_AUDIO_ULTRASOUND_TX) {
ALOGE("%s: Ultrasound usecase(%d)", __func__, uc_id);
return -EINVAL;
}
#endif
if ((usecase->type == VOICE_CALL) ||
(usecase->type == VOIP_CALL) ||
(usecase->type == PCM_HFP_CALL)||