summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyInterface.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-12-10 09:10:28 -0800
committerGlenn Kasten <gkasten@google.com>2013-12-16 14:10:22 -0800
commit2c3d2379ee6eadb32b63bf6de538cfd6487e8e20 (patch)
treed1d5c9644cf13a56ddce81506eead75f925ef4b4 /include/hardware_legacy/AudioPolicyInterface.h
parent5082dbeb19e37883230510129c94336063a4f91c (diff)
downloadhardware_libhardware_legacy-2c3d2379ee6eadb32b63bf6de538cfd6487e8e20.zip
hardware_libhardware_legacy-2c3d2379ee6eadb32b63bf6de538cfd6487e8e20.tar.gz
hardware_libhardware_legacy-2c3d2379ee6eadb32b63bf6de538cfd6487e8e20.tar.bz2
Use audio_channel_mask_t in AudioPolicy
Also: - use %x format for logging channel masks - use AUDIO_CHANNEL_IN_* constants from system/audio.h instead of AudioSystemLegacy.h symbols - remove redundant casts - use "channelMask" instead of "channels" to avoid possible confusion with channel counts Change-Id: If05d6b1cae5cf1b560cd53a93ae9e592b719ec9e
Diffstat (limited to 'include/hardware_legacy/AudioPolicyInterface.h')
-rw-r--r--include/hardware_legacy/AudioPolicyInterface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware_legacy/AudioPolicyInterface.h b/include/hardware_legacy/AudioPolicyInterface.h
index 927fe6d..6a01684 100644
--- a/include/hardware_legacy/AudioPolicyInterface.h
+++ b/include/hardware_legacy/AudioPolicyInterface.h
@@ -92,7 +92,7 @@ public:
virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream,
uint32_t samplingRate,
audio_format_t format,
- uint32_t channels,
+ audio_channel_mask_t channelMask,
AudioSystem::output_flags flags,
const audio_offload_info_t *offloadInfo) = 0;
// indicates to the audio policy manager that the output starts being used by corresponding stream.
@@ -110,7 +110,7 @@ public:
virtual audio_io_handle_t getInput(int inputSource,
uint32_t samplingRate,
audio_format_t format,
- uint32_t channels,
+ audio_channel_mask_t channelMask,
AudioSystem::audio_in_acoustics acoustics) = 0;
// indicates to the audio policy manager that the input starts being used.
virtual status_t startInput(audio_io_handle_t input) = 0;