channelmix: don't use default map for mono

Keep the original channel map so that we can match the channels
properly when remixing.
This commit is contained in:
Wim Taymans 2021-12-09 17:32:41 +01:00
parent 22a210e798
commit 3ab3157bf1

View file

@ -329,9 +329,9 @@ static int setup_convert(struct impl *this,
dst_mask |= 1ULL << (p < 64 ? p : 0);
}
if (src_mask & 1 || src_chan == 1)
if (src_mask & 1)
src_mask = default_mask(src_chan);
if (dst_mask & 1 || dst_chan == 1)
if (dst_mask & 1)
dst_mask = default_mask(dst_chan);
spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,