Lines Matching refs:ucontrol
40 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get() argument
43 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
50 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
51 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
52 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
53 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
59 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument
61 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask()
62 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask()
63 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask()
64 ucontrol->value.iec958.status[3] = 0xff; in snd_emu10k1_spdif_get_mask()
390 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_get() argument
401 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
406 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_put() argument
412 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_output_source_put()
436 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_get() argument
445 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; in snd_emu1010_input_source_get()
450 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_put() argument
456 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_input_source_put()
577 …ic int snd_emu1010_adc_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_get() argument
581 ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0; in snd_emu1010_adc_pads_get()
585 …ic int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_put() argument
590 val = ucontrol->value.integer.value[0]; in snd_emu1010_adc_pads_put()
625 …ic int snd_emu1010_dac_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_get() argument
629 ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0; in snd_emu1010_dac_pads_get()
633 …ic int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_put() argument
638 val = ucontrol->value.integer.value[0]; in snd_emu1010_dac_pads_put()
684 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_internal_clock_get() argument
688 ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock; in snd_emu1010_internal_clock_get()
693 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_internal_clock_put() argument
699 val = ucontrol->value.enumerated.item[0] ; in snd_emu1010_internal_clock_put()
806 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_get() argument
810 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; in snd_emu1010_optical_out_get()
815 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_put() argument
822 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_out_put()
857 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_get() argument
861 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; in snd_emu1010_optical_in_get()
866 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_put() argument
873 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_in_put()
913 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_get() argument
917 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_audigy_i2c_capture_source_get()
922 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_put() argument
935 source_id = ucontrol->value.enumerated.item[0]; in snd_audigy_i2c_capture_source_put()
987 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_get() argument
998 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; in snd_audigy_i2c_volume_get()
999 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; in snd_audigy_i2c_volume_get()
1004 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_put() argument
1018 ngain = ucontrol->value.integer.value[0]; in snd_audigy_i2c_volume_put()
1028 ngain = ucontrol->value.integer.value[1]; in snd_audigy_i2c_volume_put()
1068 struct snd_ctl_elem_value *ucontrol)
1079 ucontrol->value.enumerated.item[0] = 0;
1082 ucontrol->value.enumerated.item[0] = 1;
1085 ucontrol->value.enumerated.item[0] = 2;
1088 ucontrol->value.enumerated.item[0] = 1;
1095 struct snd_ctl_elem_value *ucontrol)
1102 switch(ucontrol->value.enumerated.item[0]) {
1142 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_put() argument
1145 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put()
1153 val = (ucontrol->value.iec958.status[0] << 0) | in snd_emu10k1_spdif_put()
1154 (ucontrol->value.iec958.status[1] << 8) | in snd_emu10k1_spdif_put()
1155 (ucontrol->value.iec958.status[2] << 16) | in snd_emu10k1_spdif_put()
1156 (ucontrol->value.iec958.status[3] << 24); in snd_emu10k1_spdif_put()
1229 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_get() argument
1234 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_get()
1242 ucontrol->value.integer.value[(voice * num_efx) + idx] = in snd_emu10k1_send_routing_get()
1249 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_put() argument
1254 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_put()
1262 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask; in snd_emu10k1_send_routing_put()
1305 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_get() argument
1310 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_get()
1316 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1322 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_put() argument
1327 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_put()
1333 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_send_volume_put()
1375 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_get() argument
1379 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_get()
1385 ucontrol->value.integer.value[idx] = mix->attn[idx]; in snd_emu10k1_attn_get()
1391 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_put() argument
1396 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_put()
1401 val = ucontrol->value.integer.value[idx] & 0xffff; in snd_emu10k1_attn_put()
1443 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_get() argument
1448 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_routing_get()
1455 ucontrol->value.integer.value[idx] = in snd_emu10k1_efx_send_routing_get()
1462 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_put() argument
1466 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_routing_put()
1474 val = ucontrol->value.integer.value[idx] & mask; in snd_emu10k1_efx_send_routing_put()
1513 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_get() argument
1518 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_volume_get()
1524 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1530 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_put() argument
1534 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_volume_put()
1541 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_efx_send_volume_put()
1579 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_get() argument
1583 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_attn_get()
1587 ucontrol->value.integer.value[0] = mix->attn[0]; in snd_emu10k1_efx_attn_get()
1593 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_put() argument
1597 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_attn_put()
1602 val = ucontrol->value.integer.value[0] & 0xffff; in snd_emu10k1_efx_attn_put()
1630 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_get() argument
1635 ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1637 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1639 ucontrol->value.integer.value[0] = in snd_emu10k1_shared_spdif_get()
1640 !ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_get()
1646 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_put() argument
1653 sw = ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_put()
1704 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_get() argument
1711 ucontrol->value.integer.value[0] = !!val; in snd_audigy_capture_boost_get()
1716 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_put() argument
1721 if (ucontrol->value.integer.value[0]) in snd_audigy_capture_boost_put()