Also, consistently use 'ch' for channel variables. This matches how we consistently use sdi, devc, and so on all over the code-base. This fixes parts of bug #259.