Lines Matching defs:ac97
245 struct snd_ac97 *ac97[NUM_ATI_CODECS];
456 static unsigned short snd_atiixp_ac97_read(struct snd_ac97 *ac97,
459 struct atiixp_modem *chip = ac97->private_data;
460 return snd_atiixp_codec_read(chip, ac97->num, reg);
464 static void snd_atiixp_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
467 struct atiixp_modem *chip = ac97->private_data;
473 snd_atiixp_codec_write(chip, ac97->num, reg, val);
814 if (! chip->ac97[i])
816 snd_ac97_write(chip->ac97[i], AC97_LINE1_RATE, params_rate(hw_params));
817 snd_ac97_write(chip->ac97[i], AC97_LINE1_LEVEL, 0);
1061 * ac97 mixer section
1067 struct snd_ac97_template ac97;
1092 memset(&ac97, 0, sizeof(ac97));
1093 ac97.private_data = chip;
1094 ac97.pci = chip->pci;
1095 ac97.num = i;
1096 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
1097 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
1098 chip->ac97[i] = NULL; /* to be sure */
1110 /* snd_ac97_tune_hardware(chip->ac97, ac97_quirks); */
1130 snd_ac97_suspend(chip->ac97[i]);
1160 snd_ac97_resume(chip->ac97[i]);