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