Autodetection of channel type