Lines Matching refs:chip
76 unsigned char (*in8)(struct vx_core *chip, int reg);
77 unsigned int (*in32)(struct vx_core *chip, int reg);
78 void (*out8)(struct vx_core *chip, int reg, unsigned char val);
79 void (*out32)(struct vx_core *chip, int reg, unsigned int val);
81 int (*test_and_ack)(struct vx_core *chip);
82 void (*validate_irq)(struct vx_core *chip, int enable);
84 void (*write_codec)(struct vx_core *chip, int codec, unsigned int data);
85 void (*akm_write)(struct vx_core *chip, int reg, unsigned int data);
86 void (*reset_codec)(struct vx_core *chip);
87 void (*change_audio_source)(struct vx_core *chip, int src);
90 int (*load_dsp)(struct vx_core *chip, int idx, const struct firmware *fw);
91 void (*reset_dsp)(struct vx_core *chip);
92 void (*reset_board)(struct vx_core *chip, int cold_reset);
93 int (*add_controls)(struct vx_core *chip);
95 void (*dma_write)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
97 void (*dma_read)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
198 int snd_vx_setup_firmware(struct vx_core *chip);
199 int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *dsp);
200 int snd_vx_dsp_boot(struct vx_core *chip, const struct firmware *dsp);
201 int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp);
203 void snd_vx_free_firmware(struct vx_core *chip);
214 static inline int vx_test_and_ack(struct vx_core *chip) in vx_test_and_ack() argument
216 return chip->ops->test_and_ack(chip); in vx_test_and_ack()
219 static inline void vx_validate_irq(struct vx_core *chip, int enable) in vx_validate_irq() argument
221 chip->ops->validate_irq(chip, enable); in vx_validate_irq()
224 static inline unsigned char snd_vx_inb(struct vx_core *chip, int reg) in snd_vx_inb() argument
226 return chip->ops->in8(chip, reg); in snd_vx_inb()
229 static inline unsigned int snd_vx_inl(struct vx_core *chip, int reg) in snd_vx_inl() argument
231 return chip->ops->in32(chip, reg); in snd_vx_inl()
234 static inline void snd_vx_outb(struct vx_core *chip, int reg, unsigned char val) in snd_vx_outb() argument
236 chip->ops->out8(chip, reg, val); in snd_vx_outb()
239 static inline void snd_vx_outl(struct vx_core *chip, int reg, unsigned int val) in snd_vx_outl() argument
241 chip->ops->out32(chip, reg, val); in snd_vx_outl()
244 #define vx_inb(chip,reg) snd_vx_inb(chip, VX_##reg) argument
245 #define vx_outb(chip,reg,val) snd_vx_outb(chip, VX_##reg,val) argument
246 #define vx_inl(chip,reg) snd_vx_inl(chip, VX_##reg) argument
247 #define vx_outl(chip,reg,val) snd_vx_outl(chip, VX_##reg,val) argument
249 static inline void vx_reset_dsp(struct vx_core *chip) in vx_reset_dsp() argument
251 chip->ops->reset_dsp(chip); in vx_reset_dsp()
254 int vx_send_msg(struct vx_core *chip, struct vx_rmh *rmh);
255 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh);
256 int vx_send_rih(struct vx_core *chip, int cmd);
257 int vx_send_rih_nolock(struct vx_core *chip, int cmd);
259 void vx_reset_codec(struct vx_core *chip, int cold_reset);
266 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time);
267 #define vx_check_isr(chip,mask,bit,time) snd_vx_check_reg_bit(chip, VX_ISR, mask, bit, time) argument
268 #define vx_wait_isr_bit(chip,bit) vx_check_isr(chip, bit, bit, 200) argument
269 #define vx_wait_for_rx_full(chip) vx_wait_isr_bit(chip, ISR_RX_FULL) argument
275 static inline void vx_pseudo_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pseudo_dma_write() argument
278 chip->ops->dma_write(chip, runtime, pipe, count); in vx_pseudo_dma_write()
281 static inline void vx_pseudo_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pseudo_dma_read() argument
284 chip->ops->dma_read(chip, runtime, pipe, count); in vx_pseudo_dma_read()
299 int snd_vx_pcm_new(struct vx_core *chip);
300 void vx_pcm_update_intr(struct vx_core *chip, unsigned int events);
305 int snd_vx_mixer_new(struct vx_core *chip);
306 void vx_toggle_dac_mute(struct vx_core *chip, int mute);
307 int vx_sync_audio_source(struct vx_core *chip);
308 int vx_set_monitor_level(struct vx_core *chip, int audio, int level, int active);
313 void vx_set_iec958_status(struct vx_core *chip, unsigned int bits);
314 int vx_set_clock(struct vx_core *chip, unsigned int freq);
315 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq);
316 int vx_change_frequency(struct vx_core *chip);
329 #define vx_has_new_dsp(chip) ((chip)->type != VX_TYPE_BOARD) argument
330 #define vx_is_pcmcia(chip) ((chip)->type >= VX_TYPE_VXPOCKET) argument