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()
565 snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate); in snd_intel8x0m_pcm_prepare()
566 snd_ac97_write(ichdev->ac97, AC97_LINE1_LEVEL, 0); in snd_intel8x0m_pcm_prepare()
749 if (! chip->ichd[rec->ac97_idx].ac97) in snd_intel8x0m_pcm()
773 static void snd_intel8x0m_mixer_free_ac97(struct snd_ac97 *ac97) in snd_intel8x0m_mixer_free_ac97() argument
775 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_mixer_free_ac97()
776 chip->ac97 = NULL; in snd_intel8x0m_mixer_free_ac97()
783 struct snd_ac97_template ac97; in snd_intel8x0m_mixer() local
794 memset(&ac97, 0, sizeof(ac97)); in snd_intel8x0m_mixer()
795 ac97.private_data = chip; in snd_intel8x0m_mixer()
796 ac97.private_free = snd_intel8x0m_mixer_free_ac97; in snd_intel8x0m_mixer()
797 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE; in snd_intel8x0m_mixer()
809 ac97.pci = chip->pci; in snd_intel8x0m_mixer()
810 ac97.num = glob_sta & ICH_SCR ? 1 : 0; in snd_intel8x0m_mixer()
811 err = snd_ac97_mixer(pbus, &ac97, &x97); in snd_intel8x0m_mixer()
814 "Unable to initialize codec #%d\n", ac97.num); in snd_intel8x0m_mixer()
815 if (ac97.num == 0) in snd_intel8x0m_mixer()
819 chip->ac97 = x97; in snd_intel8x0m_mixer()
820 if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) { in snd_intel8x0m_mixer()
821 chip->ichd[ICHD_MDMIN].ac97 = x97; in snd_intel8x0m_mixer()
822 chip->ichd[ICHD_MDMOUT].ac97 = x97; in snd_intel8x0m_mixer()
904 if (chip->ac97) in snd_intel8x0m_ich_chip_init()
905 status |= get_ich_codec_bit(chip, chip->ac97->num); in snd_intel8x0m_ich_chip_init()
974 snd_ac97_suspend(chip->ac97); in intel8x0m_suspend()
999 snd_ac97_resume(chip->ac97); in intel8x0m_resume()