/* This function returns 0 if successfull, or a negative error code.  */
int __devinit snd_hda_build_pcms(struct hda_bus *bus)
/* This function returns 0 if successfull, or a negative error code.  */
int __devinit snd_hda_build_pcms(struct hda_bus *bus)
{
	struct hda_codec *codec;
	list_for_each_entry(codec, &bus->codec_list, list) {
		int err = snd_hda_codec_build_pcms(codec);
		if (err < 0)
			return err;
	}
	return 0;
}