From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> The new check takes into account number of channels. --- android/client/if-sco.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/client/if-sco.c b/android/client/if-sco.c index 555c6f9..35ed3b0 100644 --- a/android/client/if-sco.c +++ b/android/client/if-sco.c @@ -354,16 +354,21 @@ fail: static void loop_p(int argc, const char **argv) { + int chan_out, chan_in; + RETURN_IF_NULL(if_audio_sco); RETURN_IF_NULL(stream_out); RETURN_IF_NULL(stream_in); + chan_out = popcount(stream_out->common.get_channels(&stream_out->common)); + chan_in = popcount(stream_in->common.get_channels(&stream_in->common)); + if (!buffer_size || !buffer_size_in) { haltest_error("Invalid buffer sizes. Streams opened\n"); return; } - if (buffer_size != buffer_size_in) { + if (buffer_size / chan_out != buffer_size_in / chan_in) { haltest_error("read/write buffers differ, not supported\n"); return; } -- 1.8.3.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