snd_hda_get_num_devices
unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid);
dev_num = snd_hda_get_num_devices(codec, pin_nid) + 1;
dev_num = snd_hda_get_num_devices(codec, per_pin->pin_nid) + 1;
EXPORT_SYMBOL_GPL(snd_hda_get_num_devices);
parm = snd_hda_get_num_devices(codec, nid);
num_devices = snd_hda_get_num_devices(codec, nid) + 1;