~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/pci/echoaudio/gina20.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  *  ALSA driver for Echoaudio soundcards.
  4  *  Copyright (C) 2003-2004 Giuliano Pochini <pochini@shiny.it>
  5  */
  6 
  7 #define ECHOGALS_FAMILY
  8 #define ECHOCARD_GINA20
  9 #define ECHOCARD_NAME "Gina20"
 10 #define ECHOCARD_HAS_MONITOR
 11 #define ECHOCARD_HAS_INPUT_GAIN
 12 #define ECHOCARD_HAS_DIGITAL_IO
 13 #define ECHOCARD_HAS_EXTERNAL_CLOCK
 14 #define ECHOCARD_HAS_ADAT       false
 15 
 16 /* Pipe indexes */
 17 #define PX_ANALOG_OUT   0       /* 8 */
 18 #define PX_DIGITAL_OUT  8       /* 2 */
 19 #define PX_ANALOG_IN    10      /* 2 */
 20 #define PX_DIGITAL_IN   12      /* 2 */
 21 #define PX_NUM          14
 22 
 23 /* Bus indexes */
 24 #define BX_ANALOG_OUT   0       /* 8 */
 25 #define BX_DIGITAL_OUT  8       /* 2 */
 26 #define BX_ANALOG_IN    10      /* 2 */
 27 #define BX_DIGITAL_IN   12      /* 2 */
 28 #define BX_NUM          14
 29 
 30 
 31 #include <linux/delay.h>
 32 #include <linux/init.h>
 33 #include <linux/interrupt.h>
 34 #include <linux/pci.h>
 35 #include <linux/module.h>
 36 #include <linux/firmware.h>
 37 #include <linux/slab.h>
 38 #include <linux/io.h>
 39 #include <sound/core.h>
 40 #include <sound/info.h>
 41 #include <sound/control.h>
 42 #include <sound/tlv.h>
 43 #include <sound/pcm.h>
 44 #include <sound/pcm_params.h>
 45 #include <sound/asoundef.h>
 46 #include <sound/initval.h>
 47 #include <linux/atomic.h>
 48 #include "echoaudio.h"
 49 
 50 MODULE_FIRMWARE("ea/gina20_dsp.fw");
 51 
 52 #define FW_GINA20_DSP   0
 53 
 54 static const struct firmware card_fw[] = {
 55         {0, "gina20_dsp.fw"}
 56 };
 57 
 58 static const struct pci_device_id snd_echo_ids[] = {
 59         {0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0},      /* DSP 56301 Gina20 rev.0 */
 60         {0,}
 61 };
 62 
 63 static const struct snd_pcm_hardware pcm_hardware_skel = {
 64         .info = SNDRV_PCM_INFO_MMAP |
 65                 SNDRV_PCM_INFO_INTERLEAVED |
 66                 SNDRV_PCM_INFO_BLOCK_TRANSFER |
 67                 SNDRV_PCM_INFO_MMAP_VALID |
 68                 SNDRV_PCM_INFO_PAUSE |
 69                 SNDRV_PCM_INFO_SYNC_START,
 70         .formats =      SNDRV_PCM_FMTBIT_U8 |
 71                         SNDRV_PCM_FMTBIT_S16_LE |
 72                         SNDRV_PCM_FMTBIT_S24_3LE |
 73                         SNDRV_PCM_FMTBIT_S32_LE |
 74                         SNDRV_PCM_FMTBIT_S32_BE,
 75         .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000,
 76         .rate_min = 44100,
 77         .rate_max = 48000,
 78         .channels_min = 1,
 79         .channels_max = 2,
 80         .buffer_bytes_max = 262144,
 81         .period_bytes_min = 32,
 82         .period_bytes_max = 131072,
 83         .periods_min = 2,
 84         .periods_max = 220,
 85         /* One page (4k) contains 512 instructions. I don't know if the hw
 86         supports lists longer than this. In this case periods_max=220 is a
 87         safe limit to make sure the list never exceeds 512 instructions. */
 88 };
 89 
 90 
 91 #include "gina20_dsp.c"
 92 #include "echoaudio_dsp.c"
 93 #include "echoaudio.c"
 94 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php