diff options
author | Mingming Yin <mingming@codeaurora.org> | 2014-09-16 17:41:33 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-09-18 14:23:26 -0700 |
commit | 460e4bb58f3667c5c9541f46cc0b017439b2c88e (patch) | |
tree | d420b4c8ca9377c1d6fbd0d619870a7b0a363882 | |
parent | 5a7092aa0d22d1d135869dbc57ab0b05a7f91897 (diff) | |
download | android_hardware_qcom_audio-460e4bb58f3667c5c9541f46cc0b017439b2c88e.tar.gz android_hardware_qcom_audio-460e4bb58f3667c5c9541f46cc0b017439b2c88e.tar.bz2 android_hardware_qcom_audio-460e4bb58f3667c5c9541f46cc0b017439b2c88e.zip |
hal: fix for open input failure while SSR is not enabled.
- Do not return failure if SSR is not enabled.
Change-Id: I49d1e47b700165f8d9fd073792eeef57b40a5cb4
-rw-r--r-- | hal/audio_hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 3e025b9e..a2bca399 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -2710,8 +2710,7 @@ static int adev_open_input_stream(struct audio_hw_device *dev, goto err_open; } } else { - ret = -EINVAL; - goto err_open; + ALOGW("%s: surround sound recording is not supported", __func__); } } else if (audio_extn_compr_cap_enabled() && audio_extn_compr_cap_format_supported(config->format) && |