0001
0002
0003
0004
0005
0006
0007 #define ECHOGALS_FAMILY
0008 #define ECHOCARD_GINA20
0009 #define ECHOCARD_NAME "Gina20"
0010 #define ECHOCARD_HAS_MONITOR
0011 #define ECHOCARD_HAS_INPUT_GAIN
0012 #define ECHOCARD_HAS_DIGITAL_IO
0013 #define ECHOCARD_HAS_EXTERNAL_CLOCK
0014 #define ECHOCARD_HAS_ADAT false
0015
0016
0017 #define PX_ANALOG_OUT 0
0018 #define PX_DIGITAL_OUT 8
0019 #define PX_ANALOG_IN 10
0020 #define PX_DIGITAL_IN 12
0021 #define PX_NUM 14
0022
0023
0024 #define BX_ANALOG_OUT 0
0025 #define BX_DIGITAL_OUT 8
0026 #define BX_ANALOG_IN 10
0027 #define BX_DIGITAL_IN 12
0028 #define BX_NUM 14
0029
0030
0031 #include <linux/delay.h>
0032 #include <linux/init.h>
0033 #include <linux/interrupt.h>
0034 #include <linux/pci.h>
0035 #include <linux/module.h>
0036 #include <linux/firmware.h>
0037 #include <linux/slab.h>
0038 #include <linux/io.h>
0039 #include <sound/core.h>
0040 #include <sound/info.h>
0041 #include <sound/control.h>
0042 #include <sound/tlv.h>
0043 #include <sound/pcm.h>
0044 #include <sound/pcm_params.h>
0045 #include <sound/asoundef.h>
0046 #include <sound/initval.h>
0047 #include <linux/atomic.h>
0048 #include "echoaudio.h"
0049
0050 MODULE_FIRMWARE("ea/gina20_dsp.fw");
0051
0052 #define FW_GINA20_DSP 0
0053
0054 static const struct firmware card_fw[] = {
0055 {0, "gina20_dsp.fw"}
0056 };
0057
0058 static const struct pci_device_id snd_echo_ids[] = {
0059 {0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0},
0060 {0,}
0061 };
0062
0063 static const struct snd_pcm_hardware pcm_hardware_skel = {
0064 .info = SNDRV_PCM_INFO_MMAP |
0065 SNDRV_PCM_INFO_INTERLEAVED |
0066 SNDRV_PCM_INFO_BLOCK_TRANSFER |
0067 SNDRV_PCM_INFO_MMAP_VALID |
0068 SNDRV_PCM_INFO_PAUSE |
0069 SNDRV_PCM_INFO_SYNC_START,
0070 .formats = SNDRV_PCM_FMTBIT_U8 |
0071 SNDRV_PCM_FMTBIT_S16_LE |
0072 SNDRV_PCM_FMTBIT_S24_3LE |
0073 SNDRV_PCM_FMTBIT_S32_LE |
0074 SNDRV_PCM_FMTBIT_S32_BE,
0075 .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000,
0076 .rate_min = 44100,
0077 .rate_max = 48000,
0078 .channels_min = 1,
0079 .channels_max = 2,
0080 .buffer_bytes_max = 262144,
0081 .period_bytes_min = 32,
0082 .period_bytes_max = 131072,
0083 .periods_min = 2,
0084 .periods_max = 220,
0085
0086
0087
0088 };
0089
0090
0091 #include "gina20_dsp.c"
0092 #include "echoaudio_dsp.c"
0093 #include "echoaudio.c"