Lines Matching defs:ac97
190 struct snd_ac97 *ac97;
211 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);
584 snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate);
585 snd_ac97_write(ichdev->ac97, AC97_LINE1_LEVEL, 0);
757 if (! chip->ichd[rec->ac97_idx].ac97)
781 static void snd_intel8x0_mixer_free_ac97(struct snd_ac97 *ac97)
783 struct intel8x0m *chip = ac97->private_data;
784 chip->ac97 = NULL;
791 struct snd_ac97_template ac97;
802 memset(&ac97, 0, sizeof(ac97));
803 ac97.private_data = chip;
804 ac97.private_free = snd_intel8x0_mixer_free_ac97;
805 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE;
816 ac97.pci = chip->pci;
817 ac97.num = glob_sta & ICH_SCR ? 1 : 0;
818 if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) {
819 snd_printk(KERN_ERR "Unable to initialize codec #%d\n", ac97.num);
820 if (ac97.num == 0)
824 chip->ac97 = x97;
825 if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) {
826 chip->ichd[ICHD_MDMIN].ac97 = x97;
827 chip->ichd[ICHD_MDMOUT].ac97 = x97;
877 * as long as we do not disable the ac97 link.
907 if (chip->ac97)
908 status |= get_ich_codec_bit(chip, chip->ac97->num);
989 snd_ac97_suspend(chip->ac97);
1023 snd_ac97_resume(chip->ac97);
1116 /* ALI5455 has no ac97 region */