0001
0002
0003
0004
0005
0006
0007 #define ECHO3G_FAMILY
0008 #define ECHOCARD_ECHO3G
0009 #define ECHOCARD_NAME "Echo3G"
0010 #define ECHOCARD_HAS_MONITOR
0011 #define ECHOCARD_HAS_ASIC
0012 #define ECHOCARD_HAS_INPUT_NOMINAL_LEVEL
0013 #define ECHOCARD_HAS_OUTPUT_NOMINAL_LEVEL
0014 #define ECHOCARD_HAS_SUPER_INTERLEAVE
0015 #define ECHOCARD_HAS_DIGITAL_IO
0016 #define ECHOCARD_HAS_DIGITAL_MODE_SWITCH
0017 #define ECHOCARD_HAS_ADAT 6
0018 #define ECHOCARD_HAS_EXTERNAL_CLOCK
0019 #define ECHOCARD_HAS_STEREO_BIG_ENDIAN32
0020 #define ECHOCARD_HAS_MIDI
0021 #define ECHOCARD_HAS_PHANTOM_POWER
0022
0023
0024 #define PX_ANALOG_OUT 0
0025 #define PX_DIGITAL_OUT chip->px_digital_out
0026 #define PX_ANALOG_IN chip->px_analog_in
0027 #define PX_DIGITAL_IN chip->px_digital_in
0028 #define PX_NUM chip->px_num
0029
0030
0031 #define BX_ANALOG_OUT 0
0032 #define BX_DIGITAL_OUT chip->bx_digital_out
0033 #define BX_ANALOG_IN chip->bx_analog_in
0034 #define BX_DIGITAL_IN chip->bx_digital_in
0035 #define BX_NUM chip->bx_num
0036
0037
0038 #include <linux/delay.h>
0039 #include <linux/init.h>
0040 #include <linux/interrupt.h>
0041 #include <linux/pci.h>
0042 #include <linux/module.h>
0043 #include <linux/firmware.h>
0044 #include <linux/slab.h>
0045 #include <linux/io.h>
0046 #include <sound/core.h>
0047 #include <sound/info.h>
0048 #include <sound/control.h>
0049 #include <sound/tlv.h>
0050 #include <sound/pcm.h>
0051 #include <sound/pcm_params.h>
0052 #include <sound/asoundef.h>
0053 #include <sound/initval.h>
0054 #include <sound/rawmidi.h>
0055 #include <linux/atomic.h>
0056 #include "echoaudio.h"
0057
0058 MODULE_FIRMWARE("ea/loader_dsp.fw");
0059 MODULE_FIRMWARE("ea/echo3g_dsp.fw");
0060 MODULE_FIRMWARE("ea/3g_asic.fw");
0061
0062 #define FW_361_LOADER 0
0063 #define FW_ECHO3G_DSP 1
0064 #define FW_3G_ASIC 2
0065
0066 static const struct firmware card_fw[] = {
0067 {0, "loader_dsp.fw"},
0068 {0, "echo3g_dsp.fw"},
0069 {0, "3g_asic.fw"}
0070 };
0071
0072 static const struct pci_device_id snd_echo_ids[] = {
0073 {0x1057, 0x3410, 0xECC0, 0x0100, 0, 0, 0},
0074 {0,}
0075 };
0076
0077 static const struct snd_pcm_hardware pcm_hardware_skel = {
0078 .info = SNDRV_PCM_INFO_MMAP |
0079 SNDRV_PCM_INFO_INTERLEAVED |
0080 SNDRV_PCM_INFO_BLOCK_TRANSFER |
0081 SNDRV_PCM_INFO_MMAP_VALID |
0082 SNDRV_PCM_INFO_PAUSE |
0083 SNDRV_PCM_INFO_SYNC_START,
0084 .formats = SNDRV_PCM_FMTBIT_U8 |
0085 SNDRV_PCM_FMTBIT_S16_LE |
0086 SNDRV_PCM_FMTBIT_S24_3LE |
0087 SNDRV_PCM_FMTBIT_S32_LE |
0088 SNDRV_PCM_FMTBIT_S32_BE,
0089 .rates = SNDRV_PCM_RATE_32000 |
0090 SNDRV_PCM_RATE_44100 |
0091 SNDRV_PCM_RATE_48000 |
0092 SNDRV_PCM_RATE_88200 |
0093 SNDRV_PCM_RATE_96000 |
0094 SNDRV_PCM_RATE_CONTINUOUS,
0095 .rate_min = 32000,
0096 .rate_max = 100000,
0097 .channels_min = 1,
0098 .channels_max = 8,
0099 .buffer_bytes_max = 262144,
0100 .period_bytes_min = 32,
0101 .period_bytes_max = 131072,
0102 .periods_min = 2,
0103 .periods_max = 220,
0104 };
0105
0106 #include "echo3g_dsp.c"
0107 #include "echoaudio_dsp.c"
0108 #include "echoaudio_3g.c"
0109 #include "echoaudio.c"
0110 #include "midi.c"