Lines Matching refs:entry
80 static void snd_emu10k1_proc_read(struct snd_info_entry *entry, in snd_emu10k1_proc_read() argument
186 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_read()
237 static void snd_emu10k1_proc_spdif_read(struct snd_info_entry *entry, in snd_emu10k1_proc_spdif_read() argument
240 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_spdif_read()
276 static void snd_emu10k1_proc_rates_read(struct snd_info_entry *entry, in snd_emu10k1_proc_rates_read() argument
280 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_rates_read()
291 static void snd_emu10k1_proc_acode_read(struct snd_info_entry *entry, in snd_emu10k1_proc_acode_read() argument
295 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_acode_read()
334 static ssize_t snd_emu10k1_fx8010_read(struct snd_info_entry *entry, in snd_emu10k1_fx8010_read() argument
339 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_fx8010_read()
346 if (!strcmp(entry->name, "fx8010_tram_addr")) { in snd_emu10k1_fx8010_read()
349 } else if (!strcmp(entry->name, "fx8010_tram_data")) { in snd_emu10k1_fx8010_read()
351 } else if (!strcmp(entry->name, "fx8010_code")) { in snd_emu10k1_fx8010_read()
377 static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry, in snd_emu10k1_proc_voices_read() argument
380 struct snd_emu10k1 *emu = entry->private_data; in snd_emu10k1_proc_voices_read()
398 static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry, in snd_emu_proc_emu1010_reg_read() argument
401 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_emu1010_reg_read()
412 static void snd_emu_proc_io_reg_read(struct snd_info_entry *entry, in snd_emu_proc_io_reg_read() argument
415 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_read()
428 static void snd_emu_proc_io_reg_write(struct snd_info_entry *entry, in snd_emu_proc_io_reg_write() argument
431 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_io_reg_write()
481 static void snd_emu_proc_ptr_reg_read(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read() argument
484 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_read()
505 static void snd_emu_proc_ptr_reg_write(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write() argument
508 struct snd_emu10k1 *emu = entry->private_data; in snd_emu_proc_ptr_reg_write()
519 static void snd_emu_proc_ptr_reg_write00(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write00() argument
522 snd_emu_proc_ptr_reg_write(entry, buffer, 0); in snd_emu_proc_ptr_reg_write00()
525 static void snd_emu_proc_ptr_reg_write20(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_write20() argument
528 snd_emu_proc_ptr_reg_write(entry, buffer, 0x20); in snd_emu_proc_ptr_reg_write20()
532 static void snd_emu_proc_ptr_reg_read00a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00a() argument
535 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0, 0x40, 64); in snd_emu_proc_ptr_reg_read00a()
538 static void snd_emu_proc_ptr_reg_read00b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read00b() argument
541 snd_emu_proc_ptr_reg_read(entry, buffer, 0, 0x40, 0x40, 64); in snd_emu_proc_ptr_reg_read00b()
544 static void snd_emu_proc_ptr_reg_read20a(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20a() argument
547 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0, 0x40, 4); in snd_emu_proc_ptr_reg_read20a()
550 static void snd_emu_proc_ptr_reg_read20b(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20b() argument
553 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x40, 0x40, 4); in snd_emu_proc_ptr_reg_read20b()
556 static void snd_emu_proc_ptr_reg_read20c(struct snd_info_entry *entry, in snd_emu_proc_ptr_reg_read20c() argument
559 snd_emu_proc_ptr_reg_read(entry, buffer, 0x20, 0x80, 0x20, 4); in snd_emu_proc_ptr_reg_read20c()
569 struct snd_info_entry *entry; in snd_emu10k1_proc_init() local
572 if (! snd_card_proc_new(emu->card, "emu1010_regs", &entry)) in snd_emu10k1_proc_init()
573 snd_info_set_text_ops(entry, emu, snd_emu_proc_emu1010_reg_read); in snd_emu10k1_proc_init()
575 if (! snd_card_proc_new(emu->card, "io_regs", &entry)) { in snd_emu10k1_proc_init()
576 snd_info_set_text_ops(entry, emu, snd_emu_proc_io_reg_read); in snd_emu10k1_proc_init()
577 entry->c.text.write = snd_emu_proc_io_reg_write; in snd_emu10k1_proc_init()
578 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
580 if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) { in snd_emu10k1_proc_init()
581 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00a); in snd_emu10k1_proc_init()
582 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
583 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
585 if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) { in snd_emu10k1_proc_init()
586 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00b); in snd_emu10k1_proc_init()
587 entry->c.text.write = snd_emu_proc_ptr_reg_write00; in snd_emu10k1_proc_init()
588 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
590 if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) { in snd_emu10k1_proc_init()
591 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20a); in snd_emu10k1_proc_init()
592 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
593 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
595 if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) { in snd_emu10k1_proc_init()
596 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20b); in snd_emu10k1_proc_init()
597 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
598 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
600 if (! snd_card_proc_new(emu->card, "ptr_regs20c", &entry)) { in snd_emu10k1_proc_init()
601 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20c); in snd_emu10k1_proc_init()
602 entry->c.text.write = snd_emu_proc_ptr_reg_write20; in snd_emu10k1_proc_init()
603 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init()
607 if (! snd_card_proc_new(emu->card, "emu10k1", &entry)) in snd_emu10k1_proc_init()
608 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_read); in snd_emu10k1_proc_init()
611 if (! snd_card_proc_new(emu->card, "spdif-in", &entry)) in snd_emu10k1_proc_init()
612 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_spdif_read); in snd_emu10k1_proc_init()
615 if (! snd_card_proc_new(emu->card, "capture-rates", &entry)) in snd_emu10k1_proc_init()
616 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_rates_read); in snd_emu10k1_proc_init()
619 if (! snd_card_proc_new(emu->card, "voices", &entry)) in snd_emu10k1_proc_init()
620 snd_info_set_text_ops(entry, emu, snd_emu10k1_proc_voices_read); in snd_emu10k1_proc_init()
622 if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { in snd_emu10k1_proc_init()
623 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
624 entry->private_data = emu; in snd_emu10k1_proc_init()
625 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
626 entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR; in snd_emu10k1_proc_init()
627 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
629 if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { in snd_emu10k1_proc_init()
630 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
631 entry->private_data = emu; in snd_emu10k1_proc_init()
632 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
633 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ; in snd_emu10k1_proc_init()
634 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
636 if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { in snd_emu10k1_proc_init()
637 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
638 entry->private_data = emu; in snd_emu10k1_proc_init()
639 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
640 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ; in snd_emu10k1_proc_init()
641 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
643 if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { in snd_emu10k1_proc_init()
644 entry->content = SNDRV_INFO_CONTENT_DATA; in snd_emu10k1_proc_init()
645 entry->private_data = emu; in snd_emu10k1_proc_init()
646 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
647 entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE; in snd_emu10k1_proc_init()
648 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; in snd_emu10k1_proc_init()
650 if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) { in snd_emu10k1_proc_init()
651 entry->content = SNDRV_INFO_CONTENT_TEXT; in snd_emu10k1_proc_init()
652 entry->private_data = emu; in snd_emu10k1_proc_init()
653 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init()
654 entry->c.text.read = snd_emu10k1_proc_acode_read; in snd_emu10k1_proc_init()