Helper from char_type to type_t
Use genericity in hda decoder