diff options
author | Glenn Kasten <gkasten@google.com> | 2012-06-19 12:16:04 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-06-25 10:45:43 -0700 |
commit | a635449697a2df5de98e72cfc24e926b641d5544 (patch) | |
tree | f581a4950512c0b5fa2f1376e0bd25748259701e /modules | |
parent | bd85f47ae7b6b2af30cf9d51d7039fbba5a271ed (diff) | |
download | hardware_libhardware-a635449697a2df5de98e72cfc24e926b641d5544.zip hardware_libhardware-a635449697a2df5de98e72cfc24e926b641d5544.tar.gz hardware_libhardware-a635449697a2df5de98e72cfc24e926b641d5544.tar.bz2 |
Use audio_channel_mask_t consistently
Change-Id: Ib832c0b707b1e0b82adf4ab3d4d18a2dc459d240
Diffstat (limited to 'modules')
-rw-r--r-- | modules/audio/audio_hw.c | 4 | ||||
-rw-r--r-- | modules/audio/audio_policy.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/audio/audio_hw.c b/modules/audio/audio_hw.c index d860437..15e9920 100644 --- a/modules/audio/audio_hw.c +++ b/modules/audio/audio_hw.c @@ -55,7 +55,7 @@ static size_t out_get_buffer_size(const struct audio_stream *stream) return 4096; } -static uint32_t out_get_channels(const struct audio_stream *stream) +static audio_channel_mask_t out_get_channels(const struct audio_stream *stream) { return AUDIO_CHANNEL_OUT_STEREO; } @@ -148,7 +148,7 @@ static size_t in_get_buffer_size(const struct audio_stream *stream) return 320; } -static uint32_t in_get_channels(const struct audio_stream *stream) +static audio_channel_mask_t in_get_channels(const struct audio_stream *stream) { return AUDIO_CHANNEL_IN_MONO; } diff --git a/modules/audio/audio_policy.c b/modules/audio/audio_policy.c index ee95e92..a44ea77 100644 --- a/modules/audio/audio_policy.c +++ b/modules/audio/audio_policy.c @@ -98,7 +98,7 @@ static audio_io_handle_t ap_get_output(struct audio_policy *pol, audio_stream_type_t stream, uint32_t sampling_rate, audio_format_t format, - uint32_t channels, + audio_channel_mask_t channelMask, audio_output_flags_t flags) { return 0; @@ -124,7 +124,7 @@ static void ap_release_output(struct audio_policy *pol, static audio_io_handle_t ap_get_input(struct audio_policy *pol, audio_source_t inputSource, uint32_t sampling_rate, audio_format_t format, - uint32_t channels, + audio_channel_mask_t channelMask, audio_in_acoustics_t acoustics) { return 0; |