/* snd_hda_ctls_clear - Clear all controls assigned to the given codec @codec: HD-audio codec  */
void snd_hda_ctls_clear(struct hda_codec *codec)
/* snd_hda_ctls_clear - Clear all controls assigned to the given codec @codec: HD-audio codec  */
void snd_hda_ctls_clear(struct hda_codec *codec)
{
	int i;
	struct hda_nid_item *items = codec->mixers.list;
	for (i = 0; i < codec->mixers.used; i++)
		snd_ctl_remove(codec->bus->card, items[i].kctl);
	snd_array_free(&codec->mixers);
}