/* Maya44 routing switch settings have different meanings than the standard ice1724 switches as defined in snd_vt1724_pro_route_info (ice1724.c).  */
static int maya_pb_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
/* Maya44 routing switch settings have different meanings than the standard ice1724 switches as defined in snd_vt1724_pro_route_info (ice1724.c).  */
static int maya_pb_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
{
	static char *texts[] = {
		"PCM Out",
		"Input 1", "Input 2", "Input 3", "Input 4"
	};
	uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
	uinfo->count = 1;
	uinfo->value.enumerated.items = ARRAY_SIZE(texts);
	if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items)
		uinfo->value.enumerated.item =
			uinfo->value.enumerated.items - 1;
	strcpy(uinfo->value.enumerated.name,
	       texts[uinfo->value.enumerated.item]);
	return 0;
}