void snd_ca0106_proc_dump_iec958( snd_info_buffer_t *buffer, u32 value) 
static void snd_ca0106_proc_dump_iec958( snd_info_buffer_t *buffer, u32 value) 
void snd_ca0106_proc_dump_iec958( snd_info_buffer_t *buffer, u32 value){	int i;	u32 status[4];	status[0] = value & 0xff;	status[1] = (value >> 8) & 0xff;	status[2] = (value >> 16)  & 0xff;	status[3] = (value >> 24)  & 0xff;		if (! (status[0] & IEC958_AES0_PROFESSIONAL)) {		/* consumer */		snd_iprintf(buffer, "Mode: consumer\n");		snd_iprintf(buffer, "Data: ");		if (!(status[0] & IEC958_AES0_NONAUDIO)) {			snd_iprintf(buffer, "audio\n");		} else {			snd_iprintf(buffer, "non-audio\n");		}		snd_iprintf(buffer, "Rate: ");		switch (status[3] & IEC958_AES3_CON_FS) {		case IEC958_AES3_CON_FS_44100:			snd_iprintf(buffer, "44100 Hz\n");			break;		case IEC958_AES3_CON_FS_48000:			snd_iprintf(buffer, "48000 Hz\n");			break;		case IEC958_AES3_CON_FS_32000:			snd_iprintf(buffer, "32000 Hz\n");			break;		default:			snd_iprintf(buffer, "unknown\n");			break;		}		snd_iprintf(buffer, "Copyright: ");		if (status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) {			snd_iprintf(buffer, "permitted\n");		} else {			snd_iprintf(buffer, "protected\n");		}		snd_iprintf(buffer, "Emphasis: ");		if ((status[0] & IEC958_AES0_CON_EMPHASIS) != IEC958_AES0_CON_EMPHASIS_5015) {			snd_iprintf(buffer, "none\n");		} else {			snd_iprintf(buffer, "50/15us\n");		}		snd_iprintf(buffer, "Category: ");		for (i = 0; i < ARRAY_SIZE(snd_ca0106_con_category); i++) {			if ((status[1] & IEC958_AES1_CON_CATEGORY) == snd_ca0106_con_category[i].val) {				snd_iprintf(buffer, "%s\n", snd_ca0106_con_category[i].name);				break;			}		}		if (i >= ARRAY_SIZE(snd_ca0106_con_category)) {			snd_iprintf(buffer, "unknown 0x%x\n", status[1] & IEC958_AES1_CON_CATEGORY);		}		snd_iprintf(buffer, "Original: ");		if (status[1] & IEC958_AES1_CON_ORIGINAL) {			snd_iprintf(buffer, "original\n");		} else {			snd_iprintf(buffer, "1st generation\n");		}		snd_iprintf(buffer, "Clock: ");		switch (status[3] & IEC958_AES3_CON_CLOCK) {		case IEC958_AES3_CON_CLOCK_1000PPM:			snd_iprintf(buffer, "1000 ppm\n");			break;		case IEC958_AES3_CON_CLOCK_50PPM:			snd_iprintf(buffer, "50 ppm\n");			break;		case IEC958_AES3_CON_CLOCK_VARIABLE:			snd_iprintf(buffer, "variable pitch\n");			break;		default:			snd_iprintf(buffer, "unknown\n");			break;		}	} else {		snd_iprintf(buffer, "Mode: professional\n");		snd_iprintf(buffer, "Data: ");		if (!(status[0] & IEC958_AES0_NONAUDIO)) {			snd_iprintf(buffer, "audio\n");		} else {			snd_iprintf(buffer, "non-audio\n");		}		snd_iprintf(buffer, "Rate: ");		switch (status[0] & IEC958_AES0_PRO_FS) {		case IEC958_AES0_PRO_FS_44100:			snd_iprintf(buffer, "44100 Hz\n");			break;		case IEC958_AES0_PRO_FS_48000:			snd_iprintf(buffer, "48000 Hz\n");			break;		case IEC958_AES0_PRO_FS_32000:			snd_iprintf(buffer, "32000 Hz\n");			break;		default:			snd_iprintf(buffer, "unknown\n");			break;		}		snd_iprintf(buffer, "Rate Locked: ");		if (status[0] & IEC958_AES0_PRO_FREQ_UNLOCKED)			snd_iprintf(buffer, "no\n");		else			snd_iprintf(buffer, "yes\n");		snd_iprintf(buffer, "Emphasis: ");		switch (status[0] & IEC958_AES0_PRO_EMPHASIS) {		case IEC958_AES0_PRO_EMPHASIS_CCITT:			snd_iprintf(buffer, "CCITT J.17\n");			break;		case IEC958_AES0_PRO_EMPHASIS_NONE:			snd_iprintf(buffer, "none\n");			break;		case IEC958_AES0_PRO_EMPHASIS_5015:			snd_iprintf(buffer, "50/15us\n");			break;		case IEC958_AES0_PRO_EMPHASIS_NOTID:		default:			snd_iprintf(buffer, "unknown\n");			break;		}		snd_iprintf(buffer, "Stereophonic: ");		if ((status[1] & IEC958_AES1_PRO_MODE) == IEC958_AES1_PRO_MODE_STEREOPHONIC) {			snd_iprintf(buffer, "stereo\n");		} else {			snd_iprintf(buffer, "not indicated\n");		}		snd_iprintf(buffer, "Userbits: ");		switch (status[1] & IEC958_AES1_PRO_USERBITS) {		case IEC958_AES1_PRO_USERBITS_192:			snd_iprintf(buffer, "192bit\n");			break;		case IEC958_AES1_PRO_USERBITS_UDEF:			snd_iprintf(buffer, "user-defined\n");			break;		default:			snd_iprintf(buffer, "unkown\n");			break;		}		snd_iprintf(buffer, "Sample Bits: ");		switch (status[2] & IEC958_AES2_PRO_SBITS) {		case IEC958_AES2_PRO_SBITS_20:			snd_iprintf(buffer, "20 bit\n");			break;		case IEC958_AES2_PRO_SBITS_24:			snd_iprintf(buffer, "24 bit\n");			break;		case IEC958_AES2_PRO_SBITS_UDEF:			snd_iprintf(buffer, "user defined\n");			break;		default:			snd_iprintf(buffer, "unknown\n");			break;		}		snd_iprintf(buffer, "Word Length: ");		switch (status[2] & IEC958_AES2_PRO_WORDLEN) {		case IEC958_AES2_PRO_WORDLEN_22_18:			snd_iprintf(buffer, "22 bit or 18 bit\n");			break;		case IEC958_AES2_PRO_WORDLEN_23_19:			snd_iprintf(buffer, "23 bit or 19 bit\n");			break;		case IEC958_AES2_PRO_WORDLEN_24_20:			snd_iprintf(buffer, "24 bit or 20 bit\n");			break;		case IEC958_AES2_PRO_WORDLEN_20_16:			snd_iprintf(buffer, "20 bit or 16 bit\n");			break;		default:			snd_iprintf(buffer, "unknown\n");			break;		}	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/89c87bf8c12e27fbbed971380e21895cace3a065/ca0106_proc.c/clean/sound/pci/ca0106/ca0106_proc.c