summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31fb39c)
raw | patch | inline | side by side (parent: 31fb39c)
author | Sergii Iegorov <x0155539@ti.com> | |
Tue, 29 Jan 2013 15:50:42 +0000 (17:50 +0200) | ||
committer | Gerrit Code Review <gerrit2@git.omapzoom.org> | |
Tue, 12 Feb 2013 17:36:32 +0000 (11:36 -0600) |
Getting of input buffer size function looks like rather
static utility than checking of actual capabilities of
particular HAL. So, primary HAL should provide input
buffer size regardless of does it actually support
multichannel or not.
Change-Id: I9d2b4a5854fa4ab497b17d236463b617d0ac716a
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
static utility than checking of actual capabilities of
particular HAL. So, primary HAL should provide input
buffer size regardless of does it actually support
multichannel or not.
Change-Id: I9d2b4a5854fa4ab497b17d236463b617d0ac716a
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
audio/audio_hw.c | patch | blob | history |
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 87b070f6fcfbdc4f3d2f2caf769837c6b322ce31..2a7bc239de9858bc720fbade6eaa4a8830f65b45 100644 (file)
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1953,9 +1953,6 @@ static size_t get_input_buffer_size(uint32_t sample_rate, int format, int channe
LOGFUNC("%s(%d, %d, %d)", __FUNCTION__, sample_rate, format, channel_count);
- if (check_input_parameters(sample_rate, format, channel_count) != 0)
- return 0;
-
/* take resampling into account and return the closest majoring
multiple of 16 frames, as audioflinger expects audio buffers to
be a multiple of 16 frames */
int channel_count = popcount(config->channel_mask);
LOGFUNC("%s(%p, %d, %d, %d)", __FUNCTION__, dev, config->sample_rate,
config->format, channel_count);
- if (check_input_parameters(config->sample_rate, config->format, channel_count) != 0) {
- return 0;
- }
return get_input_buffer_size(config->sample_rate, config->format, channel_count);
}