0001
0002
0003
0004
0005
0006
0007 #define ECHOGALS_FAMILY
0008 #define ECHOCARD_DARLA24
0009 #define ECHOCARD_NAME "Darla24"
0010 #define ECHOCARD_HAS_MONITOR
0011 #define ECHOCARD_HAS_INPUT_NOMINAL_LEVEL
0012 #define ECHOCARD_HAS_OUTPUT_NOMINAL_LEVEL
0013 #define ECHOCARD_HAS_EXTERNAL_CLOCK
0014 #define ECHOCARD_HAS_SUPER_INTERLEAVE
0015
0016
0017 #define PX_ANALOG_OUT 0
0018 #define PX_DIGITAL_OUT 8
0019 #define PX_ANALOG_IN 8
0020 #define PX_DIGITAL_IN 10
0021 #define PX_NUM 10
0022
0023
0024 #define BX_ANALOG_OUT 0
0025 #define BX_DIGITAL_OUT 8
0026 #define BX_ANALOG_IN 8
0027 #define BX_DIGITAL_IN 10
0028 #define BX_NUM 10
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/darla24_dsp.fw");
0051
0052 #define FW_DARLA24_DSP 0
0053
0054 static const struct firmware card_fw[] = {
0055 {0, "darla24_dsp.fw"}
0056 };
0057
0058 static const struct pci_device_id snd_echo_ids[] = {
0059 {0x1057, 0x1801, 0xECC0, 0x0040, 0, 0, 0},
0060 {0x1057, 0x1801, 0xECC0, 0x0041, 0, 0, 0},
0061 {0,}
0062 };
0063
0064 static const struct snd_pcm_hardware pcm_hardware_skel = {
0065 .info = SNDRV_PCM_INFO_MMAP |
0066 SNDRV_PCM_INFO_INTERLEAVED |
0067 SNDRV_PCM_INFO_BLOCK_TRANSFER |
0068 SNDRV_PCM_INFO_MMAP_VALID |
0069 SNDRV_PCM_INFO_PAUSE |
0070 SNDRV_PCM_INFO_SYNC_START,
0071 .formats = SNDRV_PCM_FMTBIT_U8 |
0072 SNDRV_PCM_FMTBIT_S16_LE |
0073 SNDRV_PCM_FMTBIT_S24_3LE |
0074 SNDRV_PCM_FMTBIT_S32_LE |
0075 SNDRV_PCM_FMTBIT_S32_BE,
0076 .rates = SNDRV_PCM_RATE_8000_48000 |
0077 SNDRV_PCM_RATE_88200 |
0078 SNDRV_PCM_RATE_96000,
0079 .rate_min = 8000,
0080 .rate_max = 96000,
0081 .channels_min = 1,
0082 .channels_max = 8,
0083 .buffer_bytes_max = 262144,
0084 .period_bytes_min = 32,
0085 .period_bytes_max = 131072,
0086 .periods_min = 2,
0087 .periods_max = 220,
0088
0089
0090
0091 };
0092
0093
0094 #include "darla24_dsp.c"
0095 #include "echoaudio_dsp.c"
0096 #include "echoaudio.c"