Loading hal/audio_extn/utils.c +3 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,9 @@ int audio_extn_utils_get_snd_card_num() struct acdb_platform_data *my_data = calloc(1, sizeof(struct acdb_platform_data)); bool card_verifed[MAX_SND_CARD] = {0}; const int retry_limit = property_get_int32("audio.snd_card.open.retries", RETRY_NUMBER); const int retry_limit = property_get_int32( "vendor.audio.snd_card.open.retries", property_get_int32("audio.snd_card.open.retries", RETRY_NUMBER)); for (;;) { if (snd_card_num >= MAX_SND_CARD) { Loading hal/audio_hw.c +6 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading post_proc/volume_listener.c +6 −2 Original line number Diff line number Diff line Loading @@ -674,8 +674,12 @@ static void init_once() } } dumping_enabled = property_get_bool("audio.volume.listener.dump", false); headset_cal_enabled = property_get_bool("audio.volume.headset.gain.depcal", false); dumping_enabled = property_get_bool( "vendor.audio.volume.listener.dump", property_get_bool("audio.volume.listener.dump", false)); headset_cal_enabled = property_get_bool( "vendor.audio.volume.headset.gain.depcal", property_get_bool("audio.volume.headset.gain.depcal", false)); init_status = 0; list_init(&vol_effect_list); initialized = true; Loading Loading
hal/audio_extn/utils.c +3 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,9 @@ int audio_extn_utils_get_snd_card_num() struct acdb_platform_data *my_data = calloc(1, sizeof(struct acdb_platform_data)); bool card_verifed[MAX_SND_CARD] = {0}; const int retry_limit = property_get_int32("audio.snd_card.open.retries", RETRY_NUMBER); const int retry_limit = property_get_int32( "vendor.audio.snd_card.open.retries", property_get_int32("audio.snd_card.open.retries", RETRY_NUMBER)); for (;;) { if (snd_card_num >= MAX_SND_CARD) { Loading
hal/audio_hw.c +6 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading @@ -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; Loading
post_proc/volume_listener.c +6 −2 Original line number Diff line number Diff line Loading @@ -674,8 +674,12 @@ static void init_once() } } dumping_enabled = property_get_bool("audio.volume.listener.dump", false); headset_cal_enabled = property_get_bool("audio.volume.headset.gain.depcal", false); dumping_enabled = property_get_bool( "vendor.audio.volume.listener.dump", property_get_bool("audio.volume.listener.dump", false)); headset_cal_enabled = property_get_bool( "vendor.audio.volume.headset.gain.depcal", property_get_bool("audio.volume.headset.gain.depcal", false)); init_status = 0; list_init(&vol_effect_list); initialized = true; Loading