diff options
author | Eric Laurent <elaurent@google.com> | 2015-07-06 17:54:15 -0700 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2016-05-11 00:12:22 +0200 |
commit | e6292f10c520a7549bb1b5a1f48b5387670f7894 (patch) | |
tree | a3c474117d77a0adbd36a7b6fdc3149307b14573 | |
parent | 52a8a8b2e29caa33b837d44ae363e05339eff417 (diff) | |
download | hardware_qcom_audio-e6292f10c520a7549bb1b5a1f48b5387670f7894.tar.gz hardware_qcom_audio-e6292f10c520a7549bb1b5a1f48b5387670f7894.tar.bz2 hardware_qcom_audio-e6292f10c520a7549bb1b5a1f48b5387670f7894.zip |
audio HAL: do not stop capture on overrun
Set stop threshold so that PCM driver does
not stop capture in case of overrun.
Bug: 19209668.
Change-Id: I89b2cae617d73c17c859e9f1c192b4f3db79cc18
-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 4eeb4d4d..032343f4 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -111,6 +111,8 @@ struct pcm_config pcm_config_audio_capture = { .channels = 2, .period_count = AUDIO_CAPTURE_PERIOD_COUNT, .format = PCM_FORMAT_S16_LE, + .stop_threshold = INT_MAX, + .avail_min = 0, }; #define AFE_PROXY_CHANNEL_COUNT 2 |