Lines Matching refs:ac97_write
39 static int ac97_write(struct snd_soc_codec *codec,
230 ac97_write(codec, AC97_HANDSET_RATE, rate | 0x0200);
232 ac97_write(codec, AC97_HANDSET_RATE, rate | 0x0F00);
233 ac97_write(codec, AC97_EXTENDED_MID, status);
262 ac97_write(w->codec, AC97_PC_BEEP, beep & 0x7fff);
264 ac97_write(w->codec, AC97_PC_BEEP, beep | 0x8000);
267 ac97_write(w->codec, AC97_MASTER_TONE, tone & 0x7fff);
269 ac97_write(w->codec, AC97_MASTER_TONE, tone | 0x8000);
272 ac97_write(w->codec, AC97_PHONE, phone & 0x7fff);
274 ac97_write(w->codec, AC97_PHONE, phone | 0x8000);
277 ac97_write(w->codec, AC97_REC_SEL, rec & 0x7fff);
279 ac97_write(w->codec, AC97_REC_SEL, rec | 0x8000);
282 ac97_write(w->codec, AC97_PCM, pcm & 0x7fff);
284 ac97_write(w->codec, AC97_PCM, pcm | 0x8000);
287 ac97_write(w->codec, AC97_AUX, aux & 0x7fff);
289 ac97_write(w->codec, AC97_AUX, aux | 0x8000);
677 static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
775 ac97_write(codec, AC97_HANDSET_RATE, reg | 0x0080);
777 ac97_write(codec, AC97_EXTENDED_MID, reg | 0x0200);
787 ac97_write(codec, AC97_LINE1_LEVEL, reg);
795 ac97_write(codec, AC97_LINE1_LEVEL, reg);
799 ac97_write(codec, AC97_LINE1_LEVEL, reg);
803 ac97_write(codec, AC97_LINE1_LEVEL, reg);
807 ac97_write(codec, AC97_LINE1_LEVEL, reg);
811 ac97_write(codec, AC97_LINE1_LEVEL, reg);
814 ac97_write(codec, AC97_LINE1_LEVEL, reg);
819 ac97_write(codec, AC97_EXTENDED_MID, reg & 0xfdff);
821 ac97_write(codec, AC97_HANDSET_RATE, reg & 0xff7f);
847 ac97_write(codec, AC97_CENTER_LFE_MASTER, reg);
865 ac97_write(codec, AC97_HANDSET_RATE, reg | div);
869 ac97_write(codec, AC97_HANDSET_RATE, reg | div);
873 ac97_write(codec, AC97_HANDSET_RATE, reg | div);
877 ac97_write(codec, AC97_HANDSET_RATE, reg | div);
881 ac97_write(codec, AC97_CENTER_LFE_MASTER, reg | div);
885 ac97_write(codec, AC97_LINE1_LEVEL, reg | 0x60 | div);
889 ac97_write(codec, AC97_LINE1_LEVEL, reg | 0x70 | div);
955 ac97_write(codec, AC97_GPIO_CFG, gpio);
956 ac97_write(codec, AC97_CENTER_LFE_MASTER, reg);
982 ac97_write(codec, AC97_CENTER_LFE_MASTER, reg);
995 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);
1002 return ac97_write(codec, reg, runtime->rate);
1013 ac97_write(codec, AC97_EXTENDED_STATUS, vra | 0x1);
1015 ac97_write(codec, AC97_PCI_SID, xsle | 0x8000);
1020 return ac97_write(codec, AC97_PCM_SURR_DAC_RATE, runtime->rate);
1134 ac97_write(codec, AC97_EXTENDED_MID, reg);
1141 ac97_write(codec, AC97_EXTENDED_MID, reg);
1142 ac97_write(codec, AC97_POWERDOWN, 0x0000);
1146 ac97_write(codec, AC97_EXTENDED_MID, 0xffff);
1147 ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff);
1148 ac97_write(codec, AC97_POWERDOWN, 0xffff);
1166 ac97_write(codec, AC97_EXTENDED_MID, reg | 0x7fff);
1167 ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff);
1168 ac97_write(codec, AC97_POWERDOWN, 0x6f00);
1169 ac97_write(codec, AC97_POWERDOWN, 0xffff);
1239 codec->write = ac97_write;
1267 ac97_write(codec, AC97_CD, reg);