Merge "Use audio_channel_mask_t consistently"
This commit is contained in:
commit
270eebef69
2 changed files with 8 additions and 8 deletions
|
@ -77,11 +77,11 @@ static size_t out_get_buffer_size(const struct audio_stream *stream)
|
|||
return out->legacy_out->bufferSize();
|
||||
}
|
||||
|
||||
static uint32_t out_get_channels(const struct audio_stream *stream)
|
||||
static audio_channel_mask_t out_get_channels(const struct audio_stream *stream)
|
||||
{
|
||||
const struct legacy_stream_out *out =
|
||||
reinterpret_cast<const struct legacy_stream_out *>(stream);
|
||||
return out->legacy_out->channels();
|
||||
return (audio_channel_mask_t) out->legacy_out->channels();
|
||||
}
|
||||
|
||||
static audio_format_t out_get_format(const struct audio_stream *stream)
|
||||
|
@ -206,11 +206,11 @@ static size_t in_get_buffer_size(const struct audio_stream *stream)
|
|||
return in->legacy_in->bufferSize();
|
||||
}
|
||||
|
||||
static uint32_t in_get_channels(const struct audio_stream *stream)
|
||||
static audio_channel_mask_t in_get_channels(const struct audio_stream *stream)
|
||||
{
|
||||
const struct legacy_stream_in *in =
|
||||
reinterpret_cast<const struct legacy_stream_in *>(stream);
|
||||
return in->legacy_in->channels();
|
||||
return (audio_channel_mask_t) in->legacy_in->channels();
|
||||
}
|
||||
|
||||
static audio_format_t in_get_format(const struct audio_stream *stream)
|
||||
|
|
|
@ -137,14 +137,14 @@ 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)
|
||||
{
|
||||
struct legacy_audio_policy *lap = to_lap(pol);
|
||||
|
||||
ALOGV("%s: tid %d", __func__, gettid());
|
||||
return lap->apm->getOutput((AudioSystem::stream_type)stream,
|
||||
sampling_rate, (int) format, channels,
|
||||
sampling_rate, (int) format, channelMask,
|
||||
(AudioSystem::output_flags)flags);
|
||||
}
|
||||
|
||||
|
@ -174,11 +174,11 @@ 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)
|
||||
{
|
||||
struct legacy_audio_policy *lap = to_lap(pol);
|
||||
return lap->apm->getInput((int) inputSource, sampling_rate, (int) format, channels,
|
||||
return lap->apm->getInput((int) inputSource, sampling_rate, (int) format, channelMask,
|
||||
(AudioSystem::audio_in_acoustics)acoustics);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue