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

Commit 54b66b52 authored by Arne Coucheron's avatar Arne Coucheron
Browse files

Partial revert of "hal: update input source type during open input stream"

Causes issue with compressed VoIP. None of the newer HAL's
have this code present, so remove it.

Partial reverts commit 7e6ba2e6.

Change-Id: I6ae3bcdbfe31e7958973b3f3bd7bfefdedc6b3c0
parent 29b4945e
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -3240,13 +3240,6 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
                                            channel_count,
                                            channel_count,
                                            is_low_latency);
                                            is_low_latency);
        in->config.period_size = buffer_size / frame_size;
        in->config.period_size = buffer_size / frame_size;
        if ((in->source == AUDIO_SOURCE_VOICE_COMMUNICATION) &&
               (in->dev->mode == AUDIO_MODE_IN_COMMUNICATION) &&
               (voice_extn_compress_voip_is_format_supported(in->format)) &&
               (in->config.rate == 8000 || in->config.rate == 16000) &&
               (audio_channel_count_from_in_mask(in->channel_mask) == 1)) {
            voice_extn_compress_voip_open_input_stream(in);
        }
    }
    }


    *stream_in = &in->stream;
    *stream_in = &in->stream;