emuproc.c (6f3609f8a3da1214cd78f8a8a2ee2dab8fcc4505) emuproc.c (b840f8d8fcb3df9e65bb6782a9072897b6ea117d)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 * Creative Labs, Inc.
5 * Routines for control of EMU10K1 chips / proc interface routines
6 *
7 * Copyright (c) by James Courtier-Dutton <James@superbug.co.uk>
8 * Added EMU 1010 support.

--- 353 unchanged lines hidden (view full) ---

362}
363
364static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry,
365 struct snd_info_buffer *buffer)
366{
367 struct snd_emu10k1 *emu = entry->private_data;
368 struct snd_emu10k1_voice *voice;
369 int idx;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 * Creative Labs, Inc.
5 * Routines for control of EMU10K1 chips / proc interface routines
6 *
7 * Copyright (c) by James Courtier-Dutton <James@superbug.co.uk>
8 * Added EMU 1010 support.

--- 353 unchanged lines hidden (view full) ---

362}
363
364static void snd_emu10k1_proc_voices_read(struct snd_info_entry *entry,
365 struct snd_info_buffer *buffer)
366{
367 struct snd_emu10k1 *emu = entry->private_data;
368 struct snd_emu10k1_voice *voice;
369 int idx;
370
371 snd_iprintf(buffer, "ch\tuse\tpcm\tefx\tsynth\tmidi\n");
370 static const char * const types[] = {
371 "Unused", "EFX", "EFX IRQ", "PCM", "PCM IRQ", "Synth"
372 };
373 static_assert(ARRAY_SIZE(types) == EMU10K1_NUM_TYPES);
374
375 snd_iprintf(buffer, "ch\tuse\n");
372 for (idx = 0; idx < NUM_G; idx++) {
373 voice = &emu->voices[idx];
376 for (idx = 0; idx < NUM_G; idx++) {
377 voice = &emu->voices[idx];
374 snd_iprintf(buffer, "%i\t%i\t%i\t%i\t%i\t%i\n",
378 snd_iprintf(buffer, "%i\t%s\n",
375 idx,
379 idx,
376 voice->use,
377 voice->pcm,
378 voice->efx,
379 voice->synth,
380 voice->midi);
380 types[voice->use]);
381 }
382}
383
384#ifdef CONFIG_SND_DEBUG
385static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry,
386 struct snd_info_buffer *buffer)
387{
388 struct snd_emu10k1 *emu = entry->private_data;

--- 228 unchanged lines hidden ---
381 }
382}
383
384#ifdef CONFIG_SND_DEBUG
385static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry,
386 struct snd_info_buffer *buffer)
387{
388 struct snd_emu10k1 *emu = entry->private_data;

--- 228 unchanged lines hidden ---