Loading hal/audio_extn/a2dp.c +10 −1 Original line number Original line Diff line number Diff line Loading @@ -187,6 +187,8 @@ int channel_map_array[] = { PCM_CHANNEL_L, PCM_CHANNEL_R, PCM_CHANNEL_C, PCM_CHA static void *vndk_fwk_lib_handle = NULL; static void *vndk_fwk_lib_handle = NULL; static int is_running_with_enhanced_fwk = UNINITIALIZED; static int is_running_with_enhanced_fwk = UNINITIALIZED; static char g_audio_framework[PROPERTY_VALUE_MAX]; typedef int (*vndk_fwk_isVendorEnhancedFwk_t)(void); typedef int (*vndk_fwk_isVendorEnhancedFwk_t)(void); static vndk_fwk_isVendorEnhancedFwk_t vndk_fwk_isVendorEnhancedFwk; static vndk_fwk_isVendorEnhancedFwk_t vndk_fwk_isVendorEnhancedFwk; Loading Loading @@ -935,9 +937,16 @@ typedef struct { static void update_offload_codec_capabilities() static void update_offload_codec_capabilities() { { property_get("ro.boot.audio", g_audio_framework, NULL); if (strstr(g_audio_framework, "audioreach") != NULL) { a2dp.is_a2dp_offload_supported = a2dp.is_a2dp_offload_supported = property_get_bool(SYSPROP_A2DP_OFFLOAD_SUPPORTED, false) && property_get_bool(SYSPROP_A2DP_OFFLOAD_SUPPORTED, false) && !property_get_bool(SYSPROP_A2DP_OFFLOAD_DISABLED, false); !property_get_bool(SYSPROP_A2DP_OFFLOAD_DISABLED, false); } else { /*For Elite audio framework */ a2dp.is_a2dp_offload_supported = true; } ALOGD("%s: A2DP offload supported = %d",__func__, ALOGD("%s: A2DP offload supported = %d",__func__, a2dp.is_a2dp_offload_supported); a2dp.is_a2dp_offload_supported); Loading post_proc/equalizer.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -15,6 +15,11 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * See the License for the specific language governing permissions and * limitations under the License. * limitations under the License. * * Changes from Qualcomm Innovation Center, Inc. are provided under the following license: * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause-Clear * */ */ #define LOG_TAG "offload_effect_equalizer" #define LOG_TAG "offload_effect_equalizer" Loading Loading @@ -425,7 +430,7 @@ int equalizer_set_parameter(effect_context_t *context, effect_param_t *p, equalizer_set_preset(eq_ctxt, preset); equalizer_set_preset(eq_ctxt, preset); break; break; case EQ_PARAM_BAND_LEVEL: case EQ_PARAM_BAND_LEVEL: if (vsize < sizeof(int16_t)) { if (vsize < sizeof(int32_t)) { p->status = -EINVAL; p->status = -EINVAL; break; break; } } Loading Loading
hal/audio_extn/a2dp.c +10 −1 Original line number Original line Diff line number Diff line Loading @@ -187,6 +187,8 @@ int channel_map_array[] = { PCM_CHANNEL_L, PCM_CHANNEL_R, PCM_CHANNEL_C, PCM_CHA static void *vndk_fwk_lib_handle = NULL; static void *vndk_fwk_lib_handle = NULL; static int is_running_with_enhanced_fwk = UNINITIALIZED; static int is_running_with_enhanced_fwk = UNINITIALIZED; static char g_audio_framework[PROPERTY_VALUE_MAX]; typedef int (*vndk_fwk_isVendorEnhancedFwk_t)(void); typedef int (*vndk_fwk_isVendorEnhancedFwk_t)(void); static vndk_fwk_isVendorEnhancedFwk_t vndk_fwk_isVendorEnhancedFwk; static vndk_fwk_isVendorEnhancedFwk_t vndk_fwk_isVendorEnhancedFwk; Loading Loading @@ -935,9 +937,16 @@ typedef struct { static void update_offload_codec_capabilities() static void update_offload_codec_capabilities() { { property_get("ro.boot.audio", g_audio_framework, NULL); if (strstr(g_audio_framework, "audioreach") != NULL) { a2dp.is_a2dp_offload_supported = a2dp.is_a2dp_offload_supported = property_get_bool(SYSPROP_A2DP_OFFLOAD_SUPPORTED, false) && property_get_bool(SYSPROP_A2DP_OFFLOAD_SUPPORTED, false) && !property_get_bool(SYSPROP_A2DP_OFFLOAD_DISABLED, false); !property_get_bool(SYSPROP_A2DP_OFFLOAD_DISABLED, false); } else { /*For Elite audio framework */ a2dp.is_a2dp_offload_supported = true; } ALOGD("%s: A2DP offload supported = %d",__func__, ALOGD("%s: A2DP offload supported = %d",__func__, a2dp.is_a2dp_offload_supported); a2dp.is_a2dp_offload_supported); Loading
post_proc/equalizer.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -15,6 +15,11 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * See the License for the specific language governing permissions and * limitations under the License. * limitations under the License. * * Changes from Qualcomm Innovation Center, Inc. are provided under the following license: * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause-Clear * */ */ #define LOG_TAG "offload_effect_equalizer" #define LOG_TAG "offload_effect_equalizer" Loading Loading @@ -425,7 +430,7 @@ int equalizer_set_parameter(effect_context_t *context, effect_param_t *p, equalizer_set_preset(eq_ctxt, preset); equalizer_set_preset(eq_ctxt, preset); break; break; case EQ_PARAM_BAND_LEVEL: case EQ_PARAM_BAND_LEVEL: if (vsize < sizeof(int16_t)) { if (vsize < sizeof(int32_t)) { p->status = -EINVAL; p->status = -EINVAL; break; break; } } Loading