Lines Matching defs:ac97

240 	struct snd_ac97 *ac97;
398 static void snd_via82xx_codec_wait(struct snd_ac97 *ac97)
400 struct via82xx_modem *chip = ac97->private_data;
402 err = snd_via82xx_codec_ready(chip, ac97->num);
407 static void snd_via82xx_codec_write(struct snd_ac97 *ac97,
411 struct via82xx_modem *chip = ac97->private_data;
417 xval = !ac97->num ? VIA_REG_AC97_CODEC_ID_PRIMARY : VIA_REG_AC97_CODEC_ID_SECONDARY;
422 snd_via82xx_codec_ready(chip, ac97->num);
425 static unsigned short snd_via82xx_codec_read(struct snd_ac97 *ac97, unsigned short reg)
427 struct via82xx_modem *chip = ac97->private_data;
431 xval = ac97->num << VIA_REG_AC97_CODEC_ID_SHIFT;
432 xval |= ac97->num ? VIA_REG_AC97_SECONDARY_VALID : VIA_REG_AC97_PRIMARY_VALID;
439 ac97->num, snd_via82xx_codec_xread(chip));
444 if (snd_via82xx_codec_valid(chip, ac97->num) >= 0) {
653 snd_ac97_write(chip->ac97, AC97_LINE1_RATE, params_rate(hw_params));
654 snd_ac97_write(chip->ac97, AC97_LINE1_LEVEL, 0);
867 static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97)
869 struct via82xx_modem *chip = ac97->private_data;
870 chip->ac97 = NULL;
876 struct snd_ac97_template ac97;
890 memset(&ac97, 0, sizeof(ac97));
891 ac97.private_data = chip;
892 ac97.private_free = snd_via82xx_mixer_free_ac97;
893 ac97.pci = chip->pci;
894 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
895 ac97.num = chip->ac97_secondary;
897 err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97);
1023 snd_ac97_suspend(chip->ac97);
1035 snd_ac97_resume(chip->ac97);
1093 /* The 8233 ac97 controller does not implement the master bit