Loading hal/audio_extn/gef.c +46 −52 Original line number Diff line number Diff line Loading @@ -109,15 +109,12 @@ static acdb_device_type make_acdb_device_type_from_gef_cal_type void audio_extn_gef_init(struct audio_device *adev) { int ret = 0; const char* error = NULL; ALOGV("%s: Enter with error", __func__); memset(&gef_hal_handle, 0, sizeof(gef_data)); ret = access(GEF_LIBRARY, R_OK); if (ret == 0) { //: check error for dlopen gef_hal_handle.handle = dlopen(GEF_LIBRARY, RTLD_LAZY); if (gef_hal_handle.handle == NULL) { Loading Loading @@ -166,12 +163,9 @@ void audio_extn_gef_init(struct audio_device *adev) gef_hal_handle.gef_ptr = gef_hal_handle.init((void*)adev); } } else { ALOGE("%s: %s access failed", __func__, GEF_LIBRARY); } ERROR_RETURN: ALOGV("%s: Exit with error %d", __func__, ret); ALOGV("%s: Exit with error ", __func__); return; } Loading Loading
hal/audio_extn/gef.c +46 −52 Original line number Diff line number Diff line Loading @@ -109,15 +109,12 @@ static acdb_device_type make_acdb_device_type_from_gef_cal_type void audio_extn_gef_init(struct audio_device *adev) { int ret = 0; const char* error = NULL; ALOGV("%s: Enter with error", __func__); memset(&gef_hal_handle, 0, sizeof(gef_data)); ret = access(GEF_LIBRARY, R_OK); if (ret == 0) { //: check error for dlopen gef_hal_handle.handle = dlopen(GEF_LIBRARY, RTLD_LAZY); if (gef_hal_handle.handle == NULL) { Loading Loading @@ -166,12 +163,9 @@ void audio_extn_gef_init(struct audio_device *adev) gef_hal_handle.gef_ptr = gef_hal_handle.init((void*)adev); } } else { ALOGE("%s: %s access failed", __func__, GEF_LIBRARY); } ERROR_RETURN: ALOGV("%s: Exit with error %d", __func__, ret); ALOGV("%s: Exit with error ", __func__); return; } Loading