/* * Copyright (C) 2000 Takashi Iwai * * Proc interface for Emu8k/Emu10k1 WaveTable synth * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include #include #include "emux_voice.h" static void snd_emux_proc_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buf) { struct snd_emux *emu; int i; emu = entry->private_data; mutex_lock(&emu->register_mutex); if (emu->name) snd_iprintf(buf, "Device: %s\n", emu->name); snd_iprintf(buf, "Ports: %d\n", emu->num_ports); snd_iprintf(buf, "Addresses:"); for (i = 0; i < emu->num_ports; i++) snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); snd_iprintf(buf, "\n"); snd_iprintf(buf, "Use Counter: %d\n", emu->used); snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); if (emu->memhdr) { snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); } else { snd_iprintf(buf, "Memory Size: 0\n"); } if (emu->sflist) { mutex_lock(&emu->sflist->presets_mutex); snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); mutex_unlock(&emu->sflist->presets_mutex); } #if 0 /* debug */ if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { struct snd_emux_voice *vp = &emu->voices[0]; snd_iprintf(buf, "voice 0: on\n"); snd_iprintf(buf, "mod delay=%x, atkhld=%x, dcysus=%x, rel=%x\n", vp->reg.parm.moddelay, vp->reg.parm.modatkhld, vp->reg.parm.moddcysus, vp->reg.parm.modrelease); snd_iprintf(buf, "vol delay=%x, atkhld=%x, dcysus=%x, rel=%x\n", vp->reg.parm.voldelay, vp->reg.parm.volatkhld, vp->reg.parm.voldcysus, vp->reg.parm.volrelease); snd_iprintf(buf, "lfo1 delay=%x, lfo2 delay=%x, pefe=%x\n", vp->reg.parm.lfo1delay, vp->reg.parm.lfo2delay, vp->reg.parm.pefe); snd_iprintf(buf, "fmmod=%x, tremfrq=%x, fm2frq2=%x\n", vp->reg.parm.fmmod, vp->reg.parm.tremfrq, vp->reg.parm.fm2frq2); snd_iprintf(buf, "cutoff=%x, filterQ=%x, chorus=%x, reverb=%x\n", vp->reg.parm.cutoff, vp->reg.parm.filterQ, vp->reg.parm.chorus, vp->reg.parm.reverb); snd_iprintf(buf, "avol=%x, acutoff=%x, apitch=%x\n", vp->avol, vp->acutoff, vp->apitch); snd_iprintf(buf, "apan=%x, aaux=%x, ptarget=%x, vtarget=%x, ftarget=%x\n", vp->apan, vp->aaux, vp->ptarget, vp->vtarget, vp->ftarget); snd_iprintf(buf, "start=%x, end=%x, loopstart=%x, loopend=%x\n", vp->reg.start, vp->reg.end, vp->reg.loopstart, vp->reg.loopend); snd_iprintf(buf, "sample_mode=%x, rate=%x\n", vp->reg.sample_mode, vp->reg.rate_offset); } #endif mutex_unlock(&emu->register_mutex); } void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) { struct snd_info_entry *entry; char name[64]; sprintf(name, "wavetableD%d", device); entry = snd_info_create_card_entry(card, name, card->proc_root); if (entry == NULL) return; entry->content = SNDRV_INFO_CONTENT_TEXT; entry->private_data = emu; entry->c.text.read = snd_emux_proc_info_read; if (snd_info_register(entry) < 0) snd_info_free_entry(entry); else emu->proc = entry; } void snd_emux_proc_free(struct snd_emux *emu) { snd_info_free_entry(emu->proc); emu->proc = NULL; } lue='1'>ignoremode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 12:27:05 -0800
commit4759d386d55fef452d692bf101167914437e848e (patch)
treee7109c192ec589fcea2a98f9702aa3c0e4009581 /tools/testing/selftests/mount/config
parent238d1d0f79f619d75c2cc741d6770fb0986aef24 (diff)
parent1db175428ee374489448361213e9c3b749d14900 (diff)
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull DAX updates from Dan Williams: "The completion of Jan's DAX work for 4.10. As I mentioned in the libnvdimm-for-4.10 pull request, these are some final fixes for the DAX dirty-cacheline-tracking invalidation work that was merged through the -mm, ext4, and xfs trees in -rc1. These patches were prepared prior to the merge window, but we waited for 4.10-rc1 to have a stable merge base after all the prerequisites were merged. Quoting Jan on the overall changes in these patches: "So I'd like all these 6 patches to go for rc2. The first three patches fix invalidation of exceptional DAX entries (a bug which is there for a long time) - without these patches data loss can occur on power failure even though user called fsync(2). The other three patches change locking of DAX faults so that ->iomap_begin() is called in a more relaxed locking context and we are safe to start a transaction there for ext4" These have received a build success notification from the kbuild robot, and pass the latest libnvdimm unit tests. There have not been any -next releases since -rc1, so they have not appeared there" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: ext4: Simplify DAX fault path dax: Call ->iomap_begin without entry lock during dax fault dax: Finish fault completely when loading holes dax: Avoid page invalidation races and unnecessary radix tree traversals mm: Invalidate DAX radix tree entries only if appropriate ext2: Return BH_New buffers for zeroed blocks
Diffstat (limited to 'tools/testing/selftests/mount/config')