summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioMixer.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-03 14:59:05 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-10 10:05:31 -0700
commit254af180475346b6186b49c297f340c9c4817511 (patch)
treebee0e313aaa97645167e86f4678e513ab38d1c99 /services/audioflinger/AudioMixer.cpp
parent4d2132c866228eaef563e8141ebf06aa25ee9ff7 (diff)
downloadframeworks_av-254af180475346b6186b49c297f340c9c4817511.zip
frameworks_av-254af180475346b6186b49c297f340c9c4817511.tar.gz
frameworks_av-254af180475346b6186b49c297f340c9c4817511.tar.bz2
Use audio_channel_mask_t more places
Use it in AudioSystem::getOutput(), AudioSystem::getInput(), IAudioPolicyService::getOutput(), IAudioPolicyService::getInput(), and various other places in AudioFlinger. Not done: AudioTrack and OutputDescriptor. Change-Id: I70e83455820bd8f05dafd30c63d636c6a47cd172
Diffstat (limited to 'services/audioflinger/AudioMixer.cpp')
-rw-r--r--services/audioflinger/AudioMixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioMixer.cpp b/services/audioflinger/AudioMixer.cpp
index 0c8b3ce..3a8c54d 100644
--- a/services/audioflinger/AudioMixer.cpp
+++ b/services/audioflinger/AudioMixer.cpp
@@ -412,7 +412,7 @@ void AudioMixer::setParameter(int name, int target, int param, void *value)
case TRACK:
switch (param) {
case CHANNEL_MASK: {
- uint32_t mask = (uint32_t)value;
+ audio_channel_mask_t mask = (audio_channel_mask_t) value;
if (track.channelMask != mask) {
uint32_t channelCount = popcount(mask);
ALOG_ASSERT((channelCount <= MAX_NUM_CHANNELS_TO_DOWNMIX) && channelCount);