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

Commit 319b1cdd authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Vikram Panduranga
Browse files

hal: Fix compilation error when COMPRESS flag is defined

 -change "else if" condition to "if" to fix compilation error
  when COMPRESS_ENABLED flag is defined.

Change-Id: Iab7412b202daaa08f5f85f21ec1e990447dc814f
parent a64cbf64
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5556,7 +5556,7 @@ int adev_open_output_stream(struct audio_hw_device *dev,
        out->config.rate = out->sample_rate;
        out->config.rate = out->sample_rate;


#else
#else
    } else if ((out->dev->mode == AUDIO_MODE_IN_COMMUNICATION || voice_extn_compress_voip_is_active(out->dev)) &&
    if ((out->dev->mode == AUDIO_MODE_IN_COMMUNICATION || voice_extn_compress_voip_is_active(out->dev)) &&
               (out->flags == (AUDIO_OUTPUT_FLAG_DIRECT | AUDIO_OUTPUT_FLAG_VOIP_RX)) &&
               (out->flags == (AUDIO_OUTPUT_FLAG_DIRECT | AUDIO_OUTPUT_FLAG_VOIP_RX)) &&
               (voice_extn_compress_voip_is_config_supported(config))) {
               (voice_extn_compress_voip_is_config_supported(config))) {
        ret = voice_extn_compress_voip_open_output_stream(out);
        ret = voice_extn_compress_voip_open_output_stream(out);