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

Commit 8a17fe3f authored by Shalini Manjunatha's avatar Shalini Manjunatha
Browse files

HAL: Modified condition to avoid audio Tx path for legacy targets

  changed condition to make sure legacy targets still uses
  compress-voip usecase for Tx path instead of unsupported
  USECASE_AUDIO_RECORD_VOIP usecase

Change-Id: Ifc1c39693aa73c50d881ac149a348065739b1de5
parent e3d362ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
 * Not a Contribution.
 *
 * Copyright (C) 2013 The Android Open Source Project
@@ -8943,6 +8943,7 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
        in->config.rate = config->sample_rate;
        in->af_period_multiplier = 1;
    } else if (in->source == AUDIO_SOURCE_VOICE_COMMUNICATION &&
               (!voice_extn_is_compress_voip_supported()) &&
               in->flags & AUDIO_INPUT_FLAG_VOIP_TX &&
               (config->sample_rate == 8000 ||
                config->sample_rate == 16000 ||