audio: Reject incall record request when mode is not IN_CALL
- If application selects AUDIO_SOURCE_VOICE_CALL when voice call is
not active, audio HAL is selecting afe-proxy use case which is
wrong. afe-proxy usecase/device expected to be selected during
USB Voice call scenario only
- Fix is to fail opening the input stream with
AUDIO_DEVICE_IN_TELEPHONY_RX or AUDIO_DEVICE_IN_VOICE_CALL if
current mode is not IN_CALL
CRs-Fixed: 772386
Change-Id: I8ee3e72daec86e26d05b01a117d7a01f7f6b69a8
1 file changed