TPG_QUAL_COLOR
if (qual == TPG_QUAL_COLOR)
tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0);
if (tpg_g_quality(&dev->tpg) == TPG_QUAL_COLOR ||