Lines Matching refs:item
81 if (uinfo->value.enumerated.item > nums - 1)
82 uinfo->value.enumerated.item = nums - 1;
83 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
97 ucontrol->value.enumerated.item[0] = ac97->indep_surround;
104 unsigned char indep = !!ucontrol->value.enumerated.item[0];
126 ucontrol->value.enumerated.item[0] = ac97->channel_mode;
133 unsigned char mode = ucontrol->value.enumerated.item[0];
241 if (uinfo->value.enumerated.item > 2)
242 uinfo->value.enumerated.item = 2;
243 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
257 ucontrol->value.enumerated.item[0] = val;
267 if (ucontrol->value.enumerated.item[0] > 2)
269 val = (ucontrol->value.enumerated.item[0] + 1) << 10;
292 if (uinfo->value.enumerated.item > 1)
293 uinfo->value.enumerated.item = 1;
294 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
305 ucontrol->value.enumerated.item[0] = (val >> 1) & 1;
315 if (ucontrol->value.enumerated.item[0] > 1)
317 val = ucontrol->value.enumerated.item[0] << 1;
400 if (uinfo->value.enumerated.item > 2)
401 uinfo->value.enumerated.item = 2;
402 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
412 ucontrol->value.enumerated.item[0] = (val & 0x0008) ? 2 : (val & 0x0020) ? 1 : 0;
421 if (ucontrol->value.enumerated.item[0] > 2)
423 val = (ucontrol->value.enumerated.item[0] == 2) ? 0x0008 :
424 (ucontrol->value.enumerated.item[0] == 1) ? 0x0020 : 0;
1103 if (uinfo->value.enumerated.item > 4)
1104 uinfo->value.enumerated.item = 4;
1105 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
1117 ucontrol->value.enumerated.item[0] = 0;
1119 ucontrol->value.enumerated.item[0] = 1 + (val & 3);
1129 if (ucontrol->value.enumerated.item[0] > 4)
1131 if (ucontrol->value.enumerated.item[0] == 0)
1134 val = 4 | (ucontrol->value.enumerated.item[0] - 1);
1147 if (uinfo->value.enumerated.item > 6)
1148 uinfo->value.enumerated.item = 6;
1149 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
1160 ucontrol->value.enumerated.item[0] = (val >> shift) & 7;
1170 ucontrol->value.enumerated.item[0] << shift, 0);
1180 if (uinfo->value.enumerated.item > 2)
1181 uinfo->value.enumerated.item = 2;
1182 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
1190 ucontrol->value.enumerated.item[0] = ac97->regs[AC97_SIGMATEL_IOMISC] & 3;
1199 ucontrol->value.enumerated.item[0], 0);
1801 if (uinfo->value.enumerated.item > 1)
1802 uinfo->value.enumerated.item = 1;
1803 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
1813 ucontrol->value.enumerated.item[0] = (val >> 2) & 1;
1822 if (ucontrol->value.enumerated.item[0] > 1)
1824 val = ucontrol->value.enumerated.item[0] << 2;
1990 if (uinfo->value.enumerated.item > 2)
1991 uinfo->value.enumerated.item = 2;
1992 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
2003 ucontrol->value.enumerated.item[0] = 0;
2005 ucontrol->value.enumerated.item[0] = 1 + ((val >> 8) & 1);
2014 if (ucontrol->value.enumerated.item[0] > 2)
2016 if (ucontrol->value.enumerated.item[0] == 0)
2020 ((ucontrol->value.enumerated.item[0] - 1) << 8);
2149 if (uinfo->value.enumerated.item > 3)
2150 uinfo->value.enumerated.item = 3;
2152 texts[uinfo->value.enumerated.item]);
2164 ucontrol->value.enumerated.item[0] = reg2ctrl[val];
2175 if (ucontrol->value.enumerated.item[0] > 3)
2177 val = ctrl2reg[ucontrol->value.enumerated.item[0]]
2387 ucontrol->value.enumerated.item[0] = val;
2402 switch (ucontrol->value.enumerated.item[0])
2723 if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items)
2724 uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1;
2727 texts_658[uinfo->value.enumerated.item] :
2728 texts_655[uinfo->value.enumerated.item]);
2741 ucontrol->value.enumerated.item[0] = val;
2750 (unsigned short)ucontrol->value.enumerated.item[0] << 12,
2976 if (uinfo->value.enumerated.item > 1)
2977 uinfo->value.enumerated.item = 1;
2978 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
2988 ucontrol->value.enumerated.item[0] = (val >> 1) & 0x01;
2998 (ucontrol->value.enumerated.item[0] & 0x01) << 1);
3152 if (uinfo->value.enumerated.item > 2)
3153 uinfo->value.enumerated.item = 2;
3154 strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
3163 ucontrol->value.enumerated.item[0] = 2; /* SPDIF-loopback */
3165 ucontrol->value.enumerated.item[0] = 1; /* ADC loopback */
3167 ucontrol->value.enumerated.item[0] = 0; /* AC-link */
3175 if (ucontrol->value.enumerated.item[0] == 2)
3179 ucontrol->value.enumerated.item[0] == 1 ? 0x2 : 0);
3478 ucontrol->value.enumerated.item[0] = (usSM51 << 1) + usMS;
3492 usSM51 = ucontrol->value.enumerated.item[0] >> 1;
3493 usMS = ucontrol->value.enumerated.item[0] & 1;
3650 ucontrol->value.enumerated.item[0] = uaj >>
3661 ucontrol->value.enumerated.item[0]<<
3679 ucontrol->value.enumerated.item[0] =
3690 ucontrol->value.enumerated.item[0] << 3);
3695 ucontrol->value.enumerated.item[0] << 3);