snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 0", SPCS0, -1); snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 1", SPCS1, -1); snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 2/3", SPCS2, -1); snd_emu10k1_proc_spdif_status(emu, buffer, "CD-ROM S/PDIF", CDCS, CDSRCS); snd_emu10k1_proc_spdif_status(emu, buffer, "General purpose S/PDIF", GPSCS, GPSRCS); val = snd_emu10k1_ptr_read(emu, ZVSRCS, 0); snd_iprintf(buffer, "\nZoomed Video\n"); snd_iprintf(buffer, "Rate Locked           : %s\n", val & SRCS_RATELOCKED ? "on" : "off"); snd_iprintf(buffer, "Estimated Sample Rate : 0x%x\n", val & SRCS_ESTSAMPLERATE); 
static void snd_emu10k1_proc_read(snd_info_entry_t *entry, 				  snd_info_buffer_t * buffer){	/* FIXME - output names are in emufx.c too */	static char *creative_outs[32] = {		/* 00 */ "AC97 Left",		/* 01 */ "AC97 Right",		/* 02 */ "Optical IEC958 Left",		/* 03 */ "Optical IEC958 Right",		/* 04 */ "Center",		/* 05 */ "LFE",		/* 06 */ "Headphone Left",		/* 07 */ "Headphone Right",		/* 08 */ "Surround Left",		/* 09 */ "Surround Right",		/* 10 */ "PCM Capture Left",		/* 11 */ "PCM Capture Right",		/* 12 */ "MIC Capture",		/* 13 */ "AC97 Surround Left",		/* 14 */ "AC97 Surround Right",		/* 15 */ "???",		/* 16 */ "???",		/* 17 */ "Analog Center",		/* 18 */ "Analog LFE",		/* 19 */ "???",		/* 20 */ "???",		/* 21 */ "???",		/* 22 */ "???",		/* 23 */ "???",		/* 24 */ "???",		/* 25 */ "???",		/* 26 */ "???",		/* 27 */ "???",		/* 28 */ "???",		/* 29 */ "???",		/* 30 */ "???",		/* 31 */ "???"	};	static char *audigy_outs[64] = {		/* 00 */ "Digital Front Left",		/* 01 */ "Digital Front Right",		/* 02 */ "Digital Center",		/* 03 */ "Digital LEF",		/* 04 */ "Headphone Left",		/* 05 */ "Headphone Right",		/* 06 */ "Digital Rear Left",		/* 07 */ "Digital Rear Right",		/* 08 */ "Front Left",		/* 09 */ "Front Right",		/* 10 */ "Center",		/* 11 */ "LFE",		/* 12 */ "???",		/* 13 */ "???",		/* 14 */ "Rear Left",		/* 15 */ "Rear Right",		/* 16 */ "AC97 Front Left",		/* 17 */ "AC97 Front Right",		/* 18 */ "ADC Caputre Left",		/* 19 */ "ADC Capture Right",		/* 20 */ "???",		/* 21 */ "???",		/* 22 */ "???",		/* 23 */ "???",		/* 24 */ "???",		/* 25 */ "???",		/* 26 */ "???",		/* 27 */ "???",		/* 28 */ "???",		/* 29 */ "???",		/* 30 */ "???",		/* 31 */ "???",		/* 32 */ "FXBUS2_0",		/* 33 */ "FXBUS2_1",		/* 34 */ "FXBUS2_2",		/* 35 */ "FXBUS2_3",		/* 36 */ "FXBUS2_4",		/* 37 */ "FXBUS2_5",		/* 38 */ "FXBUS2_6",		/* 39 */ "FXBUS2_7",		/* 40 */ "FXBUS2_8",		/* 41 */ "FXBUS2_9",		/* 42 */ "FXBUS2_10",		/* 43 */ "FXBUS2_11",		/* 44 */ "FXBUS2_12",		/* 45 */ "FXBUS2_13",		/* 46 */ "FXBUS2_14",		/* 47 */ "FXBUS2_15",		/* 48 */ "FXBUS2_16",		/* 49 */ "FXBUS2_17",		/* 50 */ "FXBUS2_18",		/* 51 */ "FXBUS2_19",		/* 52 */ "FXBUS2_20",		/* 53 */ "FXBUS2_21",		/* 54 */ "FXBUS2_22",		/* 55 */ "FXBUS2_23",		/* 56 */ "FXBUS2_24",		/* 57 */ "FXBUS2_25",		/* 58 */ "FXBUS2_26",		/* 59 */ "FXBUS2_27",		/* 60 */ "FXBUS2_28",		/* 61 */ "FXBUS2_29",		/* 62 */ "FXBUS2_30",		/* 63 */ "FXBUS2_31"	};	emu10k1_t *emu = entry->private_data;	unsigned int val, val1;	int nefx = emu->audigy ? 64 : 32;	char **outputs = emu->audigy ? audigy_outs : creative_outs;	int idx;		snd_iprintf(buffer, "EMU10K1\n\n");	snd_iprintf(buffer, "Card                  : %s\n",		    emu->audigy ? "Audigy" : (emu->card_capabilities->ecard ? "EMU APS" : "Creative"));	snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size);	snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2);	snd_iprintf(buffer, "\n");	snd_iprintf(buffer, "Effect Send Routing   :\n");	for (idx = 0; idx < NUM_G; idx++) {		val = emu->audigy ?			snd_emu10k1_ptr_read(emu, A_FXRT1, idx) :			snd_emu10k1_ptr_read(emu, FXRT, idx);		val1 = emu->audigy ?			snd_emu10k1_ptr_read(emu, A_FXRT2, idx) :			0;		if (emu->audigy) {			snd_iprintf(buffer, "Ch%i: A=%i, B=%i, C=%i, D=%i, ",				idx,				val & 0x3f,				(val >> 8) & 0x3f,				(val >> 16) & 0x3f,				(val >> 24) & 0x3f);			snd_iprintf(buffer, "E=%i, F=%i, G=%i, H=%i\n",				val1 & 0x3f,				(val1 >> 8) & 0x3f,				(val1 >> 16) & 0x3f,				(val1 >> 24) & 0x3f);		} else {			snd_iprintf(buffer, "Ch%i: A=%i, B=%i, C=%i, D=%i\n",				idx,				(val >> 16) & 0x0f,				(val >> 20) & 0x0f,				(val >> 24) & 0x0f,				(val >> 28) & 0x0f);		}	}	snd_iprintf(buffer, "\nCaptured FX Outputs   :\n");	for (idx = 0; idx < nefx; idx++) {		if (emu->efx_voices_mask[idx/32] & (1 << (idx%32)))			snd_iprintf(buffer, "  Output %02i [%s]\n", idx, outputs[idx]);	}	snd_iprintf(buffer, "\nAll FX Outputs        :\n");	for (idx = 0; idx < (emu->audigy ? 64 : 32); idx++)		snd_iprintf(buffer, "  Output %02i [%s]\n", idx, outputs[idx]);	snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 0", SPCS0, -1);	snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 1", SPCS1, -1);	snd_emu10k1_proc_spdif_status(emu, buffer, "S/PDIF Output 2/3", SPCS2, -1);	snd_emu10k1_proc_spdif_status(emu, buffer, "CD-ROM S/PDIF", CDCS, CDSRCS);	snd_emu10k1_proc_spdif_status(emu, buffer, "General purpose S/PDIF", GPSCS, GPSRCS);	val = snd_emu10k1_ptr_read(emu, ZVSRCS, 0);	snd_iprintf(buffer, "\nZoomed Video\n");	snd_iprintf(buffer, "Rate Locked           : %s\n", val & SRCS_RATELOCKED ? "on" : "off");	snd_iprintf(buffer, "Estimated Sample Rate : 0x%x\n", val & SRCS_ESTSAMPLERATE);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/df34140a9c15d4be8833f7977dca277a03ab87b0/emuproc.c/clean/sound/pci/emu10k1/emuproc.c