We need to return some valid values for buffer size and latency so AudioFlinger does not crash. For now just use some dummy values until codec implementation is in place. --- android/hal-audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index 3c2dcb2..58f48bb 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -622,7 +622,7 @@ static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) static size_t out_get_buffer_size(const struct audio_stream *stream) { DBG(""); - return -ENOSYS; + return 20 * 512; } static uint32_t out_get_channels(const struct audio_stream *stream) @@ -729,7 +729,7 @@ static char *out_get_parameters(const struct audio_stream *stream, static uint32_t out_get_latency(const struct audio_stream_out *stream) { DBG(""); - return -ENOSYS; + return 0; } static int out_set_volume(struct audio_stream_out *stream, float left, -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html