hal: Ignore ultrasound usecase in select_devices()
This matches stock audio HAL from veux. Change-Id: I1abb3b703024abe1b4723e11e82016fcbb9dbcc2
This commit is contained in:
parent
43de748dd5
commit
1ff334b540
|
@ -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)||
|
||||
|
|
Loading…
Reference in New Issue