Valid channel mask must have at least one channel
Also: - Use correct type name audio_channel_mask_t - Use the parameter name 'channelMask' instead of the more ambiguous 'channels' Change-Id: I22bc1821a1bded0e69fe7d99e7b981ff60d77cee
This commit is contained in:
parent
776751ad79
commit
f7326dc0aa
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue