Merge "audiohal: init and send all offloadinfo related element" into oc-dev
am: 13c73d26e8
Change-Id: Ia66e55d7219c35343bb96275d704afcde9a9f453
This commit is contained in:
commit
07b19403cf
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,7 @@ using ::android::hardware::audio::common::V2_0::AudioPortRole;
|
|||
using ::android::hardware::audio::common::V2_0::AudioPortType;
|
||||
using ::android::hardware::audio::common::V2_0::AudioSource;
|
||||
using ::android::hardware::audio::common::V2_0::AudioStreamType;
|
||||
using ::android::hardware::audio::common::V2_0::AudioUsage;
|
||||
|
||||
namespace android {
|
||||
|
||||
|
@ -103,6 +104,9 @@ void HidlUtils::audioOffloadInfoFromHal(
|
|||
offload->durationMicroseconds = halOffload.duration_us;
|
||||
offload->hasVideo = halOffload.has_video;
|
||||
offload->isStreaming = halOffload.is_streaming;
|
||||
offload->bitWidth = halOffload.bit_width;
|
||||
offload->bufferSize = halOffload.offload_buffer_size;
|
||||
offload->usage = static_cast<AudioUsage>(halOffload.usage);
|
||||
}
|
||||
|
||||
void HidlUtils::audioOffloadInfoToHal(
|
||||
|
|
Loading…
Reference in a new issue