Home | History | Annotate | Download | only in sound

Lines Matching refs:chip

97 	unsigned char (*in8)(struct vx_core *chip, int reg);
98 unsigned int (*in32)(struct vx_core *chip, int reg);
99 void (*out8)(struct vx_core *chip, int reg, unsigned char val);
100 void (*out32)(struct vx_core *chip, int reg, unsigned int val);
102 int (*test_and_ack)(struct vx_core *chip);
103 void (*validate_irq)(struct vx_core *chip, int enable);
105 void (*write_codec)(struct vx_core *chip, int codec, unsigned int data);
106 void (*akm_write)(struct vx_core *chip, int reg, unsigned int data);
107 void (*reset_codec)(struct vx_core *chip);
108 void (*change_audio_source)(struct vx_core *chip, int src);
110 /* chip init */
111 int (*load_dsp)(struct vx_core *chip, int idx, const struct firmware *fw);
112 void (*reset_dsp)(struct vx_core *chip);
113 void (*reset_board)(struct vx_core *chip, int cold_reset);
114 int (*add_controls)(struct vx_core *chip);
116 void (*dma_write)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
118 void (*dma_read)(struct vx_core *chip, struct snd_pcm_runtime *runtime,
149 /* chip status */
221 int snd_vx_setup_firmware(struct vx_core *chip);
222 int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *dsp);
223 int snd_vx_dsp_boot(struct vx_core *chip, const struct firmware *dsp);
224 int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp);
226 void snd_vx_free_firmware(struct vx_core *chip);
236 static inline int vx_test_and_ack(struct vx_core *chip)
238 snd_assert(chip->ops->test_and_ack, return -ENXIO);
239 return chip->ops->test_and_ack(chip);
242 static inline void vx_validate_irq(struct vx_core *chip, int enable)
244 snd_assert(chip->ops->validate_irq, return);
245 chip->ops->validate_irq(chip, enable);
248 static inline unsigned char snd_vx_inb(struct vx_core *chip, int reg)
250 snd_assert(chip->ops->in8, return 0);
251 return chip->ops->in8(chip, reg);
254 static inline unsigned int snd_vx_inl(struct vx_core *chip, int reg)
256 snd_assert(chip->ops->in32, return 0);
257 return chip->ops->in32(chip, reg);
260 static inline void snd_vx_outb(struct vx_core *chip, int reg, unsigned char val)
262 snd_assert(chip->ops->out8, return);
263 chip->ops->out8(chip, reg, val);
266 static inline void snd_vx_outl(struct vx_core *chip, int reg, unsigned int val)
268 snd_assert(chip->ops->out32, return);
269 chip->ops->out32(chip, reg, val);
272 #define vx_inb(chip,reg) snd_vx_inb(chip, VX_##reg)
273 #define vx_outb(chip,reg,val) snd_vx_outb(chip, VX_##reg,val)
274 #define vx_inl(chip,reg) snd_vx_inl(chip, VX_##reg)
275 #define vx_outl(chip,reg,val) snd_vx_outl(chip, VX_##reg,val)
277 static inline void vx_reset_dsp(struct vx_core *chip)
279 snd_assert(chip->ops->reset_dsp, return);
280 chip->ops->reset_dsp(chip);
283 int vx_send_msg(struct vx_core *chip, struct vx_rmh *rmh);
284 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh);
285 int vx_send_rih(struct vx_core *chip, int cmd);
286 int vx_send_rih_nolock(struct vx_core *chip, int cmd);
288 void vx_reset_codec(struct vx_core *chip, int cold_reset);
295 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time);
296 #define vx_check_isr(chip,mask,bit,time) snd_vx_check_reg_bit(chip, VX_ISR, mask, bit, time)
297 #define vx_wait_isr_bit(chip,bit) vx_check_isr(chip, bit, bit, 200)
298 #define vx_wait_for_rx_full(chip) vx_wait_isr_bit(chip, ISR_RX_FULL)
304 static inline void vx_pseudo_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime,
307 snd_assert(chip->ops->dma_write, return);
308 chip->ops->dma_write(chip, runtime, pipe, count);
311 static inline void vx_pseudo_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime,
314 snd_assert(chip->ops->dma_read, return);
315 chip->ops->dma_read(chip, runtime, pipe, count);
330 int snd_vx_pcm_new(struct vx_core *chip);
331 void vx_pcm_update_intr(struct vx_core *chip, unsigned int events);
336 int snd_vx_mixer_new(struct vx_core *chip);
337 void vx_toggle_dac_mute(struct vx_core *chip, int mute);
338 int vx_sync_audio_source(struct vx_core *chip);
339 int vx_set_monitor_level(struct vx_core *chip, int audio, int level, int active);
344 void vx_set_iec958_status(struct vx_core *chip, unsigned int bits);
345 int vx_set_clock(struct vx_core *chip, unsigned int freq);
346 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq);
347 int vx_change_frequency(struct vx_core *chip);
360 #define vx_has_new_dsp(chip) ((chip)->type != VX_TYPE_BOARD)
361 #define vx_is_pcmcia(chip) ((chip)->type >= VX_TYPE_VXPOCKET)