From 20cbbd2cc964724f70f178e4605ebbe06ca7468f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 17 Sep 2018 17:15:22 +0200 Subject: [PATCH] explicitly allow mono and stereo with unknown layouts --- spa/plugins/audioconvert/channelmix-ops.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spa/plugins/audioconvert/channelmix-ops.c b/spa/plugins/audioconvert/channelmix-ops.c index 3f567f10f..d97994ba5 100644 --- a/spa/plugins/audioconvert/channelmix-ops.c +++ b/spa/plugins/audioconvert/channelmix-ops.c @@ -336,9 +336,14 @@ static const struct channelmix_info { } channelmix_table[] = { #if defined (__SSE2__) + { 2, MASK_MONO, 2, MASK_MONO, channelmix_copy_sse, FEATURE_SSE }, + { 2, MASK_STEREO, 2, MASK_STEREO, channelmix_copy_sse, FEATURE_SSE }, { -2, 0, -2, 0, channelmix_copy_sse, FEATURE_SSE }, #endif + { 2, MASK_MONO, 2, MASK_MONO, channelmix_copy, 0 }, + { 2, MASK_STEREO, 2, MASK_STEREO, channelmix_copy, 0 }, { -2, 0, -2, 0, channelmix_copy, 0 }, + { 1, MASK_MONO, 2, MASK_STEREO, channelmix_f32_1_2, 0 }, { 2, MASK_STEREO, 1, MASK_MONO, channelmix_f32_2_1, 0 }, #if defined (__SSE2__)