Merge "audio: Add 48khz sampling rate to spkr prot tx uc"

This commit is contained in:
qctecmdr 2019-09-14 05:38:54 -07:00 committed by Gerrit - the friendly Code Review server
commit 643cefec40
3 changed files with 12 additions and 1 deletions

View File

@ -257,6 +257,10 @@ persist.audio.fluence.voicecomm=true
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.bt.aac_frm_ctl.enabled=true
#Set speaker protection cal tx path sampling rate to 48k
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.spkr_prot.tx.sampling_rate=48000
#add dynamic feature flags here
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.feature.a2dp_offload.enable=true \

View File

@ -268,6 +268,10 @@ vendor.audio.volume.headset.gain.depcal=true
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.bt.aac_frm_ctl.enabled=true
#Set speaker protection cal tx path sampling rate to 48k
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.spkr_prot.tx.sampling_rate=48000
#add dynamic feature flags here
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.feature.a2dp_offload.enable=true \

View File

@ -1173,6 +1173,9 @@ int audio_extn_utils_get_app_sample_rate_for_device(
}
sample_rate = usecase->stream.in->app_type_cfg.sample_rate;
} else if (usecase->id == USECASE_AUDIO_SPKR_CALIB_TX) {
if ((property_get("vendor.audio.spkr_prot.tx.sampling_rate", value, NULL) > 0))
sample_rate = atoi(value);
else
sample_rate = SAMPLE_RATE_8000;
}
} else if (usecase->type == TRANSCODE_LOOPBACK_RX) {