diff options
| author | Steve Kondik <steve@cyngn.com> | 2016-09-27 02:48:22 -0700 |
|---|---|---|
| committer | Ethan Chen <intervigil@gmail.com> | 2016-10-03 13:35:03 -0700 |
| commit | 2e93e09dd14a7a23571ed9c99c40528d92629494 (patch) | |
| tree | a7585fd8f22ceb1b6aabaac8e96d3dfda70e50aa | |
| parent | a828eba1169fda341cc12e61424f2a352a33e49c (diff) | |
| download | hardware_qcom_audio-cm-14.0-caf-8952.tar.gz hardware_qcom_audio-cm-14.0-caf-8952.tar.bz2 hardware_qcom_audio-cm-14.0-caf-8952.zip | |
hal: Don't try to record using 3-mic unless we mean itcm-14.0-caf-8952
* The check here isn't sufficient for the case where SSR
is disabled. The original code stubs out the relevant
functions to all return 0, which actually satisfies the
condition. The result is that all audio is sent
to oblivion.
Change-Id: I6a7e9bea3597c31543ba5637813784e3730b7a33
| -rw-r--r-- | hal/audio_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 878ed8c6..e02b9ed1 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -3859,8 +3859,10 @@ static int adev_open_input_stream(struct audio_hw_device *dev, in->config = pcm_config_afe_proxy_record; in->config.channels = channel_count; in->config.rate = config->sample_rate; +#ifdef SSR_ENABLED } else if (!audio_extn_ssr_check_and_set_usecase(in)) { ALOGD("%s: created surround sound session succesfully",__func__); +#endif } else if (audio_extn_compr_cap_enabled() && audio_extn_compr_cap_format_supported(config->format) && (in->dev->mode != AUDIO_MODE_IN_COMMUNICATION)) { |
