diff options
| author | Glenn Kasten <gkasten@google.com> | 2013-07-19 14:50:21 -0700 |
|---|---|---|
| committer | Glenn Kasten <gkasten@google.com> | 2013-07-23 16:47:17 -0700 |
| commit | f7326dc0aa2da2df6bf1fa1ae7ef259a0ebdbd7b (patch) | |
| tree | 4e3ea412e6a256104e5198273b7745458ea8646e /include/system | |
| parent | 776751ad79b878e98017039bad87ca27a1c86ad0 (diff) | |
| download | system_core-f7326dc0aa2da2df6bf1fa1ae7ef259a0ebdbd7b.zip system_core-f7326dc0aa2da2df6bf1fa1ae7ef259a0ebdbd7b.tar.gz system_core-f7326dc0aa2da2df6bf1fa1ae7ef259a0ebdbd7b.tar.bz2 | |
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
Diffstat (limited to 'include/system')
| -rw-r--r-- | include/system/audio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/system/audio.h b/include/system/audio.h index c49b0ee..6c260dd 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -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; } |
