Lines Matching full:val
95 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local
115 val = snd_ac97_read(ac97, AC97_INT_PAGING); in snd_ac97_proc_read_main()
126 AC97_PAGE_MASK, val & AC97_PAGE_MASK); in snd_ac97_proc_read_main()
129 // val = snd_ac97_read(ac97, AC97_RESET); in snd_ac97_proc_read_main()
130 val = ac97->caps; in snd_ac97_proc_read_main()
132 val & AC97_BC_DEDICATED_MIC ? " -dedicated MIC PCM IN channel-" : "", in snd_ac97_proc_read_main()
133 val & AC97_BC_RESERVED1 ? " -reserved1-" : "", in snd_ac97_proc_read_main()
134 val & AC97_BC_BASS_TREBLE ? " -bass & treble-" : "", in snd_ac97_proc_read_main()
135 val & AC97_BC_SIM_STEREO ? " -simulated stereo-" : "", in snd_ac97_proc_read_main()
136 val & AC97_BC_HEADPHONE ? " -headphone out-" : "", in snd_ac97_proc_read_main()
137 val & AC97_BC_LOUDNESS ? " -loudness-" : ""); in snd_ac97_proc_read_main()
151 snd_ac97_stereo_enhancements[(val >> 10) & 0x1f]); in snd_ac97_proc_read_main()
153 val = snd_ac97_read(ac97, AC97_MIC); in snd_ac97_proc_read_main()
154 …snd_iprintf(buffer, "Mic gain : %s [%s]\n", val & 0x0040 ? "+20dB" : "+0dB", ac97->regs[AC… in snd_ac97_proc_read_main()
155 val = snd_ac97_read(ac97, AC97_GENERAL_PURPOSE); in snd_ac97_proc_read_main()
163 val & 0x8000 ? "post" : "pre", in snd_ac97_proc_read_main()
164 val & 0x4000 ? "on" : "off", in snd_ac97_proc_read_main()
165 val & 0x2000 ? "on" : "off", in snd_ac97_proc_read_main()
166 val & 0x1000 ? "on" : "off", in snd_ac97_proc_read_main()
167 val & 0x0200 ? "Mic" : "MIX", in snd_ac97_proc_read_main()
168 val & 0x0100 ? "Mic2" : "Mic1", in snd_ac97_proc_read_main()
169 val & 0x0080 ? "on" : "off"); in snd_ac97_proc_read_main()
172 double_rate_slots[(val >> 10) & 3]); in snd_ac97_proc_read_main()
190 val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS); in snd_ac97_proc_read_main()
192 val & AC97_EA_PRL ? " PRL" : "", in snd_ac97_proc_read_main()
193 val & AC97_EA_PRK ? " PRK" : "", in snd_ac97_proc_read_main()
194 val & AC97_EA_PRJ ? " PRJ" : "", in snd_ac97_proc_read_main()
195 val & AC97_EA_PRI ? " PRI" : "", in snd_ac97_proc_read_main()
196 val & AC97_EA_SPCV ? " SPCV" : "", in snd_ac97_proc_read_main()
197 val & AC97_EA_MDAC ? " MADC" : "", in snd_ac97_proc_read_main()
198 val & AC97_EA_LDAC ? " LDAC" : "", in snd_ac97_proc_read_main()
199 val & AC97_EA_SDAC ? " SDAC" : "", in snd_ac97_proc_read_main()
200 val & AC97_EA_CDAC ? " CDAC" : "", in snd_ac97_proc_read_main()
201 … ext & AC97_EI_SPDIF ? spdif_slots[(val & AC97_EA_SPSA_SLOT_MASK) >> AC97_EA_SPSA_SLOT_SHIFT] : "", in snd_ac97_proc_read_main()
202 val & AC97_EA_VRM ? " VRM" : "", in snd_ac97_proc_read_main()
203 val & AC97_EA_SPDIF ? " SPDIF" : "", in snd_ac97_proc_read_main()
204 val & AC97_EA_DRA ? " DRA" : "", in snd_ac97_proc_read_main()
205 val & AC97_EA_VRA ? " VRA" : ""); in snd_ac97_proc_read_main()
207 val = snd_ac97_read(ac97, AC97_PCM_FRONT_DAC_RATE); in snd_ac97_proc_read_main()
208 snd_iprintf(buffer, "PCM front DAC : %iHz\n", val); in snd_ac97_proc_read_main()
210 val = snd_ac97_read(ac97, AC97_PCM_SURR_DAC_RATE); in snd_ac97_proc_read_main()
211 snd_iprintf(buffer, "PCM Surr DAC : %iHz\n", val); in snd_ac97_proc_read_main()
214 val = snd_ac97_read(ac97, AC97_PCM_LFE_DAC_RATE); in snd_ac97_proc_read_main()
215 snd_iprintf(buffer, "PCM LFE DAC : %iHz\n", val); in snd_ac97_proc_read_main()
217 val = snd_ac97_read(ac97, AC97_PCM_LR_ADC_RATE); in snd_ac97_proc_read_main()
218 snd_iprintf(buffer, "PCM ADC : %iHz\n", val); in snd_ac97_proc_read_main()
221 val = snd_ac97_read(ac97, AC97_PCM_MIC_ADC_RATE); in snd_ac97_proc_read_main()
222 snd_iprintf(buffer, "PCM MIC ADC : %iHz\n", val); in snd_ac97_proc_read_main()
227 val = snd_ac97_read(ac97, AC97_CSR_SPDIF); in snd_ac97_proc_read_main()
229 val = snd_ac97_read(ac97, AC97_YMF7X3_DIT_CTRL); in snd_ac97_proc_read_main()
230 val = 0x2000 | (val & 0xff00) >> 4 | (val & 0x38) >> 2; in snd_ac97_proc_read_main()
232 val = snd_ac97_read(ac97, AC97_SPDIF); in snd_ac97_proc_read_main()
235 val & AC97_SC_PRO ? " PRO" : " Consumer", in snd_ac97_proc_read_main()
236 val & AC97_SC_NAUDIO ? " Non-audio" : " PCM", in snd_ac97_proc_read_main()
237 val & AC97_SC_COPY ? "" : " Copyright", in snd_ac97_proc_read_main()
238 val & AC97_SC_PRE ? " Preemph50/15" : "", in snd_ac97_proc_read_main()
239 (val & AC97_SC_CC_MASK) >> AC97_SC_CC_SHIFT, in snd_ac97_proc_read_main()
240 (val & AC97_SC_L) >> 11, in snd_ac97_proc_read_main()
242 spdif_rates_cs4205[(val & AC97_SC_SPSR_MASK) >> AC97_SC_SPSR_SHIFT] : in snd_ac97_proc_read_main()
243 spdif_rates[(val & AC97_SC_SPSR_MASK) >> AC97_SC_SPSR_SHIFT], in snd_ac97_proc_read_main()
245 (val & AC97_SC_DRS ? " Validity" : "") : in snd_ac97_proc_read_main()
246 (val & AC97_SC_DRS ? " DRS" : ""), in snd_ac97_proc_read_main()
248 (val & AC97_SC_V ? " Enabled" : "") : in snd_ac97_proc_read_main()
249 (val & AC97_SC_V ? " Validity" : "")); in snd_ac97_proc_read_main()
253 val = snd_ac97_read(ac97, AC97_ALC650_SPDIF_INPUT_STATUS2); in snd_ac97_proc_read_main()
254 if (val & AC97_ALC650_CLOCK_LOCK) { in snd_ac97_proc_read_main()
255 val = snd_ac97_read(ac97, AC97_ALC650_SPDIF_INPUT_STATUS1); in snd_ac97_proc_read_main()
257 val & AC97_ALC650_PRO ? " PRO" : " Consumer", in snd_ac97_proc_read_main()
258 val & AC97_ALC650_NAUDIO ? " Non-audio" : " PCM", in snd_ac97_proc_read_main()
259 val & AC97_ALC650_COPY ? "" : " Copyright", in snd_ac97_proc_read_main()
260 val & AC97_ALC650_PRE ? " Preemph50/15" : "", in snd_ac97_proc_read_main()
261 (val & AC97_ALC650_CC_MASK) >> AC97_ALC650_CC_SHIFT, in snd_ac97_proc_read_main()
262 (val & AC97_ALC650_L) >> 15); in snd_ac97_proc_read_main()
263 val = snd_ac97_read(ac97, AC97_ALC650_SPDIF_INPUT_STATUS2); in snd_ac97_proc_read_main()
265 spdif_rates[(val & AC97_ALC650_SPSR_MASK) >> AC97_ALC650_SPSR_SHIFT], in snd_ac97_proc_read_main()
266 (val & AC97_ALC650_CLOCK_ACCURACY) >> AC97_ALC650_CLOCK_SHIFT, in snd_ac97_proc_read_main()
267 (val & AC97_ALC650_CLOCK_LOCK ? " Locked" : " Unlocked"), in snd_ac97_proc_read_main()
268 (val & AC97_ALC650_V ? " Validity?" : "")); in snd_ac97_proc_read_main()
275 val = snd_ac97_read(ac97, AC97_INT_PAGING); in snd_ac97_proc_read_main()
280 AC97_PAGE_MASK, val & AC97_PAGE_MASK); in snd_ac97_proc_read_main()
296 val = snd_ac97_read(ac97, AC97_EXTENDED_MSTATUS); in snd_ac97_proc_read_main()
298 val & AC97_MEA_GPIO ? " GPIO" : "", in snd_ac97_proc_read_main()
299 val & AC97_MEA_MREF ? " MREF" : "", in snd_ac97_proc_read_main()
300 val & AC97_MEA_ADC1 ? " ADC1" : "", in snd_ac97_proc_read_main()
301 val & AC97_MEA_DAC1 ? " DAC1" : "", in snd_ac97_proc_read_main()
302 val & AC97_MEA_ADC2 ? " ADC2" : "", in snd_ac97_proc_read_main()
303 val & AC97_MEA_DAC2 ? " DAC2" : "", in snd_ac97_proc_read_main()
304 val & AC97_MEA_HADC ? " HADC" : "", in snd_ac97_proc_read_main()
305 val & AC97_MEA_HDAC ? " HDAC" : "", in snd_ac97_proc_read_main()
306 val & AC97_MEA_PRA ? " PRA(GPIO)" : "", in snd_ac97_proc_read_main()
307 val & AC97_MEA_PRB ? " PRB(res)" : "", in snd_ac97_proc_read_main()
308 val & AC97_MEA_PRC ? " PRC(ADC1)" : "", in snd_ac97_proc_read_main()
309 val & AC97_MEA_PRD ? " PRD(DAC1)" : "", in snd_ac97_proc_read_main()
310 val & AC97_MEA_PRE ? " PRE(ADC2)" : "", in snd_ac97_proc_read_main()
311 val & AC97_MEA_PRF ? " PRF(DAC2)" : "", in snd_ac97_proc_read_main()
312 val & AC97_MEA_PRG ? " PRG(HADC)" : "", in snd_ac97_proc_read_main()
313 val & AC97_MEA_PRH ? " PRH(HDAC)" : ""); in snd_ac97_proc_read_main()
315 val = snd_ac97_read(ac97, AC97_LINE1_RATE); in snd_ac97_proc_read_main()
316 snd_iprintf(buffer, "Line1 rate : %iHz\n", val); in snd_ac97_proc_read_main()
319 val = snd_ac97_read(ac97, AC97_LINE2_RATE); in snd_ac97_proc_read_main()
320 snd_iprintf(buffer, "Line2 rate : %iHz\n", val); in snd_ac97_proc_read_main()
323 val = snd_ac97_read(ac97, AC97_HANDSET_RATE); in snd_ac97_proc_read_main()
324 snd_iprintf(buffer, "Headset rate : %iHz\n", val); in snd_ac97_proc_read_main()
367 unsigned int reg, val; in snd_ac97_proc_regs_write() local
370 if (sscanf(line, "%x %x", ®, &val) != 2) in snd_ac97_proc_regs_write()
373 if (reg < 0x80 && (reg & 1) == 0 && val <= 0xffff) in snd_ac97_proc_regs_write()
374 snd_ac97_write_cache(ac97, reg, val); in snd_ac97_proc_regs_write()
382 int reg, val; in snd_ac97_proc_regs_read_main() local
385 val = snd_ac97_read(ac97, reg); in snd_ac97_proc_regs_read_main()
386 snd_iprintf(buffer, "%i:%02x = %04x\n", subidx, reg, val); in snd_ac97_proc_regs_read_main()