entry->mode |= S_IWUSR; 
int __devinit snd_emu10k1_proc_init(emu10k1_t * emu){	snd_info_entry_t *entry;#ifdef CONFIG_SND_DEBUG	if (! snd_card_proc_new(emu->card, "io_regs", &entry)) {		snd_info_set_text_ops(entry, emu, 1024, snd_emu_proc_io_reg_read);		entry->c.text.write_size = 64;		entry->c.text.write = snd_emu_proc_io_reg_write;	}	if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) {		snd_info_set_text_ops(entry, emu, 65536, snd_emu_proc_ptr_reg_read00a);		entry->c.text.write_size = 64;		entry->c.text.write = snd_emu_proc_ptr_reg_write00;	}	if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) {		snd_info_set_text_ops(entry, emu, 65536, snd_emu_proc_ptr_reg_read00b);		entry->c.text.write_size = 64;		entry->c.text.write = snd_emu_proc_ptr_reg_write00;	}	if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) {		snd_info_set_text_ops(entry, emu, 65536, snd_emu_proc_ptr_reg_read20a);		entry->c.text.write_size = 64;		entry->c.text.write = snd_emu_proc_ptr_reg_write20;	}	if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) {		snd_info_set_text_ops(entry, emu, 65536, snd_emu_proc_ptr_reg_read20b);		entry->c.text.write_size = 64;		entry->c.text.write = snd_emu_proc_ptr_reg_write20;	}#endif		if (! snd_card_proc_new(emu->card, "emu10k1", &entry))		snd_info_set_text_ops(entry, emu, 2048, snd_emu10k1_proc_read);	if (emu->card_capabilities->emu10k2_chip) {		if (! snd_card_proc_new(emu->card, "spdif-in", &entry))			snd_info_set_text_ops(entry, emu, 2048, snd_emu10k1_proc_spdif_read);	}	if (emu->card_capabilities->ca0151_chip) {		if (! snd_card_proc_new(emu->card, "capture-rates", &entry))			snd_info_set_text_ops(entry, emu, 2048, snd_emu10k1_proc_rates_read);	}	if (! snd_card_proc_new(emu->card, "voices", &entry))		snd_info_set_text_ops(entry, emu, 2048, snd_emu10k1_proc_voices_read);	if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) {		entry->content = SNDRV_INFO_CONTENT_DATA;		entry->private_data = emu;		entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/;		entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR;		entry->c.ops = &snd_emu10k1_proc_ops_fx8010;	}	if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) {		entry->content = SNDRV_INFO_CONTENT_DATA;		entry->private_data = emu;		entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/;		entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ;		entry->c.ops = &snd_emu10k1_proc_ops_fx8010;	}	if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) {		entry->content = SNDRV_INFO_CONTENT_DATA;		entry->private_data = emu;		entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/;		entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ;		entry->c.ops = &snd_emu10k1_proc_ops_fx8010;	}	if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) {		entry->content = SNDRV_INFO_CONTENT_DATA;		entry->private_data = emu;		entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/;		entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE;		entry->c.ops = &snd_emu10k1_proc_ops_fx8010;	}	if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) {		entry->content = SNDRV_INFO_CONTENT_TEXT;		entry->private_data = emu;		entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/;		entry->c.text.read_size = 128*1024;		entry->c.text.read = snd_emu10k1_proc_acode_read;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/bd7bf042e89941d4e693a0ec68c5093a2bb2adb3/emuproc.c/buggy/sound/pci/emu10k1/emuproc.c