• 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

191 	struct snd_ac97 *ac97;
212 struct snd_ac97 *ac97;
330 /* access to some forbidden (non existant) ac97 registers will not
340 static void snd_intel8x0_codec_write(struct snd_ac97 *ac97,
344 struct intel8x0m *chip = ac97->private_data;
346 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) {
348 snd_printk(KERN_ERR "codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
350 iaputword(chip, reg + ac97->num * 0x80, val);
353 static unsigned short snd_intel8x0_codec_read(struct snd_ac97 *ac97,
356 struct intel8x0m *chip = ac97->private_data;
360 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) {
362 snd_printk(KERN_ERR "codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
365 res = iagetword(chip, reg + ac97->num * 0x80);
371 snd_printk(KERN_ERR "codec_read %d: read timeout for register 0x%x\n", ac97->num, reg);
581 snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate);
582 snd_ac97_write(ichdev->ac97, AC97_LINE1_LEVEL, 0);
754 if (! chip->ichd[rec->ac97_idx].ac97)
778 static void snd_intel8x0_mixer_free_ac97(struct snd_ac97 *ac97)
780 struct intel8x0m *chip = ac97->private_data;
781 chip->ac97 = NULL;
788 struct snd_ac97_template ac97;
799 memset(&ac97, 0, sizeof(ac97));
800 ac97.private_data = chip;
801 ac97.private_free = snd_intel8x0_mixer_free_ac97;
802 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
813 ac97.pci = chip->pci;
814 ac97.num = glob_sta & ICH_SCR ? 1 : 0;
815 if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) {
816 snd_printk(KERN_ERR "Unable to initialize codec #%d\n", ac97.num);
817 if (ac97.num == 0)
821 chip->ac97 = x97;
822 if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) {
823 chip->ichd[ICHD_MDMIN].ac97 = x97;
824 chip->ichd[ICHD_MDMOUT].ac97 = x97;
874 * as long as we do not disable the ac97 link.
904 if (chip->ac97)
905 status |= get_ich_codec_bit(chip, chip->ac97->num);
988 snd_ac97_suspend(chip->ac97);
1023 snd_ac97_resume(chip->ac97);
1116 /* ALI5455 has no ac97 region */