hal: Remove redundant code to fix compilation error

Remove duplication of code for telephony device check

Change-Id: I1770751dcca4fb8a34aeac15b8e0120a62ce1118
CRs-Fixed: 1081411
This commit is contained in:
Dhanalakshmi Siddani 2016-12-08 13:06:51 +05:30
parent 0b1488e0fb
commit bb7e07ee7b
1 changed files with 0 additions and 5 deletions

View File

@ -4712,11 +4712,6 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
pthread_mutex_unlock(&adev->lock);
/* Update config params with the requested sample rate and channels */
if (in->device == AUDIO_DEVICE_IN_TELEPHONY_RX) {
if (adev->mode != AUDIO_MODE_IN_CALL) {
ret = -EINVAL;
goto err_open;
}
if ((in->device == AUDIO_DEVICE_IN_TELEPHONY_RX) &&
(adev->mode != AUDIO_MODE_IN_CALL)) {
ret = -EINVAL;