Lines Matching refs:ucontrol

52                                  struct snd_ctl_elem_value *ucontrol)  in snd_emu10k1_spdif_get()  argument
55 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
60 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
61 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
62 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
63 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
68 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument
70 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask()
71 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask()
72 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask()
73 ucontrol->value.iec958.status[3] = 0xff; in snd_emu10k1_spdif_get_mask()
634 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_get() argument
643 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
648 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_put() argument
653 unsigned val = ucontrol->value.enumerated.item[0]; in snd_emu1010_output_source_put()
680 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_get() argument
689 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; in snd_emu1010_input_source_get()
694 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_put() argument
699 unsigned val = ucontrol->value.enumerated.item[0]; in snd_emu1010_input_source_put()
757 …ic int snd_emu1010_adc_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_get() argument
762 ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0; in snd_emu1010_adc_pads_get()
766 …ic int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_put() argument
773 val = ucontrol->value.integer.value[0]; in snd_emu1010_adc_pads_put()
815 …ic int snd_emu1010_dac_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_get() argument
820 ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0; in snd_emu1010_dac_pads_get()
824 …ic int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_put() argument
831 val = ucontrol->value.integer.value[0]; in snd_emu1010_dac_pads_put()
967 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_clock_source_get() argument
971 ucontrol->value.enumerated.item[0] = emu->emu1010.clock_source; in snd_emu1010_clock_source_get()
976 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_clock_source_put() argument
984 val = ucontrol->value.enumerated.item[0] ; in snd_emu1010_clock_source_put()
1030 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_clock_fallback_get() argument
1034 ucontrol->value.enumerated.item[0] = emu->emu1010.clock_fallback; in snd_emu1010_clock_fallback_get()
1039 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_clock_fallback_put() argument
1042 unsigned int val = ucontrol->value.enumerated.item[0]; in snd_emu1010_clock_fallback_put()
1077 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_get() argument
1081 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; in snd_emu1010_optical_out_get()
1086 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_put() argument
1093 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_out_put()
1128 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_get() argument
1132 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; in snd_emu1010_optical_in_get()
1137 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_put() argument
1144 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_in_put()
1184 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_get() argument
1188 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_audigy_i2c_capture_source_get()
1193 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_put() argument
1205 source_id = ucontrol->value.enumerated.item[0]; in snd_audigy_i2c_capture_source_put()
1257 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_get() argument
1268 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; in snd_audigy_i2c_volume_get()
1269 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; in snd_audigy_i2c_volume_get()
1274 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_put() argument
1287 ngain0 = ucontrol->value.integer.value[0]; in snd_audigy_i2c_volume_put()
1288 ngain1 = ucontrol->value.integer.value[1]; in snd_audigy_i2c_volume_put()
1335 struct snd_ctl_elem_value *ucontrol)
1343 ucontrol->value.enumerated.item[0] = 0;
1346 ucontrol->value.enumerated.item[0] = 1;
1349 ucontrol->value.enumerated.item[0] = 2;
1352 ucontrol->value.enumerated.item[0] = 1;
1358 struct snd_ctl_elem_value *ucontrol)
1364 switch(ucontrol->value.enumerated.item[0]) {
1404 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_put() argument
1407 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put()
1414 val = (ucontrol->value.iec958.status[0] << 0) | in snd_emu10k1_spdif_put()
1415 (ucontrol->value.iec958.status[1] << 8) | in snd_emu10k1_spdif_put()
1416 (ucontrol->value.iec958.status[2] << 16) | in snd_emu10k1_spdif_put()
1417 (ucontrol->value.iec958.status[3] << 24); in snd_emu10k1_spdif_put()
1485 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_get() argument
1489 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_get()
1496 ucontrol->value.integer.value[(voice * num_efx) + idx] = in snd_emu10k1_send_routing_get()
1502 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_put() argument
1506 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_put()
1514 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask; in snd_emu10k1_send_routing_put()
1557 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_get() argument
1561 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_get()
1566 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1571 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_put() argument
1575 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_put()
1581 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_send_volume_put()
1623 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_get() argument
1627 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_get()
1631 ucontrol->value.integer.value[idx] = mix->attn[idx] * 0xffffU / 0x8000U; in snd_emu10k1_attn_get()
1636 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_put() argument
1640 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_put()
1645 unsigned uval = ucontrol->value.integer.value[idx] & 0x1ffff; in snd_emu10k1_attn_put()
1688 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_get() argument
1692 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_routing_get()
1698 ucontrol->value.integer.value[idx] = in snd_emu10k1_efx_send_routing_get()
1704 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_put() argument
1707 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_routing_put()
1715 val = ucontrol->value.integer.value[idx] & mask; in snd_emu10k1_efx_send_routing_put()
1754 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_get() argument
1758 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_volume_get()
1763 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1768 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_put() argument
1771 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_volume_put()
1778 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_efx_send_volume_put()
1816 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_get() argument
1820 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_attn_get()
1822 ucontrol->value.integer.value[0] = mix->attn[0] * 0xffffU / 0x8000U; in snd_emu10k1_efx_attn_get()
1827 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_put() argument
1830 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_attn_put()
1836 uval = ucontrol->value.integer.value[0] & 0x1ffff; in snd_emu10k1_efx_attn_put()
1865 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_get() argument
1870 ucontrol->value.integer.value[0] = inw(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1872 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1874 ucontrol->value.integer.value[0] = in snd_emu10k1_shared_spdif_get()
1875 !ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_get()
1881 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_put() argument
1887 sw = ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_put()
1938 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_get() argument
1945 ucontrol->value.integer.value[0] = !!val; in snd_audigy_capture_boost_get()
1950 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_put() argument
1955 if (ucontrol->value.integer.value[0]) in snd_audigy_capture_boost_put()