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