Lines Matching refs:audio

204 static int vx_adjust_audio_level(struct vx_core *chip, int audio, int capture,  in vx_adjust_audio_level()  argument
216 rmh.Cmd[1] = 1 << audio; in vx_adjust_audio_level()
243 static int vx_read_audio_level(struct vx_core *chip, int audio, int capture,
254 rmh.Cmd[1] = 1 << audio;
270 int vx_set_monitor_level(struct vx_core *chip, int audio, int level, int active) in vx_set_monitor_level() argument
279 chip->audio_monitor[audio] = level; in vx_set_monitor_level()
280 chip->audio_monitor_active[audio] = active; in vx_set_monitor_level()
281 return vx_adjust_audio_level(chip, audio, 0, &info); /* playback only */ in vx_set_monitor_level()
288 static int vx_set_audio_switch(struct vx_core *chip, int audio, int active) in vx_set_audio_switch() argument
295 chip->audio_active[audio] = active; in vx_set_audio_switch()
296 return vx_adjust_audio_level(chip, audio, 0, &info); /* playback only */ in vx_set_audio_switch()
302 static int vx_set_audio_gain(struct vx_core *chip, int audio, int capture, int level) in vx_set_audio_gain() argument
309 chip->audio_gain[capture][audio] = level; in vx_set_audio_gain()
310 return vx_adjust_audio_level(chip, audio, capture, &info); in vx_set_audio_gain()
362 static int vx_get_audio_vu_meter(struct vx_core *chip, int audio, int capture, struct vx_vu_meter *… in vx_get_audio_vu_meter() argument
378 rmh.Cmd[1] |= 1 << (audio + i); in vx_get_audio_vu_meter()
384 info->saturated = (rmh.Stat[0] & (1 << (audio + i))) ? 1 : 0; in vx_get_audio_vu_meter()
571 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_get() local
575 ucontrol->value.integer.value[0] = chip->audio_gain[capture][audio]; in vx_audio_gain_get()
576 ucontrol->value.integer.value[1] = chip->audio_gain[capture][audio+1]; in vx_audio_gain_get()
584 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_put() local
593 if (val[0] != chip->audio_gain[capture][audio] || in vx_audio_gain_put()
594 val[1] != chip->audio_gain[capture][audio+1]) { in vx_audio_gain_put()
595 vx_set_audio_gain(chip, audio, capture, val[0]); in vx_audio_gain_put()
596 vx_set_audio_gain(chip, audio+1, capture, val[1]); in vx_audio_gain_put()
607 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_get() local
610 ucontrol->value.integer.value[0] = chip->audio_monitor[audio]; in vx_audio_monitor_get()
611 ucontrol->value.integer.value[1] = chip->audio_monitor[audio+1]; in vx_audio_monitor_get()
619 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_put() local
628 if (val[0] != chip->audio_monitor[audio] || in vx_audio_monitor_put()
629 val[1] != chip->audio_monitor[audio+1]) { in vx_audio_monitor_put()
630 vx_set_monitor_level(chip, audio, val[0], in vx_audio_monitor_put()
631 chip->audio_monitor_active[audio]); in vx_audio_monitor_put()
632 vx_set_monitor_level(chip, audio+1, val[1], in vx_audio_monitor_put()
633 chip->audio_monitor_active[audio+1]); in vx_audio_monitor_put()
646 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_get() local
649 ucontrol->value.integer.value[0] = chip->audio_active[audio]; in vx_audio_sw_get()
650 ucontrol->value.integer.value[1] = chip->audio_active[audio+1]; in vx_audio_sw_get()
658 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_put() local
661 if (ucontrol->value.integer.value[0] != chip->audio_active[audio] || in vx_audio_sw_put()
662 ucontrol->value.integer.value[1] != chip->audio_active[audio+1]) { in vx_audio_sw_put()
663 vx_set_audio_switch(chip, audio, in vx_audio_sw_put()
665 vx_set_audio_switch(chip, audio+1, in vx_audio_sw_put()
677 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_get() local
680 ucontrol->value.integer.value[0] = chip->audio_monitor_active[audio]; in vx_monitor_sw_get()
681 ucontrol->value.integer.value[1] = chip->audio_monitor_active[audio+1]; in vx_monitor_sw_get()
689 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_put() local
692 if (ucontrol->value.integer.value[0] != chip->audio_monitor_active[audio] || in vx_monitor_sw_put()
693 ucontrol->value.integer.value[1] != chip->audio_monitor_active[audio+1]) { in vx_monitor_sw_put()
694 vx_set_monitor_level(chip, audio, chip->audio_monitor[audio], in vx_monitor_sw_put()
696 vx_set_monitor_level(chip, audio+1, chip->audio_monitor[audio+1], in vx_monitor_sw_put()
832 int audio = kcontrol->private_value & 0xff; in vx_vu_meter_get() local
835 vx_get_audio_vu_meter(chip, audio, capture, meter); in vx_vu_meter_get()
845 int audio = kcontrol->private_value & 0xff; in vx_peak_meter_get() local
848 vx_get_audio_vu_meter(chip, audio, capture, meter); in vx_peak_meter_get()
860 int audio = kcontrol->private_value & 0xff; in vx_saturation_get() local
862 vx_get_audio_vu_meter(chip, audio, 1, meter); /* capture only */ in vx_saturation_get()