summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourabh Banerjee <sbanerje@codeaurora.org>2015-09-30 13:47:53 -0700
committerRalph Nathan <ralphnathan@google.com>2015-10-16 18:41:33 -0700
commit4e74d293c3ff75fed548d95c7793e6734e84c289 (patch)
tree1e0dad4c43f4d42b120e32021a13fe5823aa55d1
parent2c74a94c6e4723bb3573ee846d420ee6e09c5fa0 (diff)
downloadqcom-4e74d293c3ff75fed548d95c7793e6734e84c289.tar.gz
qc-audio-hal: set silence_size, silence_threshold to 0
latest tinyalsa has introduced configuarble silence_size. if silence_size is no configured by audio hal pcm session open fails due to software param configuration failures. Change-Id: I17179badb7f2cc0655a93d8adee9576fd7dbbf81 Signed-off-by: Sourabh Banerjee <sbanerje@codeaurora.org>
-rw-r--r--audio/hal/audio_hw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/hal/audio_hw.c b/audio/hal/audio_hw.c
index 70fbbf1..af6db54 100644
--- a/audio/hal/audio_hw.c
+++ b/audio/hal/audio_hw.c
@@ -76,6 +76,8 @@ struct pcm_config pcm_config_deep_buffer = {
.format = PCM_FORMAT_S16_LE,
.start_threshold = DEEP_BUFFER_OUTPUT_PERIOD_SIZE / 4,
.stop_threshold = INT_MAX,
+ .silence_threshold = 0,
+ .silence_size = 0,
.avail_min = DEEP_BUFFER_OUTPUT_PERIOD_SIZE / 4,
};
@@ -87,6 +89,8 @@ struct pcm_config pcm_config_low_latency = {
.format = PCM_FORMAT_S16_LE,
.start_threshold = LOW_LATENCY_OUTPUT_PERIOD_SIZE / 4,
.stop_threshold = INT_MAX,
+ .silence_threshold = 0,
+ .silence_size = 0,
.avail_min = LOW_LATENCY_OUTPUT_PERIOD_SIZE / 4,
};
@@ -98,6 +102,8 @@ struct pcm_config pcm_config_hdmi_multi = {
.format = PCM_FORMAT_S16_LE,
.start_threshold = 0,
.stop_threshold = INT_MAX,
+ .silence_threshold = 0,
+ .silence_size = 0,
.avail_min = 0,
};
@@ -121,6 +127,8 @@ struct pcm_config pcm_config_afe_proxy_playback = {
.format = PCM_FORMAT_S16_LE,
.start_threshold = AFE_PROXY_PLAYBACK_PERIOD_SIZE,
.stop_threshold = INT_MAX,
+ .silence_threshold = 0,
+ .silence_size = 0,
.avail_min = AFE_PROXY_PLAYBACK_PERIOD_SIZE,
};
@@ -135,6 +143,8 @@ struct pcm_config pcm_config_afe_proxy_record = {
.format = PCM_FORMAT_S16_LE,
.start_threshold = AFE_PROXY_RECORD_PERIOD_SIZE,
.stop_threshold = INT_MAX,
+ .silence_threshold = 0,
+ .silence_size = 0,
.avail_min = AFE_PROXY_RECORD_PERIOD_SIZE,
};