mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
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
Merged-In: I09651c6e80a397c80870622ac19234b4d4a38cbb
Change-Id: I09651c6e80a397c80870622ac19234b4d4a38cbb
(cherry picked from commit 01803d454a)
This commit is contained in:
committed by
Lorena Torres-Huerta
parent
0b9c5feed1
commit
4f5d3f12f5
@@ -123,6 +123,15 @@ std::vector<AudioPort> ModuleConfig::getOutputMixPorts() const {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<AudioPort> ModuleConfig::getAttachedDevicesPortsForMixPort(
|
||||
bool isInput, const AudioPortConfig& mixPortConfig) const {
|
||||
const auto mixPortIt = findById<AudioPort>(mPorts, mixPortConfig.portId);
|
||||
if (mixPortIt != mPorts.end()) {
|
||||
return getAttachedDevicesPortsForMixPort(isInput, *mixPortIt);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<AudioPort> ModuleConfig::getAttachedSinkDevicesPortsForMixPort(
|
||||
const AudioPort& mixPort) const {
|
||||
std::vector<AudioPort> result;
|
||||
|
||||
Reference in New Issue
Block a user