Revert "Use the number of channels from the config."

This reverts commit 070afe4903e9c3546e3118b98f4c95d339ed13d6.