Lines Matching refs:ac97
190 struct snd_ac97 *ac97; member
211 struct snd_ac97 *ac97; member
345 static void snd_intel8x0m_codec_write(struct snd_ac97 *ac97, in snd_intel8x0m_codec_write() argument
349 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_codec_write()
351 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { in snd_intel8x0m_codec_write()
355 ac97->num, reg); in snd_intel8x0m_codec_write()
357 iaputword(chip, reg + ac97->num * 0x80, val); in snd_intel8x0m_codec_write()
360 static unsigned short snd_intel8x0m_codec_read(struct snd_ac97 *ac97, in snd_intel8x0m_codec_read() argument
363 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_codec_read()
367 if (snd_intel8x0m_codec_semaphore(chip, ac97->num) < 0) { in snd_intel8x0m_codec_read()
371 ac97->num, reg); in snd_intel8x0m_codec_read()
374 res = iagetword(chip, reg + ac97->num * 0x80); in snd_intel8x0m_codec_read()
382 ac97->num, reg); in snd_intel8x0m_codec_read()
608 snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate); in snd_intel8x0m_pcm_prepare()
609 snd_ac97_write(ichdev->ac97, AC97_LINE1_LEVEL, 0); in snd_intel8x0m_pcm_prepare()
798 if (! chip->ichd[rec->ac97_idx].ac97) in snd_intel8x0m_pcm()
822 static void snd_intel8x0m_mixer_free_ac97(struct snd_ac97 *ac97) in snd_intel8x0m_mixer_free_ac97() argument
824 struct intel8x0m *chip = ac97->private_data; in snd_intel8x0m_mixer_free_ac97()
825 chip->ac97 = NULL; in snd_intel8x0m_mixer_free_ac97()
832 struct snd_ac97_template ac97; in snd_intel8x0m_mixer() local
843 memset(&ac97, 0, sizeof(ac97)); in snd_intel8x0m_mixer()
844 ac97.private_data = chip; in snd_intel8x0m_mixer()
845 ac97.private_free = snd_intel8x0m_mixer_free_ac97; in snd_intel8x0m_mixer()
846 ac97.scaps = AC97_SCAP_SKIP_AUDIO | AC97_SCAP_POWER_SAVE; in snd_intel8x0m_mixer()
857 ac97.pci = chip->pci; in snd_intel8x0m_mixer()
858 ac97.num = glob_sta & ICH_SCR ? 1 : 0; in snd_intel8x0m_mixer()
859 if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) { in snd_intel8x0m_mixer()
861 "Unable to initialize codec #%d\n", ac97.num); in snd_intel8x0m_mixer()
862 if (ac97.num == 0) in snd_intel8x0m_mixer()
866 chip->ac97 = x97; in snd_intel8x0m_mixer()
867 if(ac97_is_modem(x97) && !chip->ichd[ICHD_MDMIN].ac97) { in snd_intel8x0m_mixer()
868 chip->ichd[ICHD_MDMIN].ac97 = x97; in snd_intel8x0m_mixer()
869 chip->ichd[ICHD_MDMOUT].ac97 = x97; in snd_intel8x0m_mixer()
951 if (chip->ac97) in snd_intel8x0m_ich_chip_init()
952 status |= get_ich_codec_bit(chip, chip->ac97->num); in snd_intel8x0m_ich_chip_init()
1033 snd_ac97_suspend(chip->ac97); in intel8x0m_suspend()
1056 snd_ac97_resume(chip->ac97); in intel8x0m_resume()