Merge "Valid channel mask must have at least one channel"

This commit is contained in:
Glenn Kasten 2013-07-24 15:49:13 +00:00 committed by Android (Google) Code Review
commit 87bc464a9f
1 changed files with 4 additions and 4 deletions

View File

@ -477,18 +477,18 @@ static inline bool audio_is_remote_submix_device(audio_devices_t device)
return false;
}
static inline bool audio_is_input_channel(uint32_t channel)
static inline bool audio_is_input_channel(audio_channel_mask_t channel)
{
if ((channel & ~AUDIO_CHANNEL_IN_ALL) == 0)
return true;
return channel != 0;
else
return false;
}
static inline bool audio_is_output_channel(uint32_t channel)
static inline bool audio_is_output_channel(audio_channel_mask_t channel)
{
if ((channel & ~AUDIO_CHANNEL_OUT_ALL) == 0)
return true;
return channel != 0;
else
return false;
}