Lines Matching refs:buffer
19 struct snd_info_buffer *buffer, in snd_emu10k1_proc_spdif_status() argument
32 snd_iprintf(buffer, "\n%s\n", title); in snd_emu10k1_proc_spdif_status()
35 snd_iprintf(buffer, "Professional Mode : %s\n", (status & SPCS_PROFESSIONAL) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
36 snd_iprintf(buffer, "Not Audio Data : %s\n", (status & SPCS_NOTAUDIODATA) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
37 snd_iprintf(buffer, "Copyright : %s\n", (status & SPCS_COPYRIGHT) ? "yes" : "no"); in snd_emu10k1_proc_spdif_status()
38 snd_iprintf(buffer, "Emphasis : %s\n", emphasis[(status & SPCS_EMPHASISMASK) >> 3]); in snd_emu10k1_proc_spdif_status()
39 snd_iprintf(buffer, "Mode : %i\n", (status & SPCS_MODEMASK) >> 6); in snd_emu10k1_proc_spdif_status()
40 snd_iprintf(buffer, "Category Code : 0x%x\n", (status & SPCS_CATEGORYCODEMASK) >> 8); in snd_emu10k1_proc_spdif_status()
41 …snd_iprintf(buffer, "Generation Status : %s\n", status & SPCS_GENERATIONSTATUS ? "original" : … in snd_emu10k1_proc_spdif_status()
42 snd_iprintf(buffer, "Source Mask : %i\n", (status & SPCS_SOURCENUMMASK) >> 16); in snd_emu10k1_proc_spdif_status()
43 …snd_iprintf(buffer, "Channel Number : %s\n", channel[(status & SPCS_CHANNELNUMMASK) >> 20]); in snd_emu10k1_proc_spdif_status()
44 …snd_iprintf(buffer, "Sample Rate : %iHz\n", samplerate[(status & SPCS_SAMPLERATEMASK) >>… in snd_emu10k1_proc_spdif_status()
45 snd_iprintf(buffer, "Clock Accuracy : %s\n", clkaccy[(status & SPCS_CLKACCYMASK) >> 28]); in snd_emu10k1_proc_spdif_status()
49 snd_iprintf(buffer, "S/PDIF Valid : %s\n", rate & SRCS_SPDIFVALID ? "on" : "off"); in snd_emu10k1_proc_spdif_status()
50 snd_iprintf(buffer, "S/PDIF Locked : %s\n", rate & SRCS_SPDIFLOCKED ? "on" : "off"); in snd_emu10k1_proc_spdif_status()
51 snd_iprintf(buffer, "Rate Locked : %s\n", rate & SRCS_RATELOCKED ? "on" : "off"); in snd_emu10k1_proc_spdif_status()
53 snd_iprintf(buffer, "Estimated Sample Rate : %d\n", ((rate & 0xFFFFF ) * 375) >> 11); in snd_emu10k1_proc_spdif_status()
56 snd_iprintf(buffer, "No signal detected.\n"); in snd_emu10k1_proc_spdif_status()
62 struct snd_info_buffer *buffer) in snd_emu10k1_proc_read() argument
75 snd_iprintf(buffer, "EMU10K1\n\n"); in snd_emu10k1_proc_read()
76 snd_iprintf(buffer, "Card : %s\n", in snd_emu10k1_proc_read()
80 snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size); in snd_emu10k1_proc_read()
81 snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2); in snd_emu10k1_proc_read()
83 snd_iprintf(buffer, "\nEffect Send Routing & Amounts:\n"); in snd_emu10k1_proc_read()
92 snd_iprintf(buffer, "Ch%-2i: A=%2i:%02x, B=%2i:%02x, C=%2i:%02x, D=%2i:%02x, ", in snd_emu10k1_proc_read()
98 snd_iprintf(buffer, "E=%2i:%02x, F=%2i:%02x, G=%2i:%02x, H=%2i:%02x\n", in snd_emu10k1_proc_read()
105 snd_iprintf(buffer, "Ch%-2i: A=%2i:%02x, B=%2i:%02x, C=%2i:%02x, D=%2i:%02x\n", in snd_emu10k1_proc_read()
113 snd_iprintf(buffer, "\nEffect Send Targets:\n"); in snd_emu10k1_proc_read()
118 snd_iprintf(buffer, " Channel %02i [%s]\n", idx, c); in snd_emu10k1_proc_read()
121 snd_iprintf(buffer, "\nOutput Channels:\n"); in snd_emu10k1_proc_read()
124 snd_iprintf(buffer, " Channel %02i [%s]\n", idx, outputs[idx]); in snd_emu10k1_proc_read()
125 snd_iprintf(buffer, "\nInput Channels:\n"); in snd_emu10k1_proc_read()
128 snd_iprintf(buffer, " Channel %02i [%s]\n", idx, inputs[idx]); in snd_emu10k1_proc_read()
129 snd_iprintf(buffer, "\nMultichannel Capture Sources:\n"); in snd_emu10k1_proc_read()
132 snd_iprintf(buffer, " Channel %02i [Output: %s]\n", in snd_emu10k1_proc_read()
137 snd_iprintf(buffer, " Channel %02i [Input: %s]\n", in snd_emu10k1_proc_read()
145 snd_iprintf(buffer, " Channel %02i [Output: %s]\n", in snd_emu10k1_proc_read()
148 snd_iprintf(buffer, " Channel %02i [Input: %s]\n", in snd_emu10k1_proc_read()
151 snd_iprintf(buffer, " Channel %02i [Input: %s]\n", in snd_emu10k1_proc_read()
161 struct snd_info_buffer *buffer) in snd_emu10k1_proc_spdif_read() argument
172 snd_iprintf(buffer, "Lock status 1: %#x\n", value & 0x10); in snd_emu10k1_proc_spdif_read()
178 snd_iprintf(buffer, "Lock status 2: %#x %#x\n", value, value2); in snd_emu10k1_proc_spdif_read()
180 snd_iprintf(buffer, "S/PDIF rate: %dHz\n", in snd_emu10k1_proc_spdif_read()
183 snd_iprintf(buffer, "ADAT rate: %dHz\n", in snd_emu10k1_proc_spdif_read()
185 snd_iprintf(buffer, "Dock rate: %dHz\n", in snd_emu10k1_proc_spdif_read()
190 snd_iprintf(buffer, "BNC rate: %dHz\n", in snd_emu10k1_proc_spdif_read()
195 snd_iprintf(buffer, "\nS/PDIF input invalid\n"); in snd_emu10k1_proc_spdif_read()
197 snd_iprintf(buffer, "\nS/PDIF mode: %s%s\n", in snd_emu10k1_proc_spdif_read()
201 snd_emu10k1_proc_spdif_status(emu, buffer, "CD-ROM S/PDIF In", CDCS, CDSRCS); in snd_emu10k1_proc_spdif_read()
202 snd_emu10k1_proc_spdif_status(emu, buffer, "Optical or Coax S/PDIF In", GPSCS, GPSRCS); in snd_emu10k1_proc_spdif_read()
206 snd_iprintf(buffer, "\nZoomed Video\n"); in snd_emu10k1_proc_spdif_read()
207 snd_iprintf(buffer, "Rate Locked : %s\n", val & SRCS_RATELOCKED ? "on" : "off"); in snd_emu10k1_proc_spdif_read()
208 snd_iprintf(buffer, "Estimated Sample Rate : 0x%x\n", val & SRCS_ESTSAMPLERATE); in snd_emu10k1_proc_spdif_read()
213 struct snd_info_buffer *buffer) in snd_emu10k1_proc_rates_read() argument
221 if (tmp & 0x8) snd_iprintf(buffer, "Channel %d: Rate=%d\n", n, samplerate[tmp & 0x7]); in snd_emu10k1_proc_rates_read()
222 else snd_iprintf(buffer, "Channel %d: No input\n", n); in snd_emu10k1_proc_rates_read()
300 static int disasm_emu10k1_reg(char *buffer, in disasm_emu10k1_reg() argument
308 return sprintf(buffer, "%s0x%03x", pfx, reg); in disasm_emu10k1_reg()
313 return sprintf(buffer, "%s%s(%u)", pfx, name, reg); in disasm_emu10k1_reg()
314 return sprintf(buffer, "%s%s", pfx, emu10k1_const_entries[reg]); in disasm_emu10k1_reg()
319 static int disasm_sblive_reg(char *buffer, unsigned reg, const char *pfx) in disasm_sblive_reg() argument
321 return disasm_emu10k1_reg(buffer, sblive_reg_entries, reg, pfx); in disasm_sblive_reg()
324 static int disasm_audigy_reg(char *buffer, unsigned reg, const char *pfx) in disasm_audigy_reg() argument
326 return disasm_emu10k1_reg(buffer, audigy_reg_entries, reg, pfx); in disasm_audigy_reg()
330 struct snd_info_buffer *buffer) in snd_emu10k1_proc_acode_read() argument
341 snd_iprintf(buffer, "FX8010 Instruction List '%s'\n", emu->fx8010.name); in snd_emu10k1_proc_acode_read()
342 snd_iprintf(buffer, " Code dump :\n"); in snd_emu10k1_proc_acode_read()
365 snd_iprintf(buffer, "%s %s /* 0x%04x: 0x%08x%08x */\n", in snd_emu10k1_proc_acode_read()
424 struct snd_info_buffer *buffer) in snd_emu10k1_proc_voices_read() argument
434 snd_iprintf(buffer, "ch\tdirty\tlast\tuse\n"); in snd_emu10k1_proc_voices_read()
437 snd_iprintf(buffer, "%i\t%u\t%u\t%s\n", in snd_emu10k1_proc_voices_read()
448 struct snd_info_buffer *buffer, in snd_emu_proc_emu1010_link_read() argument
452 snd_iprintf(buffer, "%04x: %04x\n", dst, src); in snd_emu_proc_emu1010_link_read()
456 struct snd_info_buffer *buffer) in snd_emu_proc_emu1010_reg_read() argument
461 snd_iprintf(buffer, "EMU1010 Registers:\n\n"); in snd_emu_proc_emu1010_reg_read()
465 snd_iprintf(buffer, "%02x: %02x\n", i, value); in snd_emu_proc_emu1010_reg_read()
468 snd_iprintf(buffer, "\nEMU1010 Routes:\n\n"); in snd_emu_proc_emu1010_reg_read()
471 snd_emu_proc_emu1010_link_read(emu, buffer, i); in snd_emu_proc_emu1010_reg_read()
474 snd_emu_proc_emu1010_link_read(emu, buffer, 0x100 + i); in snd_emu_proc_emu1010_reg_read()
477 snd_emu_proc_emu1010_link_read(emu, buffer, 0x200 + i); in snd_emu_proc_emu1010_reg_read()
479 snd_emu_proc_emu1010_link_read(emu, buffer, 0x300 + i); in snd_emu_proc_emu1010_reg_read()
482 snd_emu_proc_emu1010_link_read(emu, buffer, 0x400 + i); in snd_emu_proc_emu1010_reg_read()
485 snd_emu_proc_emu1010_link_read(emu, buffer, 0x400 + i); in snd_emu_proc_emu1010_reg_read()
488 snd_emu_proc_emu1010_link_read(emu, buffer, 0x500 + i); in snd_emu_proc_emu1010_reg_read()
491 snd_emu_proc_emu1010_link_read(emu, buffer, 0x500); in snd_emu_proc_emu1010_reg_read()
492 snd_emu_proc_emu1010_link_read(emu, buffer, 0x501); in snd_emu_proc_emu1010_reg_read()
493 snd_emu_proc_emu1010_link_read(emu, buffer, 0x600); in snd_emu_proc_emu1010_reg_read()
494 snd_emu_proc_emu1010_link_read(emu, buffer, 0x601); in snd_emu_proc_emu1010_reg_read()
495 snd_emu_proc_emu1010_link_read(emu, buffer, 0x700); in snd_emu_proc_emu1010_reg_read()
496 snd_emu_proc_emu1010_link_read(emu, buffer, 0x701); in snd_emu_proc_emu1010_reg_read()
502 struct snd_info_buffer *buffer) in snd_emu_proc_io_reg_read() argument
507 snd_iprintf(buffer, "IO Registers:\n\n"); in snd_emu_proc_io_reg_read()
510 snd_iprintf(buffer, "%02X: %08lX\n", i, value); in snd_emu_proc_io_reg_read()
515 struct snd_info_buffer *buffer) in snd_emu_proc_io_reg_write() argument
520 while (!snd_info_get_line(buffer, line, sizeof(line))) { in snd_emu_proc_io_reg_write()
563 struct snd_info_buffer *buffer, int iobase, int offset, int length, int voices) in snd_emu_proc_ptr_reg_read() argument
569 snd_iprintf(buffer, "Input values out of range\n"); in snd_emu_proc_ptr_reg_read()
572 snd_iprintf(buffer, "Registers 0x%x\n", iobase); in snd_emu_proc_ptr_reg_read()
574 snd_iprintf(buffer, "%02X: ",i); in snd_emu_proc_ptr_reg_read()
577 snd_iprintf(buffer, "%08lX ", value); in snd_emu_proc_ptr_reg_read()
579 snd_iprintf(buffer, "\n"); in snd_emu_proc_ptr_reg_read()
584 struct snd_info_buffer *buffer, in snd_emu_proc_ptr_reg_write() argument
590 while (!snd_info_get_line(buffer, line, sizeof(line))) { in snd_emu_proc_ptr_reg_write()
599 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_write00() argument
601 snd_emu_proc_ptr_reg_write(entry, buffer, 0, 0x80, 64); in snd_emu_proc_ptr_reg_write00()
605 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_write20() argument
608 snd_emu_proc_ptr_reg_write(entry, buffer, 0x20, in snd_emu_proc_ptr_reg_write20()
614 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_read00a() argument
616 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0, 0x40, 64); in snd_emu_proc_ptr_reg_read00a()
620 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_read00b() argument
622 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0x40, 0x40, 64); in snd_emu_proc_ptr_reg_read00b()
626 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_read20a() argument
628 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0, 0x40, 4); in snd_emu_proc_ptr_reg_read20a()
632 struct snd_info_buffer *buffer) in snd_emu_proc_ptr_reg_read20b() argument
634 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x40, 0x40, 4); in snd_emu_proc_ptr_reg_read20b()
638 struct snd_info_buffer * buffer) in snd_emu_proc_ptr_reg_read20c() argument
640 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x80, 0x20, 4); in snd_emu_proc_ptr_reg_read20c()