Lines Matching refs:emu
31 struct snd_emux *emu; in snd_emux_proc_info_read() local
34 emu = entry->private_data; in snd_emux_proc_info_read()
35 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read()
36 if (emu->name) in snd_emux_proc_info_read()
37 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read()
38 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read()
40 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read()
41 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read()
43 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read()
44 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read()
45 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); in snd_emux_proc_info_read()
46 if (emu->memhdr) { in snd_emux_proc_info_read()
47 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read()
48 snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); in snd_emux_proc_info_read()
49 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
53 if (emu->sflist) { in snd_emux_proc_info_read()
54 mutex_lock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
55 snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); in snd_emux_proc_info_read()
56 snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); in snd_emux_proc_info_read()
57 snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); in snd_emux_proc_info_read()
58 snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); in snd_emux_proc_info_read()
59 snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); in snd_emux_proc_info_read()
60 mutex_unlock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
63 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { in snd_emux_proc_info_read()
64 struct snd_emux_voice *vp = &emu->voices[0]; in snd_emux_proc_info_read()
101 mutex_unlock(&emu->register_mutex); in snd_emux_proc_info_read()
105 void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) in snd_emux_proc_init() argument
116 entry->private_data = emu; in snd_emux_proc_init()
121 emu->proc = entry; in snd_emux_proc_init()
124 void snd_emux_proc_free(struct snd_emux *emu) in snd_emux_proc_free() argument
126 snd_info_free_entry(emu->proc); in snd_emux_proc_free()
127 emu->proc = NULL; in snd_emux_proc_free()