summaryrefslogtreecommitdiffstats
path: root/hal/audio_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'hal/audio_hw.c')
-rw-r--r--hal/audio_hw.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 1fd913a7..58d8f856 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -6568,7 +6568,8 @@ static int adev_open(const hw_module_t *module, const char *name,
char value[PROPERTY_VALUE_MAX];
int trial;
- if (property_get("audio_hal.period_size", value, NULL) > 0) {
+ if ((property_get("vendor.audio_hal.period_size", value, NULL) > 0) ||
+ (property_get("audio_hal.period_size", value, NULL) > 0)) {
trial = atoi(value);
if (period_size_is_plausible_for_low_latency(trial)) {
pcm_config_low_latency.period_size = trial;
@@ -6577,7 +6578,8 @@ static int adev_open(const hw_module_t *module, const char *name,
configured_low_latency_capture_period_size = trial;
}
}
- if (property_get("audio_hal.in_period_size", value, NULL) > 0) {
+ if ((property_get("vendor.audio_hal.in_period_size", value, NULL) > 0) ||
+ (property_get("audio_hal.in_period_size", value, NULL) > 0)) {
trial = atoi(value);
if (period_size_is_plausible_for_low_latency(trial)) {
configured_low_latency_capture_period_size = trial;
@@ -6592,7 +6594,8 @@ static int adev_open(const hw_module_t *module, const char *name,
// audio_extn_utils_send_default_app_type_cfg(adev->platform, adev->mixer);
audio_device_ref_count++;
- if (property_get("audio_hal.period_multiplier", value, NULL) > 0) {
+ if ((property_get("vendor.audio_hal.period_multiplier", value, NULL) > 0) ||
+ (property_get("audio_hal.period_multiplier", value, NULL) > 0)) {
af_period_multiplier = atoi(value);
if (af_period_multiplier < 0) {
af_period_multiplier = 2;