Add a function to get a \"closest\" match to supported channel counts.
am: eafa18a241

Change-Id: Ifbc524f90f9a3306759ba9b050bad30204e93bad