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

Lines Matching refs:ucontrol

404 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
409 ucontrol->value.integer.value[0] = chip->output_level[codec][0];
410 ucontrol->value.integer.value[1] = chip->output_level[codec][1];
415 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
420 if (ucontrol->value.integer.value[0] != chip->output_level[codec][0] ||
421 ucontrol->value.integer.value[1] != chip->output_level[codec][1]) {
423 ucontrol->value.integer.value[0],
424 ucontrol->value.integer.value[1]);
425 chip->output_level[codec][0] = ucontrol->value.integer.value[0];
426 chip->output_level[codec][1] = ucontrol->value.integer.value[1];
476 static int vx_audio_src_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
479 ucontrol->value.enumerated.item[0] = chip->audio_source_target;
483 static int vx_audio_src_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
487 if (chip->audio_source_target != ucontrol->value.enumerated.item[0]) {
488 chip->audio_source_target = ucontrol->value.enumerated.item[0];
524 static int vx_clock_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
527 ucontrol->value.enumerated.item[0] = chip->clock_mode;
531 static int vx_clock_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
535 if (chip->clock_mode != ucontrol->value.enumerated.item[0]) {
536 chip->clock_mode = ucontrol->value.enumerated.item[0];
565 static int vx_audio_gain_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
572 ucontrol->value.integer.value[0] = chip->audio_gain[capture][audio];
573 ucontrol->value.integer.value[1] = chip->audio_gain[capture][audio+1];
578 static int vx_audio_gain_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
585 if (ucontrol->value.integer.value[0] != chip->audio_gain[capture][audio] ||
586 ucontrol->value.integer.value[1] != chip->audio_gain[capture][audio+1]) {
587 vx_set_audio_gain(chip, audio, capture, ucontrol->value.integer.value[0]);
588 vx_set_audio_gain(chip, audio+1, capture, ucontrol->value.integer.value[1]);
596 static int vx_audio_monitor_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
602 ucontrol->value.integer.value[0] = chip->audio_monitor[audio];
603 ucontrol->value.integer.value[1] = chip->audio_monitor[audio+1];
608 static int vx_audio_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
614 if (ucontrol->value.integer.value[0] != chip->audio_monitor[audio] ||
615 ucontrol->value.integer.value[1] != chip->audio_monitor[audio+1]) {
616 vx_set_monitor_level(chip, audio, ucontrol->value.integer.value[0],
618 vx_set_monitor_level(chip, audio+1, ucontrol->value.integer.value[1],
636 static int vx_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
642 ucontrol->value.integer.value[0] = chip->audio_active[audio];
643 ucontrol->value.integer.value[1] = chip->audio_active[audio+1];
648 static int vx_audio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
654 if (ucontrol->value.integer.value[0] != chip->audio_active[audio] ||
655 ucontrol->value.integer.value[1] != chip->audio_active[audio+1]) {
656 vx_set_audio_switch(chip, audio, ucontrol->value.integer.value[0]);
657 vx_set_audio_switch(chip, audio+1, ucontrol->value.integer.value[1]);
665 static int vx_monitor_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
671 ucontrol->value.integer.value[0] = chip->audio_monitor_active[audio];
672 ucontrol->value.integer.value[1] = chip->audio_monitor_active[audio+1];
677 static int vx_monitor_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
683 if (ucontrol->value.integer.value[0] != chip->audio_monitor_active[audio] ||
684 ucontrol->value.integer.value[1] != chip->audio_monitor_active[audio+1]) {
686 ucontrol->value.integer.value[0]);
688 ucontrol->value.integer.value[1]);
744 static int vx_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
749 ucontrol->value.iec958.status[0] = (chip->uer_bits >> 0) & 0xff;
750 ucontrol->value.iec958.status[1] = (chip->uer_bits >> 8) & 0xff;
751 ucontrol->value.iec958.status[2] = (chip->uer_bits >> 16) & 0xff;
752 ucontrol->value.iec958.status[3] = (chip->uer_bits >> 24) & 0xff;
757 static int vx_iec958_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
759 ucontrol->value.iec958.status[0] = 0xff;
760 ucontrol->value.iec958.status[1] = 0xff;
761 ucontrol->value.iec958.status[2] = 0xff;
762 ucontrol->value.iec958.status[3] = 0xff;
766 static int vx_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
771 val = (ucontrol->value.iec958.status[0] << 0) |
772 (ucontrol->value.iec958.status[1] << 8) |
773 (ucontrol->value.iec958.status[2] << 16) |
774 (ucontrol->value.iec958.status[3] << 24);
819 static int vx_vu_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
827 ucontrol->value.integer.value[0] = meter[0].vu_level >> METER_SHIFT;
828 ucontrol->value.integer.value[1] = meter[1].vu_level >> METER_SHIFT;
832 static int vx_peak_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
840 ucontrol->value.integer.value[0] = meter[0].peak_level >> METER_SHIFT;
841 ucontrol->value.integer.value[1] = meter[1].peak_level >> METER_SHIFT;
854 static int vx_saturation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
861 ucontrol->value.integer.value[0] = meter[0].saturated;
862 ucontrol->value.integer.value[1] = meter[1].saturated;