hal: Modify FFV system property name

Modify FFV system property name to match with naming convention
to use vendor prefix.
Update stream_in sample rate along with config rate for
multi-channel usecase.

Change-Id: Icac259f54e8d7cdd760e826b345a3af0d4cb754b
This commit is contained in:
Chaithanya Krishna Bacharaju 2018-02-02 11:34:11 +05:30 committed by Gerrit - the friendly Code Review server
parent 939c563a0f
commit f5a1ce676e
2 changed files with 2 additions and 1 deletions

View File

@ -1254,6 +1254,7 @@ int audio_extn_check_and_set_multichannel_usecase(struct audio_device *adev,
{
bool ssr_supported = false;
in->config.rate = config->sample_rate;
in->sample_rate = config->sample_rate;
ssr_supported = audio_extn_ssr_check_usecase(in);
if (ssr_supported) {
return audio_extn_ssr_set_usecase(in, config, update_params);

View File

@ -324,7 +324,7 @@ void audio_extn_ffv_update_enabled()
{
char ffv_enabled[PROPERTY_VALUE_MAX] = "false";
property_get("ro.qc.sdk.audio.ffv", ffv_enabled, "0");
property_get("ro.vendor.audio.sdk.ffv", ffv_enabled, "0");
if (!strncmp("true", ffv_enabled, 4)) {
ALOGD("%s: ffv is supported", __func__);
ffvmod.is_ffv_enabled = true;