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:
parent
0b1488e0fb
commit
bb7e07ee7b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue