Lines Matching defs:ac97
38 static void aaci_ac97_select_codec(struct aaci *aaci, struct snd_ac97 *ac97)
40 u32 v, maincr = aaci->maincr | MAINCR_SCRA(ac97->num);
63 static void aaci_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
66 struct aaci *aaci = ac97->private_data;
70 if (ac97->num >= 4)
75 aaci_ac97_select_codec(aaci, ac97);
101 static unsigned short aaci_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
103 struct aaci *aaci = ac97->private_data;
108 if (ac97->num >= 4)
113 aaci_ac97_select_codec(aaci, ac97);
161 "ac97 read back fail. retry\n");
165 "wrong ac97 register read back (%x != %x)\n",
744 aaci_ac97_write(aaci->ac97, AC97_EXTENDED_STATUS, 0x0001); /* VRA */
745 aaci_ac97_write(aaci->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
746 aaci_ac97_write(aaci->ac97, AC97_PCM_MIC_ADC_RATE, runtime->rate);
749 aaci_ac97_write(aaci->ac97, AC97_REC_SEL, 0x0404);
852 struct snd_ac97 *ac97;
880 ret = snd_ac97_mixer(ac97_bus, &ac97_template, &ac97);
883 aaci->ac97 = ac97;
888 if (ac97_is_audio(ac97))
889 snd_ac97_write_cache(ac97, AC97_PC_BEEP, 0x801e);
1039 * Fix: ac97 read back fail errors by reading