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

Commit 8e34a2fb authored by Ramjee Singh's avatar Ramjee Singh Committed by Gerrit - the friendly Code Review server
Browse files

hal: update channel mask for voip rx

- Issue seen with skype stereo voip call.
- Update channel count to stereo for pcm
  config in voip rx path.

Change-Id: I23ec7115a616b58103fc74eeff2f1f7c9b193a43
parent 57f054fa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7881,6 +7881,8 @@ int adev_open_output_stream(struct audio_hw_device *dev,
                out->config.rate = out->sample_rate;
                uint32_t channel_count =
                        audio_channel_count_from_out_mask(out->channel_mask);
                out->config.channels = channel_count;

                uint32_t buffer_size = get_stream_buffer_size(DEFAULT_VOIP_BUF_DURATION_MS,
                                                              out->sample_rate, out->format,
                                                              channel_count, false);