commit | 269fa0b97c83bc459fae22803a7eb939e994568b | [log] [tgz] |
---|---|---|
author | Joshua Kessinger <jkessinger@google.com> | Wed Dec 28 17:05:45 2016 -0800 |
committer | Joshua Kessinger <jkessinger@google.com> | Wed Jan 04 18:31:07 2017 +0000 |
tree | b2c9a6dfbd1beea4be655febc7b11ec3ceb4954a | |
parent | 8f104ab776924bbedf343ed2441c508b9314e8d7 [diff] |
Initialize the pcm_config struct before pcm_open. snd_pcm_sw_params in pcm_native.c is failing on "if (params->silence_size > params->silence_threshold)" with EINVAL. The dragon soundtrigger hal sets silence_threshold to 0, so the failure must be due to an uninitialized value for silence_size. Bug: 33686003 Test: Verified hotword works on Ryu. Change-Id: I0f53b935c2790a1634303c64d81fa0de8be913ab (cherry picked from commit 47de514d7040ad9f76b4a4b112d6717438f3d837)