Lines Matching refs:enumerated
83 ucontrol->value.enumerated.item[0] = ac97->indep_surround; in ac97_surround_jack_mode_get()
90 unsigned char indep = !!ucontrol->value.enumerated.item[0]; in ac97_surround_jack_mode_put()
112 ucontrol->value.enumerated.item[0] = ac97->channel_mode; in ac97_channel_mode_get()
119 unsigned char mode = ucontrol->value.enumerated.item[0]; in ac97_channel_mode_put()
237 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ymf7x3_get_speaker()
247 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf7x3_put_speaker()
249 val = (ucontrol->value.enumerated.item[0] + 1) << 10; in snd_ac97_ymf7x3_put_speaker()
279 ucontrol->value.enumerated.item[0] = (val >> 1) & 1; in snd_ac97_ymf7x3_spdif_source_get()
289 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ymf7x3_spdif_source_put()
291 val = ucontrol->value.enumerated.item[0] << 1; in snd_ac97_ymf7x3_spdif_source_put()
380 ucontrol->value.enumerated.item[0] = (val & 0x0008) ? 2 : (val & 0x0020) ? 1 : 0; in snd_ac97_ymf753_spdif_output_pin_get()
389 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ymf753_spdif_output_pin_put()
391 val = (ucontrol->value.enumerated.item[0] == 2) ? 0x0008 : in snd_ac97_ymf753_spdif_output_pin_put()
392 (ucontrol->value.enumerated.item[0] == 1) ? 0x0020 : 0; in snd_ac97_ymf753_spdif_output_pin_put()
1100 ucontrol->value.enumerated.item[0] = 0; in snd_ac97_stac9758_output_jack_get()
1102 ucontrol->value.enumerated.item[0] = 1 + (val & 3); in snd_ac97_stac9758_output_jack_get()
1112 if (ucontrol->value.enumerated.item[0] > 4) in snd_ac97_stac9758_output_jack_put()
1114 if (ucontrol->value.enumerated.item[0] == 0) in snd_ac97_stac9758_output_jack_put()
1117 val = 4 | (ucontrol->value.enumerated.item[0] - 1); in snd_ac97_stac9758_output_jack_put()
1138 ucontrol->value.enumerated.item[0] = (val >> shift) & 7; in snd_ac97_stac9758_input_jack_get()
1148 ucontrol->value.enumerated.item[0] << shift, 0); in snd_ac97_stac9758_input_jack_put()
1164 ucontrol->value.enumerated.item[0] = ac97->regs[AC97_SIGMATEL_IOMISC] & 3; in snd_ac97_stac9758_phonesel_get()
1173 ucontrol->value.enumerated.item[0], 0); in snd_ac97_stac9758_phonesel_put()
1789 ucontrol->value.enumerated.item[0] = (val >> 2) & 1; in snd_ac97_ad198x_spdif_source_get()
1798 if (ucontrol->value.enumerated.item[0] > 1) in snd_ac97_ad198x_spdif_source_put()
1800 val = ucontrol->value.enumerated.item[0] << 2; in snd_ac97_ad198x_spdif_source_put()
1975 ucontrol->value.enumerated.item[0] = 0; in snd_ac97_ad1888_downmix_get()
1977 ucontrol->value.enumerated.item[0] = 1 + ((val >> 8) & 1); in snd_ac97_ad1888_downmix_get()
1986 if (ucontrol->value.enumerated.item[0] > 2) in snd_ac97_ad1888_downmix_put()
1988 if (ucontrol->value.enumerated.item[0] == 0) in snd_ac97_ad1888_downmix_put()
1992 ((ucontrol->value.enumerated.item[0] - 1) << 8); in snd_ac97_ad1888_downmix_put()
2132 ucontrol->value.enumerated.item[0] = reg2ctrl[val]; in snd_ac97_ad1985_vrefout_get()
2143 if (ucontrol->value.enumerated.item[0] > 3) in snd_ac97_ad1985_vrefout_put()
2145 val = ctrl2reg[ucontrol->value.enumerated.item[0]] in snd_ac97_ad1985_vrefout_put()
2356 ucontrol->value.enumerated.item[0] = val; in snd_ac97_ad1986_vrefout_get()
2371 switch (ucontrol->value.enumerated.item[0]) in snd_ac97_ad1986_vrefout_put()
2742 ucontrol->value.enumerated.item[0] = val; in alc655_iec958_route_get()
2751 (unsigned short)ucontrol->value.enumerated.item[0] << 12, in alc655_iec958_route_put()
3031 ucontrol->value.enumerated.item[0] = (val >> 1) & 0x01; in snd_ac97_cmedia_spdif_playback_source_get()
3041 (ucontrol->value.enumerated.item[0] & 0x01) << 1); in snd_ac97_cmedia_spdif_playback_source_put()
3204 ucontrol->value.enumerated.item[0] = 2; /* SPDIF-loopback */ in cm9761_spdif_out_source_get()
3206 ucontrol->value.enumerated.item[0] = 1; /* ADC loopback */ in cm9761_spdif_out_source_get()
3208 ucontrol->value.enumerated.item[0] = 0; /* AC-link */ in cm9761_spdif_out_source_get()
3216 if (ucontrol->value.enumerated.item[0] == 2) in cm9761_spdif_out_source_put()
3220 ucontrol->value.enumerated.item[0] == 1 ? 0x2 : 0); in cm9761_spdif_out_source_put()
3563 ucontrol->value.enumerated.item[0] = (usSM51 << 1) + usMS; in snd_ac97_vt1617a_smart51_get()
3577 usSM51 = ucontrol->value.enumerated.item[0] >> 1; in snd_ac97_vt1617a_smart51_put()
3578 usMS = ucontrol->value.enumerated.item[0] & 1; in snd_ac97_vt1617a_smart51_put()
3734 ucontrol->value.enumerated.item[0] = uaj >> in snd_ac97_vt1618_UAJ_get()
3745 ucontrol->value.enumerated.item[0]<< in snd_ac97_vt1618_UAJ_put()
3763 ucontrol->value.enumerated.item[0] = in snd_ac97_vt1618_aux_get()
3774 ucontrol->value.enumerated.item[0] << 3); in snd_ac97_vt1618_aux_put()
3779 ucontrol->value.enumerated.item[0] << 3); in snd_ac97_vt1618_aux_put()