/* Checks if the given audio group contains a beep generator @regs: HDA registers @nid: Node ID to check  */
static int audio_group_has_beep_node(struct hda_regs *regs, uint nid)
/* Checks if the given audio group contains a beep generator @regs: HDA registers @nid: Node ID to check  */
static int audio_group_has_beep_node(struct hda_regs *regs, uint nid)
{
	uint response;
	int ret;
	ret = exec_verb(regs, hda_verb(nid, HDA_VERB_GET_PARAMS,
				       GET_PARAMS_AUDIO_GROUP_CAPS),
			&response);
	if (ret < 0) {
		printf("Audio: Error reading audio group caps %d\n", nid);
		return 0;
	}
	return !!(response & AUDIO_GROUP_CAPS_BEEP_GEN);
}