Lines Matching defs:ac97

16 #include <sound/ac97/regs.h>
124 /* ac97->scaps */
138 /* ac97->flags */
178 int (*build_3d) (struct snd_ac97 *ac97);
179 int (*build_specific) (struct snd_ac97 *ac97);
180 int (*build_spdif) (struct snd_ac97 *ac97);
181 int (*build_post_spdif) (struct snd_ac97 *ac97);
183 void (*suspend) (struct snd_ac97 *ac97);
184 void (*resume) (struct snd_ac97 *ac97);
186 void (*update_jacks) (struct snd_ac97 *ac97); /* for jack-sharing */
190 void (*reset) (struct snd_ac97 *ac97);
191 void (*warm_reset)(struct snd_ac97 *ac97);
192 void (*write) (struct snd_ac97 *ac97, unsigned short reg, unsigned short val);
193 unsigned short (*read) (struct snd_ac97 *ac97, unsigned short reg);
194 void (*wait) (struct snd_ac97 *ac97);
195 void (*init) (struct snd_ac97 *ac97);
226 void (*private_free) (struct snd_ac97 *ac97);
238 void (*private_free) (struct snd_ac97 *ac97);
290 static inline int ac97_is_audio(struct snd_ac97 * ac97)
292 return (ac97->scaps & AC97_SCAP_AUDIO);
294 static inline int ac97_is_modem(struct snd_ac97 * ac97)
296 return (ac97->scaps & AC97_SCAP_MODEM);
298 static inline int ac97_is_rev22(struct snd_ac97 * ac97)
300 return (ac97->ext_id & AC97_EI_REV_MASK) >= AC97_EI_REV_22;
302 static inline int ac97_can_amap(struct snd_ac97 * ac97)
304 return (ac97->ext_id & AC97_EI_AMAP) != 0;
306 static inline int ac97_can_spdif(struct snd_ac97 * ac97)
308 return (ac97->ext_id & AC97_EI_SPDIF) != 0;
319 const char *snd_ac97_get_short_name(struct snd_ac97 *ac97);
321 void snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short value);
322 unsigned short snd_ac97_read(struct snd_ac97 *ac97, unsigned short reg);
323 void snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned short value);
324 int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value);
325 int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value);
327 int snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup);
329 static inline int snd_ac97_update_power(struct snd_ac97 *ac97, int reg,
336 void snd_ac97_suspend(struct snd_ac97 *ac97);
337 void snd_ac97_resume(struct snd_ac97 *ac97);
339 static inline void snd_ac97_suspend(struct snd_ac97 *ac97) {}
340 static inline void snd_ac97_resume(struct snd_ac97 *ac97) {}
342 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id,
368 int snd_ac97_tune_hardware(struct snd_ac97 *ac97,
371 int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate);
404 int snd_ac97_pcm_assign(struct snd_ac97_bus *ac97,
416 static inline void snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data)
418 ac97->dev.platform_data = data;