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