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