Lines Matching +full:line +full:- +full:based
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk>
15 * Use separate card based DMA buffer for periods table list.
33 * Set limits based on what the sound card hardware can do.
44 * Implement support for Line-in capture on SB Live 24bit.
46 * This code was initially based on code from ALSA's emu10k1x.c which is:
79 { IEC958_AES1_CON_NON_IEC908_CD, "non-IEC908 CD" },
100 snd_iprintf(buffer, "non-audio\n");
166 snd_iprintf(buffer, "non-audio\n");
216 snd_iprintf(buffer, "user-defined\n");
261 struct snd_ca0106 *emu = entry->private_data;
283 struct snd_ca0106 *emu = entry->private_data;
284 char line[64];
286 while (!snd_info_get_line(buffer, line, sizeof(line))) {
287 if (sscanf(line, "%x %x", ®, &val) != 2)
290 guard(spinlock_irqsave)(&emu->emu_lock);
291 outl(val, emu->port + (reg & 0xfffffffc));
299 struct snd_ca0106 *emu = entry->private_data;
305 scoped_guard(spinlock_irqsave, &emu->emu_lock) {
306 value = inl(emu->port + i);
315 struct snd_ca0106 *emu = entry->private_data;
321 scoped_guard(spinlock_irqsave, &emu->emu_lock) {
322 value = inw(emu->port + i);
331 struct snd_ca0106 *emu = entry->private_data;
337 scoped_guard(spinlock_irqsave, &emu->emu_lock) {
338 value = inb(emu->port + i);
347 struct snd_ca0106 *emu = entry->private_data;
365 struct snd_ca0106 *emu = entry->private_data;
383 struct snd_ca0106 *emu = entry->private_data;
384 char line[64];
386 while (!snd_info_get_line(buffer, line, sizeof(line))) {
387 if (sscanf(line, "%x %x %x", ®, &channel_id, &val) != 3)
397 struct snd_ca0106 *emu = entry->private_data;
398 char line[64];
400 while (!snd_info_get_line(buffer, line, sizeof(line))) {
401 if (sscanf(line, "%x %x", ®, &val) != 2)
411 snd_card_ro_proc_new(emu->card, "iec958", emu, snd_ca0106_proc_iec958);
412 snd_card_rw_proc_new(emu->card, "ca0106_reg32", emu,
415 snd_card_ro_proc_new(emu->card, "ca0106_reg16", emu,
417 snd_card_ro_proc_new(emu->card, "ca0106_reg8", emu,
419 snd_card_rw_proc_new(emu->card, "ca0106_regs1", emu,
422 snd_card_rw_proc_new(emu->card, "ca0106_i2c", emu, NULL,
424 snd_card_ro_proc_new(emu->card, "ca0106_regs2", emu,