Lines Matching refs:_chip
74 static inline unsigned long vx2_reg_addr(struct vx_core *_chip, int reg)
76 struct snd_vx222 *chip = to_vx222(_chip);
147 static void vx2_reset_dsp(struct vx_core *_chip)
149 struct snd_vx222 *chip = to_vx222(_chip);
162 static int vx2_test_xilinx(struct vx_core *_chip)
164 struct snd_vx222 *chip = to_vx222(_chip);
167 dev_dbg(_chip->card->dev, "testing xilinx...\n");
177 dev_dbg(_chip->card->dev, "bad!\n");
186 dev_dbg(_chip->card->dev, "bad! #2\n");
190 if (_chip->type == VX_TYPE_BOARD) {
197 dev_dbg(_chip->card->dev, "bad! #3\n");
206 dev_dbg(_chip->card->dev, "bad! #4\n");
210 dev_dbg(_chip->card->dev, "ok, xilinx fine.\n");
467 static void vx2_validate_irq(struct vx_core *_chip, int enable)
469 struct snd_vx222 *chip = to_vx222(_chip);
718 static void vx2_reset_codec(struct vx_core *_chip)
720 struct snd_vx222 *chip = to_vx222(_chip);
730 if (_chip->type == VX_TYPE_BOARD) {
737 vx2_write_codec_reg(_chip, AKM_CODEC_POWER_CONTROL_CMD); /* DAC power up, ADC power up, Vref power down */
739 vx2_write_codec_reg(_chip, AKM_CODEC_CLOCK_FORMAT_CMD); /* default */
740 vx2_write_codec_reg(_chip, AKM_CODEC_MUTE_CMD); /* Mute = ON ,Deemphasis = OFF */
741 vx2_write_codec_reg(_chip, AKM_CODEC_RESET_OFF_CMD); /* DAC and ADC normal operation */
743 if (_chip->type == VX_TYPE_MIC) {
752 vx_outl(_chip, SELMIC, chip->regSELMIC);
760 static void vx2_change_audio_source(struct vx_core *_chip, int src)
762 struct snd_vx222 *chip = to_vx222(_chip);
779 static void vx2_set_clock_source(struct vx_core *_chip, int source)
781 struct snd_vx222 *chip = to_vx222(_chip);
793 static void vx2_reset_board(struct vx_core *_chip, int cold_reset)
795 struct snd_vx222 *chip = to_vx222(_chip);
867 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
868 struct snd_vx222 *chip = to_vx222(_chip);
869 mutex_lock(&_chip->mixer_mutex);
872 mutex_unlock(&_chip->mixer_mutex);
878 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
879 struct snd_vx222 *chip = to_vx222(_chip);
886 mutex_lock(&_chip->mixer_mutex);
892 mutex_unlock(&_chip->mixer_mutex);
895 mutex_unlock(&_chip->mixer_mutex);
911 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
912 struct snd_vx222 *chip = to_vx222(_chip);
919 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
920 struct snd_vx222 *chip = to_vx222(_chip);
924 mutex_lock(&_chip->mixer_mutex);
928 mutex_unlock(&_chip->mixer_mutex);
931 mutex_unlock(&_chip->mixer_mutex);
961 static int vx2_add_mic_controls(struct vx_core *_chip)
963 struct snd_vx222 *chip = to_vx222(_chip);
966 if (_chip->type != VX_TYPE_MIC)
975 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_input_level, chip))) < 0)
977 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0)