0001
0002
0003
0004
0005
0006
0007 #define INDIGO_FAMILY
0008 #define ECHOCARD_INDIGO_DJX
0009 #define ECHOCARD_NAME "Indigo DJx"
0010 #define ECHOCARD_HAS_SUPER_INTERLEAVE
0011 #define ECHOCARD_HAS_VMIXER
0012 #define ECHOCARD_HAS_STEREO_BIG_ENDIAN32
0013
0014
0015 #define PX_ANALOG_OUT 0
0016 #define PX_DIGITAL_OUT 8
0017 #define PX_ANALOG_IN 8
0018 #define PX_DIGITAL_IN 8
0019 #define PX_NUM 8
0020
0021
0022 #define BX_ANALOG_OUT 0
0023 #define BX_DIGITAL_OUT 4
0024 #define BX_ANALOG_IN 4
0025 #define BX_DIGITAL_IN 4
0026 #define BX_NUM 4
0027
0028
0029 #include <linux/delay.h>
0030 #include <linux/init.h>
0031 #include <linux/interrupt.h>
0032 #include <linux/pci.h>
0033 #include <linux/module.h>
0034 #include <linux/firmware.h>
0035 #include <linux/io.h>
0036 #include <linux/slab.h>
0037 #include <sound/core.h>
0038 #include <sound/info.h>
0039 #include <sound/control.h>
0040 #include <sound/tlv.h>
0041 #include <sound/pcm.h>
0042 #include <sound/pcm_params.h>
0043 #include <sound/asoundef.h>
0044 #include <sound/initval.h>
0045 #include <linux/atomic.h>
0046 #include "echoaudio.h"
0047
0048 MODULE_FIRMWARE("ea/loader_dsp.fw");
0049 MODULE_FIRMWARE("ea/indigo_djx_dsp.fw");
0050
0051 #define FW_361_LOADER 0
0052 #define FW_INDIGO_DJX_DSP 1
0053
0054 static const struct firmware card_fw[] = {
0055 {0, "loader_dsp.fw"},
0056 {0, "indigo_djx_dsp.fw"}
0057 };
0058
0059 static const struct pci_device_id snd_echo_ids[] = {
0060 {0x1057, 0x3410, 0xECC0, 0x00E0, 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_32000 |
0077 SNDRV_PCM_RATE_44100 |
0078 SNDRV_PCM_RATE_48000 |
0079 SNDRV_PCM_RATE_64000 |
0080 SNDRV_PCM_RATE_88200 |
0081 SNDRV_PCM_RATE_96000,
0082 .rate_min = 32000,
0083 .rate_max = 96000,
0084 .channels_min = 1,
0085 .channels_max = 4,
0086 .buffer_bytes_max = 262144,
0087 .period_bytes_min = 32,
0088 .period_bytes_max = 131072,
0089 .periods_min = 2,
0090 .periods_max = 220,
0091 };
0092
0093 #include "indigodjx_dsp.c"
0094 #include "indigo_express_dsp.c"
0095 #include "echoaudio_dsp.c"
0096 #include "echoaudio.c"