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]) {
1141 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_put() argument
1144 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put()
1152 val = (ucontrol->value.iec958.status[0] << 0) | in snd_emu10k1_spdif_put()
1153 (ucontrol->value.iec958.status[1] << 8) | in snd_emu10k1_spdif_put()
1154 (ucontrol->value.iec958.status[2] << 16) | in snd_emu10k1_spdif_put()
1155 (ucontrol->value.iec958.status[3] << 24); in snd_emu10k1_spdif_put()
1228 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_get() argument
1233 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_get()
1241 ucontrol->value.integer.value[(voice * num_efx) + idx] = in snd_emu10k1_send_routing_get()
1248 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_put() argument
1253 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_put()
1261 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask; in snd_emu10k1_send_routing_put()
1304 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_get() argument
1309 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_get()
1315 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1321 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_put() argument
1326 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_put()
1332 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_send_volume_put()
1374 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_get() argument
1378 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_get()
1384 ucontrol->value.integer.value[idx] = mix->attn[idx]; in snd_emu10k1_attn_get()
1390 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_put() argument
1395 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_put()
1400 val = ucontrol->value.integer.value[idx] & 0xffff; in snd_emu10k1_attn_put()
1442 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_get() argument
1447 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_routing_get()
1454 ucontrol->value.integer.value[idx] = in snd_emu10k1_efx_send_routing_get()
1461 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_put() argument
1465 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_routing_put()
1473 val = ucontrol->value.integer.value[idx] & mask; in snd_emu10k1_efx_send_routing_put()
1512 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_get() argument
1517 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_volume_get()
1523 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1529 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_put() argument
1533 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_volume_put()
1540 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_efx_send_volume_put()
1578 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_get() argument
1582 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_attn_get()
1586 ucontrol->value.integer.value[0] = mix->attn[0]; in snd_emu10k1_efx_attn_get()
1592 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_put() argument
1596 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_attn_put()
1601 val = ucontrol->value.integer.value[0] & 0xffff; in snd_emu10k1_efx_attn_put()
1629 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_get() argument
1634 ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1636 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1638 ucontrol->value.integer.value[0] = in snd_emu10k1_shared_spdif_get()
1639 !ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_get()
1645 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_put() argument
1652 sw = ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_put()
1703 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_get() argument
1710 ucontrol->value.integer.value[0] = !!val; in snd_audigy_capture_boost_get()
1715 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_put() argument
1720 if (ucontrol->value.integer.value[0]) in snd_audigy_capture_boost_put()