Lines Matching defs:_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");
469 static void vx2_validate_irq(struct vx_core *_chip, int enable)
471 struct snd_vx222 *chip = to_vx222(_chip);
720 static void vx2_reset_codec(struct vx_core *_chip)
722 struct snd_vx222 *chip = to_vx222(_chip);
732 if (_chip->type == VX_TYPE_BOARD) {
739 vx2_write_codec_reg(_chip, AKM_CODEC_POWER_CONTROL_CMD); /* DAC power up, ADC power up, Vref power down */
741 vx2_write_codec_reg(_chip, AKM_CODEC_CLOCK_FORMAT_CMD); /* default */
742 vx2_write_codec_reg(_chip, AKM_CODEC_MUTE_CMD); /* Mute = ON ,Deemphasis = OFF */
743 vx2_write_codec_reg(_chip, AKM_CODEC_RESET_OFF_CMD); /* DAC and ADC normal operation */
745 if (_chip->type == VX_TYPE_MIC) {
754 vx_outl(_chip, SELMIC, chip->regSELMIC);
762 static void vx2_change_audio_source(struct vx_core *_chip, int src)
764 struct snd_vx222 *chip = to_vx222(_chip);
781 static void vx2_set_clock_source(struct vx_core *_chip, int source)
783 struct snd_vx222 *chip = to_vx222(_chip);
795 static void vx2_reset_board(struct vx_core *_chip, int cold_reset)
797 struct snd_vx222 *chip = to_vx222(_chip);
869 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
870 struct snd_vx222 *chip = to_vx222(_chip);
871 mutex_lock(&_chip->mixer_mutex);
874 mutex_unlock(&_chip->mixer_mutex);
880 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
881 struct snd_vx222 *chip = to_vx222(_chip);
888 mutex_lock(&_chip->mixer_mutex);
894 mutex_unlock(&_chip->mixer_mutex);
897 mutex_unlock(&_chip->mixer_mutex);
913 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
914 struct snd_vx222 *chip = to_vx222(_chip);
921 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
922 struct snd_vx222 *chip = to_vx222(_chip);
926 mutex_lock(&_chip->mixer_mutex);
930 mutex_unlock(&_chip->mixer_mutex);
933 mutex_unlock(&_chip->mixer_mutex);
963 static int vx2_add_mic_controls(struct vx_core *_chip)
965 struct snd_vx222 *chip = to_vx222(_chip);
968 if (_chip->type != VX_TYPE_MIC)
977 err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_input_level, chip));
980 err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip));