Commit Graph

4 Commits

Author SHA1 Message Date
Mikhail Naganov
5862c1e3bc audio: Add StreamDescriptor.frameSizeBytes
This field indicates the frame size and is filled by
the HAL module, so that the client does not have
to calculate it.

As a side effect, in the VTS code, a StreamContext can
now be created solely from a StreamDescriptor.

Added unit tests for the functions from Utils.

Bug: 205884982
Test: atest libaudioaidlcommon_test
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ief836b8b2d35bacb1f9778e2462d540554149d7f
2022-08-22 17:41:56 +00:00
Mikhail Naganov
01803d454a audio: Implementation of audio I/O, part II
This patch implements audio I/O for the synchronous, non-MMAP
case.

Updated the StreamDescriptor structure to make it usable.
Clarified comments on the expectations for the client and
the HAL module.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I09651c6e80a397c80870622ac19234b4d4a38cbb
2022-08-18 21:17:22 +00:00
Mikhail Naganov
68bee70442 audio: Implementation of audio I/O, part I
This patch adds necessary structures and prepares for implementing
data flow for audio I/O.

Also in this patch we clarify the relationship between audio patches
and buffer size for audio I/O, and between buffer size and latency.

Bug: 205884982
Bug: 233816848
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I8522632607d4cf50a112225c19b5dd5ad8848591
2022-08-02 00:28:41 +00:00
Mikhail Naganov
ecdc6ca8e8 audio HAL: Minimal example implementation
Implements basic functionality for enumerating
capabilities of an audio module, audio patches
creation, and opening of I/O streams.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie5d67e9192a598260e762ae9368f99592c8ad97e
2022-03-23 19:40:55 +00:00