Lines Matching refs:ucontrol

54                                  struct snd_ctl_elem_value *ucontrol)  in snd_emu10k1_spdif_get()  argument
57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get()
64 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff; in snd_emu10k1_spdif_get()
65 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff; in snd_emu10k1_spdif_get()
66 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff; in snd_emu10k1_spdif_get()
67 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff; in snd_emu10k1_spdif_get()
73 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_get_mask() argument
75 ucontrol->value.iec958.status[0] = 0xff; in snd_emu10k1_spdif_get_mask()
76 ucontrol->value.iec958.status[1] = 0xff; in snd_emu10k1_spdif_get_mask()
77 ucontrol->value.iec958.status[2] = 0xff; in snd_emu10k1_spdif_get_mask()
78 ucontrol->value.iec958.status[3] = 0xff; in snd_emu10k1_spdif_get_mask()
404 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_get() argument
415 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
420 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_output_source_put() argument
426 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_output_source_put()
450 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_get() argument
459 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel]; in snd_emu1010_input_source_get()
464 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_input_source_put() argument
470 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_input_source_put()
591 …ic int snd_emu1010_adc_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_get() argument
595 ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0; in snd_emu1010_adc_pads_get()
599 …ic int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_adc_pads_put() argument
604 val = ucontrol->value.integer.value[0]; in snd_emu1010_adc_pads_put()
639 …ic int snd_emu1010_dac_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_get() argument
643 ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0; in snd_emu1010_dac_pads_get()
647 …ic int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_emu1010_dac_pads_put() argument
652 val = ucontrol->value.integer.value[0]; in snd_emu1010_dac_pads_put()
698 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_internal_clock_get() argument
702 ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock; in snd_emu1010_internal_clock_get()
707 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_internal_clock_put() argument
713 val = ucontrol->value.enumerated.item[0] ; in snd_emu1010_internal_clock_put()
820 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_get() argument
824 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_out; in snd_emu1010_optical_out_get()
829 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_out_put() argument
836 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_out_put()
871 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_get() argument
875 ucontrol->value.enumerated.item[0] = emu->emu1010.optical_in; in snd_emu1010_optical_in_get()
880 struct snd_ctl_elem_value *ucontrol) in snd_emu1010_optical_in_put() argument
887 val = ucontrol->value.enumerated.item[0]; in snd_emu1010_optical_in_put()
927 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_get() argument
931 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source; in snd_audigy_i2c_capture_source_get()
936 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_capture_source_put() argument
949 source_id = ucontrol->value.enumerated.item[0]; in snd_audigy_i2c_capture_source_put()
1001 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_get() argument
1012 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0]; in snd_audigy_i2c_volume_get()
1013 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1]; in snd_audigy_i2c_volume_get()
1018 struct snd_ctl_elem_value *ucontrol) in snd_audigy_i2c_volume_put() argument
1032 ngain = ucontrol->value.integer.value[0]; in snd_audigy_i2c_volume_put()
1042 ngain = ucontrol->value.integer.value[1]; in snd_audigy_i2c_volume_put()
1082 struct snd_ctl_elem_value *ucontrol)
1093 ucontrol->value.enumerated.item[0] = 0;
1096 ucontrol->value.enumerated.item[0] = 1;
1099 ucontrol->value.enumerated.item[0] = 2;
1102 ucontrol->value.enumerated.item[0] = 1;
1109 struct snd_ctl_elem_value *ucontrol)
1116 switch(ucontrol->value.enumerated.item[0]) {
1155 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_spdif_put() argument
1158 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_put()
1166 val = (ucontrol->value.iec958.status[0] << 0) | in snd_emu10k1_spdif_put()
1167 (ucontrol->value.iec958.status[1] << 8) | in snd_emu10k1_spdif_put()
1168 (ucontrol->value.iec958.status[2] << 16) | in snd_emu10k1_spdif_put()
1169 (ucontrol->value.iec958.status[3] << 24); in snd_emu10k1_spdif_put()
1242 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_get() argument
1247 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_get()
1255 ucontrol->value.integer.value[(voice * num_efx) + idx] = in snd_emu10k1_send_routing_get()
1262 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_routing_put() argument
1267 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_routing_put()
1275 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask; in snd_emu10k1_send_routing_put()
1318 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_get() argument
1323 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_get()
1329 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx]; in snd_emu10k1_send_volume_get()
1335 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_send_volume_put() argument
1340 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_send_volume_put()
1346 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_send_volume_put()
1388 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_get() argument
1392 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_get()
1398 ucontrol->value.integer.value[idx] = mix->attn[idx]; in snd_emu10k1_attn_get()
1404 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_attn_put() argument
1409 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_attn_put()
1414 val = ucontrol->value.integer.value[idx] & 0xffff; in snd_emu10k1_attn_put()
1456 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_get() argument
1461 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_routing_get()
1468 ucontrol->value.integer.value[idx] = in snd_emu10k1_efx_send_routing_get()
1475 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_routing_put() argument
1479 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_routing_put()
1487 val = ucontrol->value.integer.value[idx] & mask; in snd_emu10k1_efx_send_routing_put()
1526 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_get() argument
1531 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_send_volume_get()
1537 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx]; in snd_emu10k1_efx_send_volume_get()
1543 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_send_volume_put() argument
1547 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_send_volume_put()
1554 val = ucontrol->value.integer.value[idx] & 255; in snd_emu10k1_efx_send_volume_put()
1592 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_get() argument
1596 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)]; in snd_emu10k1_efx_attn_get()
1600 ucontrol->value.integer.value[0] = mix->attn[0]; in snd_emu10k1_efx_attn_get()
1606 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_efx_attn_put() argument
1610 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_efx_attn_put()
1615 val = ucontrol->value.integer.value[0] & 0xffff; in snd_emu10k1_efx_attn_put()
1643 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_get() argument
1648 ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1650 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0; in snd_emu10k1_shared_spdif_get()
1652 ucontrol->value.integer.value[0] = in snd_emu10k1_shared_spdif_get()
1653 !ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_get()
1659 struct snd_ctl_elem_value *ucontrol) in snd_emu10k1_shared_spdif_put() argument
1666 sw = ucontrol->value.integer.value[0]; in snd_emu10k1_shared_spdif_put()
1717 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_get() argument
1724 ucontrol->value.integer.value[0] = !!val; in snd_audigy_capture_boost_get()
1729 struct snd_ctl_elem_value *ucontrol) in snd_audigy_capture_boost_put() argument
1734 if (ucontrol->value.integer.value[0]) in snd_audigy_capture_boost_put()