Lines Matching refs:emu
18 struct snd_emux *emu; in snd_emux_proc_info_read() local
21 emu = entry->private_data; in snd_emux_proc_info_read()
22 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read()
23 if (emu->name) in snd_emux_proc_info_read()
24 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read()
25 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read()
27 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read()
28 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read()
30 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read()
31 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read()
32 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); in snd_emux_proc_info_read()
33 if (emu->memhdr) { in snd_emux_proc_info_read()
34 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read()
35 snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); in snd_emux_proc_info_read()
36 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
40 if (emu->sflist) { in snd_emux_proc_info_read()
41 mutex_lock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
42 snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); in snd_emux_proc_info_read()
43 snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); in snd_emux_proc_info_read()
44 snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); in snd_emux_proc_info_read()
45 snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); in snd_emux_proc_info_read()
46 snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); in snd_emux_proc_info_read()
47 mutex_unlock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
50 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { in snd_emux_proc_info_read()
51 struct snd_emux_voice *vp = &emu->voices[0]; in snd_emux_proc_info_read()
88 mutex_unlock(&emu->register_mutex); in snd_emux_proc_info_read()
92 void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) in snd_emux_proc_init() argument
103 entry->private_data = emu; in snd_emux_proc_init()
107 void snd_emux_proc_free(struct snd_emux *emu) in snd_emux_proc_free() argument
109 snd_info_free_entry(emu->proc); in snd_emux_proc_free()
110 emu->proc = NULL; in snd_emux_proc_free()