Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb7e07ee authored by Dhanalakshmi Siddani's avatar Dhanalakshmi Siddani
Browse files

hal: Remove redundant code to fix compilation error

Remove duplication of code for telephony device check

Change-Id: I1770751dcca4fb8a34aeac15b8e0120a62ce1118
CRs-Fixed: 1081411
parent 0b1488e0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;