/* look for the node record for the given NID  */
static struct hda_gnode* hda_get_node(struct hda_gspec *spec, hda_nid_t nid)
/* look for the node record for the given NID  */
static struct hda_gnode* hda_get_node(struct hda_gspec *spec, hda_nid_t nid)
{
	struct hda_gnode *node;
	list_for_each_entry(node, &spec->nid_list, list) {
		if (node->nid == nid)
			return node;
	}
	return NULL;
}