/* @regs: HDA registers @nid: Parent node ID to check @num_sub_nodesp: Returns number of subnodes @start_sub_node_nidp: Returns start subnode number  */
static int get_subnode_info(struct hda_regs *regs, uint nid, uint *num_sub_nodesp, uint *start_sub_node_nidp)
/* @regs: HDA registers @nid: Parent node ID to check @num_sub_nodesp: Returns number of subnodes @start_sub_node_nidp: Returns start subnode number  */
static int get_subnode_info(struct hda_regs *regs, uint nid, uint *num_sub_nodesp, uint *start_sub_node_nidp)
{
	uint response;
	int ret;
	ret = exec_verb(regs, hda_verb(nid, HDA_VERB_GET_PARAMS,
				       GET_PARAMS_NODE_COUNT),
			&response);
	if (ret < 0) {
		printf("Audio: Error reading sub-node info %d\n", nid);
		return ret;
	}
	*num_sub_nodesp = (response & NUM_SUB_NODES_M) >> NUM_SUB_NODES_S;
	*start_sub_node_nidp = (response & FIRST_SUB_NODE_M) >>
			 FIRST_SUB_NODE_S;
	return 0;
}