Lines Matching refs:emu
33 struct snd_emux *emu; in snd_emux_proc_info_read() local
36 emu = entry->private_data; in snd_emux_proc_info_read()
37 mutex_lock(&emu->register_mutex); in snd_emux_proc_info_read()
38 if (emu->name) in snd_emux_proc_info_read()
39 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read()
40 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read()
42 for (i = 0; i < emu->num_ports; i++) in snd_emux_proc_info_read()
43 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read()
45 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read()
46 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read()
47 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); in snd_emux_proc_info_read()
48 if (emu->memhdr) { in snd_emux_proc_info_read()
49 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read()
50 snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); in snd_emux_proc_info_read()
51 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
55 if (emu->sflist) { in snd_emux_proc_info_read()
56 mutex_lock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
57 snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); in snd_emux_proc_info_read()
58 snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); in snd_emux_proc_info_read()
59 snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); in snd_emux_proc_info_read()
60 snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); in snd_emux_proc_info_read()
61 snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); in snd_emux_proc_info_read()
62 mutex_unlock(&emu->sflist->presets_mutex); in snd_emux_proc_info_read()
65 if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { in snd_emux_proc_info_read()
66 struct snd_emux_voice *vp = &emu->voices[0]; in snd_emux_proc_info_read()
103 mutex_unlock(&emu->register_mutex); in snd_emux_proc_info_read()
107 void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) in snd_emux_proc_init() argument
118 entry->private_data = emu; in snd_emux_proc_init()
123 emu->proc = entry; in snd_emux_proc_init()
126 void snd_emux_proc_free(struct snd_emux *emu) in snd_emux_proc_free() argument
128 snd_info_free_entry(emu->proc); in snd_emux_proc_free()
129 emu->proc = NULL; in snd_emux_proc_free()