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()
160 static void vx2_reset_dsp(struct vx_core *_chip) in vx2_reset_dsp() argument
162 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_reset_dsp()
175 static int vx2_test_xilinx(struct vx_core *_chip) in vx2_test_xilinx() argument
177 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_test_xilinx()
180 dev_dbg(_chip->card->dev, "testing xilinx...\n"); in vx2_test_xilinx()
190 dev_dbg(_chip->card->dev, "bad!\n"); in vx2_test_xilinx()
199 dev_dbg(_chip->card->dev, "bad! #2\n"); in vx2_test_xilinx()
203 if (_chip->type == VX_TYPE_BOARD) { in vx2_test_xilinx()
210 dev_dbg(_chip->card->dev, "bad! #3\n"); in vx2_test_xilinx()
219 dev_dbg(_chip->card->dev, "bad! #4\n"); in vx2_test_xilinx()
223 dev_dbg(_chip->card->dev, "ok, xilinx fine.\n"); in vx2_test_xilinx()
480 static void vx2_validate_irq(struct vx_core *_chip, int enable) in vx2_validate_irq() argument
482 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_validate_irq()
731 static void vx2_reset_codec(struct vx_core *_chip) in vx2_reset_codec() argument
733 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_reset_codec()
743 if (_chip->type == VX_TYPE_BOARD) { in vx2_reset_codec()
750 …vx2_write_codec_reg(_chip, AKM_CODEC_POWER_CONTROL_CMD); /* DAC power up, ADC power up, Vref power… in vx2_reset_codec()
752 vx2_write_codec_reg(_chip, AKM_CODEC_CLOCK_FORMAT_CMD); /* default */ in vx2_reset_codec()
753 vx2_write_codec_reg(_chip, AKM_CODEC_MUTE_CMD); /* Mute = ON ,Deemphasis = OFF */ in vx2_reset_codec()
754 vx2_write_codec_reg(_chip, AKM_CODEC_RESET_OFF_CMD); /* DAC and ADC normal operation */ in vx2_reset_codec()
756 if (_chip->type == VX_TYPE_MIC) { in vx2_reset_codec()
765 vx_outl(_chip, SELMIC, chip->regSELMIC); in vx2_reset_codec()
773 static void vx2_change_audio_source(struct vx_core *_chip, int src) in vx2_change_audio_source() argument
775 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_change_audio_source()
792 static void vx2_set_clock_source(struct vx_core *_chip, int source) in vx2_set_clock_source() argument
794 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_set_clock_source()
806 static void vx2_reset_board(struct vx_core *_chip, int cold_reset) in vx2_reset_board() argument
808 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_reset_board()
880 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_input_level_get() local
881 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx_input_level_get()
882 mutex_lock(&_chip->mixer_mutex); in vx_input_level_get()
885 mutex_unlock(&_chip->mixer_mutex); in vx_input_level_get()
891 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_input_level_put() local
892 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx_input_level_put()
899 mutex_lock(&_chip->mixer_mutex); in vx_input_level_put()
905 mutex_unlock(&_chip->mixer_mutex); in vx_input_level_put()
908 mutex_unlock(&_chip->mixer_mutex); in vx_input_level_put()
924 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_get() local
925 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx_mic_level_get()
932 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_put() local
933 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx_mic_level_put()
937 mutex_lock(&_chip->mixer_mutex); in vx_mic_level_put()
941 mutex_unlock(&_chip->mixer_mutex); in vx_mic_level_put()
944 mutex_unlock(&_chip->mixer_mutex); in vx_mic_level_put()
974 static int vx2_add_mic_controls(struct vx_core *_chip) in vx2_add_mic_controls() argument
976 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_add_mic_controls()
979 if (_chip->type != VX_TYPE_MIC) in vx2_add_mic_controls()
988 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_input_level, chip))) < 0) in vx2_add_mic_controls()
990 if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0) in vx2_add_mic_controls()