CRAS: apm_list - Construct channel layout that works with APM
For input device we could have two channels PCM with the first
channel unconnected. And that introduces a bug in APM use case
because APM processing only uses data in the first channel.
This change fixes the issue by always reconstruct a channel
layout that works with APM.
TEST=Test online voice recording on 'barla' device.
Unittest to verify all other possible capture channel maps
Reviewed-by: Cheng-Yi Chiang <email@example.com>
Commit-Queue: Hsinyu Chao <firstname.lastname@example.org>
Tested-by: Hsinyu Chao <email@example.com>
2 files changed