demux: adaptive: add debugging switch logic