• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/

Lines Matching refs:ac97

253 	struct snd_ac97 *ac97;
401 static void snd_via82xx_codec_wait(struct snd_ac97 *ac97)
403 struct via82xx_modem *chip = ac97->private_data;
405 err = snd_via82xx_codec_ready(chip, ac97->num);
410 static void snd_via82xx_codec_write(struct snd_ac97 *ac97,
414 struct via82xx_modem *chip = ac97->private_data;
420 xval = !ac97->num ? VIA_REG_AC97_CODEC_ID_PRIMARY : VIA_REG_AC97_CODEC_ID_SECONDARY;
425 snd_via82xx_codec_ready(chip, ac97->num);
428 static unsigned short snd_via82xx_codec_read(struct snd_ac97 *ac97, unsigned short reg)
430 struct via82xx_modem *chip = ac97->private_data;
434 xval = ac97->num << VIA_REG_AC97_CODEC_ID_SHIFT;
435 xval |= ac97->num ? VIA_REG_AC97_SECONDARY_VALID : VIA_REG_AC97_PRIMARY_VALID;
441 ac97->num, snd_via82xx_codec_xread(chip));
446 if (snd_via82xx_codec_valid(chip, ac97->num) >= 0) {
654 snd_ac97_write(chip->ac97, AC97_LINE1_RATE, params_rate(hw_params));
655 snd_ac97_write(chip->ac97, AC97_LINE1_LEVEL, 0);
874 static void snd_via82xx_mixer_free_ac97(struct snd_ac97 *ac97)
876 struct via82xx_modem *chip = ac97->private_data;
877 chip->ac97 = NULL;
883 struct snd_ac97_template ac97;
896 memset(&ac97, 0, sizeof(ac97));
897 ac97.private_data = chip;
898 ac97.private_free = snd_via82xx_mixer_free_ac97;
899 ac97.pci = chip->pci;
900 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
901 ac97.num = chip->ac97_secondary;
903 if ((err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97)) < 0)
1024 snd_ac97_suspend(chip->ac97);
1050 snd_ac97_resume(chip->ac97);
1138 /* The 8233 ac97 controller does not implement the master bit