Lines Matching refs:ac97
160 struct snd_ac97 *ac97; member
181 struct snd_ac97 *ac97; member
315 static void snd_intel8x0m_codec_write(struct snd_ac97 *ac97, in snd_intel8x0m_codec_write() argument
319 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_codec_write()
321 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { in snd_intel8x0m_codec_write()
325 ac97->num, reg); in snd_intel8x0m_codec_write()
327 iaputword(chip, reg + ac97->num * 0x80, val); in snd_intel8x0m_codec_write()
330 static unsigned short snd_intel8x0m_codec_read(struct snd_ac97 *ac97, in snd_intel8x0m_codec_read() argument
333 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_codec_read()
337 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { in snd_intel8x0m_codec_read()
341 ac97->num, reg); in snd_intel8x0m_codec_read()
344 res = iagetword(chip, reg + ac97->num * 0x80); in snd_intel8x0m_codec_read()
353 ac97->num, reg); in snd_intel8x0m_codec_read()
568 snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate); in snd_intel8x0m_pcm_prepare()
569 snd_ac97_write(ichdev->ac97, AC97_LINE1_LEVEL, 0); in snd_intel8x0m_pcm_prepare()
752 if (! chip->ichd[rec->ac97_idx].ac97) in snd_intel8x0m_pcm()
776 static void snd_intel8x0m_mixer_free_ac97(struct snd_ac97 *ac97) in snd_intel8x0m_mixer_free_ac97() argument
778 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_mixer_free_ac97()
779 chip->ac97 = NULL; in snd_intel8x0m_mixer_free_ac97()
786 struct snd_ac97_template ac97; in snd_intel8x0m_mixer() local
797 memset(&ac97, 0, sizeof(ac97)); in snd_intel8x0m_mixer()
798 ac97.private_data = chip; in snd_intel8x0m_mixer()
799 ac97.private_free = snd_intel8x0m_mixer_free_ac97; in snd_intel8x0m_mixer()
800 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE; in snd_intel8x0m_mixer()
812 ac97.pci = chip->pci; in snd_intel8x0m_mixer()
813 ac97.num = glob_sta & ICH_SCR ? 1 : 0; in snd_intel8x0m_mixer()
814 err = snd_ac97_mixer(pbus, &ac97, &x97); in snd_intel8x0m_mixer()
817 "Unable to initialize codec #%d\n", ac97.num); in snd_intel8x0m_mixer()
818 if (ac97.num == 0) in snd_intel8x0m_mixer()
822 chip->ac97 = x97; in snd_intel8x0m_mixer()
823 if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) { in snd_intel8x0m_mixer()
824 chip->ichd[ICHD_MDMIN].ac97 = x97; in snd_intel8x0m_mixer()
825 chip->ichd[ICHD_MDMOUT].ac97 = x97; in snd_intel8x0m_mixer()
907 if (chip->ac97) in snd_intel8x0m_ich_chip_init()
908 status |= get_ich_codec_bit(chip, chip->ac97->num); in snd_intel8x0m_ich_chip_init()
978 snd_ac97_suspend(chip->ac97); in intel8x0m_suspend()
1003 snd_ac97_resume(chip->ac97); in intel8x0m_resume()