• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/

Lines Matching refs:ac97

252 	struct snd_ac97 *ac97;
404 static void snd_via82xx_codec_wait(struct snd_ac97 *ac97)
406 struct via82xx_modem *chip = ac97->private_data;
408 err = snd_via82xx_codec_ready(chip, ac97->num);
413 static void snd_via82xx_codec_write(struct snd_ac97 *ac97,
417 struct via82xx_modem *chip = ac97->private_data;
423 xval = !ac97->num ? VIA_REG_AC97_CODEC_ID_PRIMARY : VIA_REG_AC97_CODEC_ID_SECONDARY;
428 snd_via82xx_codec_ready(chip, ac97->num);
431 static unsigned short snd_via82xx_codec_read(struct snd_ac97 *ac97, unsigned short reg)
433 struct via82xx_modem *chip = ac97->private_data;
437 xval = ac97->num << VIA_REG_AC97_CODEC_ID_SHIFT;
438 xval |= ac97->num ? VIA_REG_AC97_SECONDARY_VALID : VIA_REG_AC97_PRIMARY_VALID;
444 ac97->num, snd_via82xx_codec_xread(chip));
449 if (snd_via82xx_codec_valid(chip, ac97->num) >= 0) {
658 snd_ac97_write(chip->ac97, AC97_LINE1_RATE, params_rate(hw_params));
659 snd_ac97_write(chip->ac97, AC97_LINE1_LEVEL, 0);
878 static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97)
880 struct via82xx_modem *chip = ac97->private_data;
881 chip->ac97 = NULL;
887 struct snd_ac97_template ac97;
900 memset(&ac97, 0, sizeof(ac97));
901 ac97.private_data = chip;
902 ac97.private_free = snd_via82xx_mixer_free_ac97;
903 ac97.pci = chip->pci;
904 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
905 ac97.num = chip->ac97_secondary;
907 if ((err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97)) < 0)
1028 snd_ac97_suspend(chip->ac97);
1054 snd_ac97_resume(chip->ac97);
1142 /* The 8233 ac97 controller does not implement the master bit