21 #include <linux/wait.h>
39 snd_iprintf(buf,
"Device: %s\n", emu->
name);
40 snd_iprintf(buf,
"Ports: %d\n", emu->
num_ports);
41 snd_iprintf(buf,
"Addresses:");
43 snd_iprintf(buf,
" %d:%d", emu->
client, emu->
ports[i]);
44 snd_iprintf(buf,
"\n");
45 snd_iprintf(buf,
"Use Counter: %d\n", emu->
used);
46 snd_iprintf(buf,
"Max Voices: %d\n", emu->
max_voices);
47 snd_iprintf(buf,
"Allocated Voices: %d\n", emu->
num_voices);
49 snd_iprintf(buf,
"Memory Size: %d\n", emu->
memhdr->size);
51 snd_iprintf(buf,
"Allocated Blocks: %d\n", emu->
memhdr->nblocks);
53 snd_iprintf(buf,
"Memory Size: 0\n");
57 snd_iprintf(buf,
"SoundFonts: %d\n", emu->
sflist->fonts_size);
58 snd_iprintf(buf,
"Instruments: %d\n", emu->
sflist->zone_counter);
59 snd_iprintf(buf,
"Samples: %d\n", emu->
sflist->sample_counter);
60 snd_iprintf(buf,
"Locked Instruments: %d\n", emu->
sflist->zone_locked);
61 snd_iprintf(buf,
"Locked Samples: %d\n", emu->
sflist->sample_locked);
67 snd_iprintf(buf,
"voice 0: on\n");
68 snd_iprintf(buf,
"mod delay=%x, atkhld=%x, dcysus=%x, rel=%x\n",
69 vp->
reg.parm.moddelay,
70 vp->
reg.parm.modatkhld,
71 vp->
reg.parm.moddcysus,
72 vp->
reg.parm.modrelease);
73 snd_iprintf(buf,
"vol delay=%x, atkhld=%x, dcysus=%x, rel=%x\n",
74 vp->
reg.parm.voldelay,
75 vp->
reg.parm.volatkhld,
76 vp->
reg.parm.voldcysus,
77 vp->
reg.parm.volrelease);
78 snd_iprintf(buf,
"lfo1 delay=%x, lfo2 delay=%x, pefe=%x\n",
79 vp->
reg.parm.lfo1delay,
80 vp->
reg.parm.lfo2delay,
82 snd_iprintf(buf,
"fmmod=%x, tremfrq=%x, fm2frq2=%x\n",
85 vp->
reg.parm.fm2frq2);
86 snd_iprintf(buf,
"cutoff=%x, filterQ=%x, chorus=%x, reverb=%x\n",
91 snd_iprintf(buf,
"avol=%x, acutoff=%x, apitch=%x\n",
93 snd_iprintf(buf,
"apan=%x, aaux=%x, ptarget=%x, vtarget=%x, ftarget=%x\n",
98 snd_iprintf(buf,
"start=%x, end=%x, loopstart=%x, loopend=%x\n",
99 vp->
reg.start, vp->
reg.end, vp->
reg.loopstart, vp->
reg.loopend);
100 snd_iprintf(buf,
"sample_mode=%x, rate=%x\n", vp->
reg.sample_mode, vp->
reg.rate_offset);
112 sprintf(name,
"wavetableD%d", device);
113 entry = snd_info_create_card_entry(card, name, card->
proc_root);
119 entry->
c.
text.read = snd_emux_proc_info_read;
120 if (snd_info_register(entry) < 0)
121 snd_info_free_entry(entry);
126 void snd_emux_proc_free(
struct snd_emux *emu)
128 snd_info_free_entry(emu->proc);