Lines Matching refs:halOffload
514 status_t HidlUtils::audioOffloadInfoFromHal(const audio_offload_info_t& halOffload, in audioUsageFromHal() argument
517 audio_config_base_t halConfigBase = {halOffload.sample_rate, halOffload.channel_mask, in audioUsageFromHal()
518 halOffload.format}; in audioUsageFromHal()
521 CONVERT_CHECKED(audioStreamTypeFromHal(halOffload.stream_type, &offload->streamType), result); in audioUsageFromHal()
522 offload->bitRatePerSecond = halOffload.bit_rate; in audioUsageFromHal()
523 offload->durationMicroseconds = halOffload.duration_us; in audioUsageFromHal()
524 offload->hasVideo = halOffload.has_video; in audioUsageFromHal()
525 offload->isStreaming = halOffload.is_streaming; in audioUsageFromHal()
526 offload->bitWidth = halOffload.bit_width; in audioUsageFromHal()
527 offload->bufferSize = halOffload.offload_buffer_size; in audioUsageFromHal()
528 CONVERT_CHECKED(audioUsageFromHal(halOffload.usage, &offload->usage), result); in audioUsageFromHal()
529 if (halOffload.version >= AUDIO_OFFLOAD_INFO_VERSION_0_2) { in audioUsageFromHal()
531 static_cast<AudioEncapsulationMode>(halOffload.encapsulation_mode); in audioUsageFromHal()
532 offload->contentId = halOffload.content_id; in audioUsageFromHal()
533 offload->syncId = halOffload.sync_id; in audioUsageFromHal()
543 audio_offload_info_t* halOffload) { in audioUsageFromHal() argument
545 *halOffload = AUDIO_INFO_INITIALIZER; in audioUsageFromHal()
548 halOffload->sample_rate = halConfigBase.sample_rate; in audioUsageFromHal()
549 halOffload->channel_mask = halConfigBase.channel_mask; in audioUsageFromHal()
550 halOffload->format = halConfigBase.format; in audioUsageFromHal()
551 CONVERT_CHECKED(audioStreamTypeToHal(offload.streamType, &halOffload->stream_type), result); in audioUsageFromHal()
552 halOffload->bit_rate = offload.bitRatePerSecond; in audioUsageFromHal()
553 halOffload->duration_us = offload.durationMicroseconds; in audioUsageFromHal()
554 halOffload->has_video = offload.hasVideo; in audioUsageFromHal()
555 halOffload->is_streaming = offload.isStreaming; in audioUsageFromHal()
556 halOffload->bit_width = offload.bitWidth; in audioUsageFromHal()
557 halOffload->offload_buffer_size = offload.bufferSize; in audioUsageFromHal()
558 CONVERT_CHECKED(audioUsageToHal(offload.usage, &halOffload->usage), result); in audioUsageFromHal()
559 halOffload->encapsulation_mode = in audioUsageFromHal()
561 halOffload->content_id = offload.contentId; in audioUsageFromHal()
562 halOffload->sync_id = offload.syncId; in audioUsageFromHal()