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