• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/sound/pci/vx222/

Lines Matching refs:_chip

87 static inline unsigned long vx2_reg_addr(struct vx_core *_chip, int reg)
89 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
156 static void vx2_reset_dsp(struct vx_core *_chip)
158 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
171 static int vx2_test_xilinx(struct vx_core *_chip)
173 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
199 if (_chip->type == VX_TYPE_BOARD) {
474 static void vx2_validate_irq(struct vx_core *_chip, int enable)
476 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
725 static void vx2_reset_codec(struct vx_core *_chip)
727 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
737 if (_chip->type == VX_TYPE_BOARD) {
744 vx2_write_codec_reg(_chip, AKM_CODEC_POWER_CONTROL_CMD); /* DAC power up, ADC power up, Vref power down */
746 vx2_write_codec_reg(_chip, AKM_CODEC_CLOCK_FORMAT_CMD); /* default */
747 vx2_write_codec_reg(_chip, AKM_CODEC_MUTE_CMD); /* Mute = ON ,Deemphasis = OFF */
748 vx2_write_codec_reg(_chip, AKM_CODEC_RESET_OFF_CMD); /* DAC and ADC normal operation */
750 if (_chip->type == VX_TYPE_MIC) {
759 vx_outl(_chip, SELMIC, chip->regSELMIC);
767 static void vx2_change_audio_source(struct vx_core *_chip, int src)
769 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
786 static void vx2_set_clock_source(struct vx_core *_chip, int source)
788 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
800 static void vx2_reset_board(struct vx_core *_chip, int cold_reset)
802 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
874 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
875 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
876 mutex_lock(&_chip->mixer_mutex);
879 mutex_unlock(&_chip->mixer_mutex);
885 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
886 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
893 mutex_lock(&_chip->mixer_mutex);
899 mutex_unlock(&_chip->mixer_mutex);
902 mutex_unlock(&_chip->mixer_mutex);
918 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
919 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
926 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
927 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
931 mutex_lock(&_chip->mixer_mutex);
935 mutex_unlock(&_chip->mixer_mutex);
938 mutex_unlock(&_chip->mixer_mutex);
965 static int vx2_add_mic_controls(struct vx_core *_chip)
967 struct snd_vx222 *chip = (struct snd_vx222 *)_chip;
970 if (_chip->type != VX_TYPE_MIC)
979 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_input_level, chip))) < 0)
981 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0)