MM_RESOURCE_MANAGER_RES_TYPE_CAMERA, /**< ID of camera resource type */
MM_RESOURCE_MANAGER_RES_TYPE_VIDEO_ENCODER, /**< ID of video encoder resource type */
MM_RESOURCE_MANAGER_RES_TYPE_RADIO, /**< ID of radio resource type */
+ MM_RESOURCE_MANAGER_RES_TYPE_AUDIO_OFFLOAD, /**< ID of audio offload resource type */
MM_RESOURCE_MANAGER_RES_TYPE_MAX, /**< Used to iterate on resource types only */
} mm_resource_manager_res_type_e;
mm_resource_manager_res_p i_res;
int i;
- MM_RM_RETVM_IF(rm->__max_resource_volumes[type] == MM_RESOURCE_MANAGER_NO_RES,
+ MM_RM_RETVM_IF(remaining_local_volume == MM_RESOURCE_MANAGER_NO_RES,
MM_RESOURCE_MANAGER_ERROR_NOT_SUPPORTED,
"No resource for the platform");
if (volume > 0) {
- MM_RM_RETVM_IF(rm->__max_resource_volumes[type] < volume,
+ MM_RM_RETVM_IF(remaining_local_volume < volume,
MM_RESOURCE_MANAGER_ERROR_INVALID_OPERATION,
"Requested volume %d exceeds max value %d", volume,
- rm->__max_resource_volumes[type]);
+ remaining_local_volume);
for (i = 0; i < rm->resources->len; i++) {
i_res = (mm_resource_manager_res_p) rm->resources->pdata[i];
if (i_res->type == type &&