• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/

Lines Matching refs:ac97

248 	ICH_REG_ALI_CPR_ADDR = 0x22,	/* ac97 addr write */
250 ICH_REG_ALI_SPR_ADDR = 0x26, /* ac97 addr read */
397 unsigned in_measurement: 1; /* during ac97 clock measurement */
407 struct snd_ac97 *ac97[3];
536 /* access to some forbidden (non existant) ac97 registers will not
546 static void snd_intel8x0_codec_write(struct snd_ac97 *ac97,
550 struct intel8x0 *chip = ac97->private_data;
552 if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) {
554 snd_printk(KERN_ERR "codec_write %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
556 iaputword(chip, reg + ac97->num * 0x80, val);
559 static unsigned short snd_intel8x0_codec_read(struct snd_ac97 *ac97,
562 struct intel8x0 *chip = ac97->private_data;
566 if (snd_intel8x0_codec_semaphore(chip, ac97->num) < 0) {
568 snd_printk(KERN_ERR "codec_read %d: semaphore is not ready for register 0x%x\n", ac97->num, reg);
571 res = iagetword(chip, reg + ac97->num * 0x80);
577 snd_printk(KERN_ERR "codec_read %d: read timeout for register 0x%x\n", ac97->num, reg);
627 static unsigned short snd_intel8x0_ali_codec_read(struct snd_ac97 *ac97, unsigned short reg)
629 struct intel8x0 *chip = ac97->private_data;
635 if (ac97->num)
645 static void snd_intel8x0_ali_codec_write(struct snd_ac97 *ac97, unsigned short reg,
648 struct intel8x0 *chip = ac97->private_data;
653 if (ac97->num)
1590 static void snd_intel8x0_mixer_free_ac97(struct snd_ac97 *ac97)
1592 struct intel8x0 *chip = ac97->private_data;
1593 chip->ac97[ac97->num] = NULL;
2056 struct snd_ac97_template ac97;
2087 memset(&ac97, 0, sizeof(ac97));
2088 ac97.private_data = chip;
2089 ac97.private_free = snd_intel8x0_mixer_free_ac97;
2090 ac97.scaps = AC97_SCAP_SKIP_MODEM | AC97_SCAP_POWER_SAVE;
2092 ac97.scaps |= AC97_SCAP_DETECT_BY_VENDOR;
2140 ac97.pci = chip->pci;
2142 ac97.num = i;
2143 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
2151 snd_ac97_tune_hardware(chip->ac97[0], ac97_quirks, quirk_override);
2196 if (chip->ac97[0]->flags & AC97_HAS_8CH)
2217 snd_ac97_update_bits(chip->ac97[0], AC97_EXTENDED_STATUS, 0x03 << 4, 0x03 << 4);
2264 /* do cold reset - the full ac97 powerdown may leave the controller
2327 * as long as we do not disable the ac97 link.
2358 if (chip->ac97[i])
2520 snd_ac97_suspend(chip->ac97[i]);
2578 snd_ac97_resume(chip->ac97[i]);
2628 snd_printk(KERN_WARNING "no playback buffer allocated - aborting measure ac97 clock\n");
2637 if (snd_ac97_set_rate(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 48000) < 0) {
2638 snd_printk(KERN_ERR "cannot set ac97 rate: clock = %d\n", chip->ac97_bus->clock);
2728 snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0);
2896 /* ALI5455 has no ac97 region */
3146 snd_ac97_get_short_name(chip->ac97[0]), chip->irq);