Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6d7626a authored by Sujin Panicker's avatar Sujin Panicker
Browse files

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

With 8Khz sampling rate afe fails to fetch calibration
information.
sdm660 & msm8998 acdb supports only 48Khz for speaker
protection calibration tx device, since 8Khz tables were
not added initially, addition of 8Khz would require
further tuning.
This change is to use sample rate based on property, the
default sample rate is not changed for other targets without
prop.

Change-Id: I29dc549c699396fc953f3f831cd0ea81ee033ae4
parent 7a2f2c06
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 \
+4 −0
Original line number Diff line number Diff line
@@ -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 \
+4 −1
Original line number Diff line number Diff line
@@ -1167,6 +1167,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) {