• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/emu10k1/

Lines Matching refs:ucontrol

55                                  struct snd_ctl_elem_value *ucontrol)
58 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
62 ucontrol->value.iec958.status[0] = (emu->spdif_bits[idx] >> 0) & 0xff;
63 ucontrol->value.iec958.status[1] = (emu->spdif_bits[idx] >> 8) & 0xff;
64 ucontrol->value.iec958.status[2] = (emu->spdif_bits[idx] >> 16) & 0xff;
65 ucontrol->value.iec958.status[3] = (emu->spdif_bits[idx] >> 24) & 0xff;
71 struct snd_ctl_elem_value *ucontrol)
73 ucontrol->value.iec958.status[0] = 0xff;
74 ucontrol->value.iec958.status[1] = 0xff;
75 ucontrol->value.iec958.status[2] = 0xff;
76 ucontrol->value.iec958.status[3] = 0xff;
256 struct snd_ctl_elem_value *ucontrol)
262 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel];
267 struct snd_ctl_elem_value *ucontrol)
275 if (emu->emu1010.output_source[channel] != ucontrol->value.enumerated.item[0]) {
276 val = emu->emu1010.output_source[channel] = ucontrol->value.enumerated.item[0];
285 struct snd_ctl_elem_value *ucontrol)
291 ucontrol->value.enumerated.item[0] = emu->emu1010.input_source[channel];
296 struct snd_ctl_elem_value *ucontrol)
304 if (emu->emu1010.input_source[channel] != ucontrol->value.enumerated.item[0]) {
305 val = emu->emu1010.input_source[channel] = ucontrol->value.enumerated.item[0];
397 static int snd_emu1010_adc_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
401 ucontrol->value.integer.value[0] = (emu->emu1010.adc_pads & mask) ? 1 : 0;
405 static int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
410 val = ucontrol->value.integer.value[0];
452 static int snd_emu1010_dac_pads_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
456 ucontrol->value.integer.value[0] = (emu->emu1010.dac_pads & mask) ? 1 : 0;
460 static int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
465 val = ucontrol->value.integer.value[0];
517 struct snd_ctl_elem_value *ucontrol)
521 ucontrol->value.enumerated.item[0] = emu->emu1010.internal_clock;
526 struct snd_ctl_elem_value *ucontrol)
532 val = ucontrol->value.enumerated.item[0] ;
604 struct snd_ctl_elem_value *ucontrol)
608 ucontrol->value.enumerated.item[0] = emu->i2c_capture_source;
613 struct snd_ctl_elem_value *ucontrol)
626 source_id = ucontrol->value.enumerated.item[0]; /* Use 2 and 3 */
674 struct snd_ctl_elem_value *ucontrol)
681 ucontrol->value.integer.value[0] = emu->i2c_capture_volume[source_id][0];
682 ucontrol->value.integer.value[1] = emu->i2c_capture_volume[source_id][1];
687 struct snd_ctl_elem_value *ucontrol)
697 ngain = ucontrol->value.integer.value[0];
703 emu->i2c_capture_volume[source_id][0] = ucontrol->value.integer.value[0];
707 ngain = ucontrol->value.integer.value[1];
713 emu->i2c_capture_volume[source_id][1] = ucontrol->value.integer.value[1];
740 struct snd_ctl_elem_value *ucontrol)
743 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
748 val = (ucontrol->value.iec958.status[0] << 0) |
749 (ucontrol->value.iec958.status[1] << 8) |
750 (ucontrol->value.iec958.status[2] << 16) |
751 (ucontrol->value.iec958.status[3] << 24);
824 struct snd_ctl_elem_value *ucontrol)
829 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
837 ucontrol->value.integer.value[(voice * num_efx) + idx] =
844 struct snd_ctl_elem_value *ucontrol)
849 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
857 val = ucontrol->value.integer.value[(voice * num_efx) + idx] & mask;
900 struct snd_ctl_elem_value *ucontrol)
905 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
911 ucontrol->value.integer.value[idx] = mix->send_volume[idx/num_efx][idx%num_efx];
917 struct snd_ctl_elem_value *ucontrol)
922 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
928 val = ucontrol->value.integer.value[idx] & 255;
970 struct snd_ctl_elem_value *ucontrol)
974 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
980 ucontrol->value.integer.value[idx] = mix->attn[idx];
986 struct snd_ctl_elem_value *ucontrol)
991 &emu->pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
996 val = ucontrol->value.integer.value[idx] & 0xffff;
1038 struct snd_ctl_elem_value *ucontrol)
1043 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
1050 ucontrol->value.integer.value[idx] =
1057 struct snd_ctl_elem_value *ucontrol)
1061 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
1069 val = ucontrol->value.integer.value[idx] & mask;
1108 struct snd_ctl_elem_value *ucontrol)
1113 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
1119 ucontrol->value.integer.value[idx] = mix->send_volume[0][idx];
1125 struct snd_ctl_elem_value *ucontrol)
1129 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
1136 val = ucontrol->value.integer.value[idx] & 255;
1174 struct snd_ctl_elem_value *ucontrol)
1178 &emu->efx_pcm_mixer[snd_ctl_get_ioffidx(kcontrol, &ucontrol->id)];
1182 ucontrol->value.integer.value[0] = mix->attn[0];
1188 struct snd_ctl_elem_value *ucontrol)
1192 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id);
1197 val = ucontrol->value.integer.value[0] & 0xffff;
1232 struct snd_ctl_elem_value *ucontrol)
1237 ucontrol->value.integer.value[0] = inl(emu->port + A_IOCFG) & A_IOCFG_GPOUT0 ? 1 : 0;
1239 ucontrol->value.integer.value[0] = inl(emu->port + HCFG) & HCFG_GPOUT0 ? 1 : 0;
1244 struct snd_ctl_elem_value *ucontrol)
1256 val = ucontrol->value.integer.value[0] ? A_IOCFG_GPOUT0 : 0;
1265 val = ucontrol->value.integer.value[0] ? HCFG_GPOUT0 : 0;