diff options
author | Eric Laurent <elaurent@google.com> | 2015-07-06 17:54:15 -0700 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2019-09-28 00:23:56 +0200 |
commit | 6fddf05a903a91b03c4c424fd201ef738390caef (patch) | |
tree | c474a045fb0a714e87ada1d1f47c16a86ee6f6ea | |
parent | f371dbd40d5599525b97eac36069fe0f7bc66a3f (diff) | |
download | hardware_qcom_audio-6fddf05a903a91b03c4c424fd201ef738390caef.tar.gz hardware_qcom_audio-6fddf05a903a91b03c4c424fd201ef738390caef.tar.bz2 hardware_qcom_audio-6fddf05a903a91b03c4c424fd201ef738390caef.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 1bbe67af..443a3122 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 |