Lines Matching +full:link +full:- +full:signal +full:- +full:sources

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 #include <sound/pcm-indirect.h>
25 /* ------------------- DEFINES -------------------- */
37 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
55 #define PTR_CHANNELNUM_MASK 0x0000003f /* For each per-channel register, indicates the */
57 /* accessed. For non per-channel registers the */
93 #define IPR_CDROMSTATUSCHANGE 0x00000400 /* CD-ROM channel status change */
106 #define INTE_VIRTUALSB_220 0x00000000 /* Capture at I/O base address 0x220-0x22f */
111 #define INTE_VIRTUALMPU_300 0x00000000 /* Capture at I/O base address 0x300-0x301 */
115 #define INTE_MASTERDMAENABLE 0x08000000 /* Master DMA emulation at 0x000-0x00f */
116 #define INTE_SLAVEDMAENABLE 0x04000000 /* Slave DMA emulation at 0x0c0-0x0df */
117 #define INTE_MASTERPICENABLE 0x02000000 /* Master PIC emulation at 0x020-0x021 */
118 #define INTE_SLAVEPICENABLE 0x01000000 /* Slave PIC emulation at 0x0a0-0x0a1 */
120 #define INTE_ADLIBENABLE 0x00400000 /* Enable AdLib emulation at 0x388-0x38b */
131 #define INTE_A_MIDITXENABLE2 0x00020000 /* Enable MIDI transmit-buffer-empty interrupts */
132 #define INTE_A_MIDIRXENABLE2 0x00010000 /* Enable MIDI receive-buffer-empty interrupts */
148 #define INTE_MIDITXENABLE 0x00000002 /* Enable MIDI transmit-buffer-empty interrupts */
149 #define INTE_MIDIRXENABLE 0x00000001 /* Enable MIDI receive-buffer-empty interrupts */
183 #define HCFG_CODECFORMAT_AC97_1 0x00000000 /* AC97 CODEC format -- Ver 1.03 */
184 #define HCFG_CODECFORMAT_AC97_2 0x00010000 /* AC97 CODEC format -- Ver 2.1 */
187 /* they are not rate-locked to the external */
191 /* the SPDIF V-bit indicates invalid audio */
206 #define HCFG_CODECFORMAT_AC97 0x00000000 /* AC97 CODEC format -- Primary Output */
207 #define HCFG_CODECFORMAT_I2S 0x00010000 /* I2S CODEC format -- Secondary (Rear) Output */
218 #define HCFG_AC3ENABLE_MASK 0x000000e0 /* AC3 async input control - Not implemented */
224 /* they are not rate-locked to the external */
237 #define HCFG_AUDIOENABLE 0x00000001 /* 0 = CODECs transmit zero-valued samples */
241 //For Audigy, MPU port move to 0x70-0x74 ptr register
264 #define A_IOCFG_DISABLE_AC97_FRONT 0x0080 /* turn off ac97 front -> front (10k2.1) */
291 #define AC97ADDRESS_READY 0x80 /* Read-only bit, reflects CODEC READY signal */
317 /* 0x00000000 2-channel output. */
318 /* 0x00000200 8-channel output. */
325 * bit 8: Record 8-channel in phase.
326 * bit 9: Playback 8-channel in phase.
327 * bit 11-12: Playback mixer attenuation: 0=0dB, 1=-6dB, 2=-12dB, 3=Mute.
354 /* Emu10k1 pointer-offset register set, accessed through the PTR and DATA registers */
420 #define CCCA_8BITSELECT 0x01000000 /* 1 = Sound memory for this channel uses 8-bit samples */
464 /* 0x8000-n == 666*n usec delay */
468 #define ATKHLDV_HOLDTIME_MASK 0x00007f00 /* Envelope hold time (127-n == n*88.2msec) */
483 /* 0x8000-n == 666*n usec delay */
487 /* 0x8000-n == 666*n usec delay */
491 #define ATKHLDM_HOLDTIME 0x00007f00 /* Envelope hold time (127-n == n*42msec) */
503 /* 0x8000-n == 666*n usec delay */
521 /* Signed 2's complement, +/- one octave peak extremes */
524 /* Signed 2's complement, +/- six octaves peak extremes */
528 /* Signed 2's complement, +/- one octave extremes */
530 /* Signed 2's complement, +/- three octave extremes */
535 /* Signed 2's complement, with +/- 12dB extremes */
541 /* Signed 2's complement, +/- one octave extremes */
546 #define TEMPENV_MASK 0x0000ffff /* 16-bit value */
569 /* 0x30-3f seem to be the same as 0x20-2f */
602 /* 0x20-0x3f) to host memory. This mode of recording */
642 #define A_HWM 0x48 /* High PCI Water Mark - word access, defaults to 3f */
650 /* register: 0x4c..4f: ffff-ffff current amounts, per-channel */
699 #define CDCS 0x50 /* CD-ROM digital channel status register */
717 // NOTE: 0x54,55,56: 64-bit
738 #define SPCS_GENERATIONSTATUS 0x00008000 /* Originality flag (see IEC-958 spec) */
739 #define SPCS_CATEGORYCODEMASK 0x00007f00 /* Category code (see IEC-958 spec) */
740 #define SPCS_MODEMASK 0x000000c0 /* Mode (see IEC-958 spec) */
744 #define SPCS_COPYRIGHT 0x00000004 /* Copyright asserted flag -- do not modify */
746 #define SPCS_PROFESSIONAL 0x00000001 /* 0 = Consumer (IEC-958), 1 = pro (AES3-1992) */
750 /* The 32-bit CLIx and SOLx registers all have one bit per channel control/status */
766 /* bypass mode: 0 - DSP; 1 - SPDIF A, 2 - SPDIF B, 3 - SPDIF C */
767 #define SPBYPASS_FORMAT 0x00000f00 /* If 1, SPDIF XX uses 24 bit, if 0 - 20 bit */
778 // NOTE: 0x60,61,62: 64-bit
779 #define CDSRCS 0x60 /* CD-ROM Sample Rate Converter status register */
793 /* Note that these values can vary +/- by a small amount */
799 #define MICIDX_MASK 0x0000ffff /* 16-bit value */
813 #define FXIDX_MASK 0x0000ffff /* 16-bit value */
816 /* The 32-bit HLIx and HLIPx registers all have one bit per channel control/status */
851 #define A_FXWC1 0x74 /* Selects 0x7f-0x60 for FX recording */
852 #define A_FXWC2 0x75 /* Selects 0x9f-0x80 for FX recording */
885 /* - default to 0x01080000 on my audigy 2 ZS --rlrevell */
917 #define A_TANKMEMCTLREGBASE 0x100 /* Tank memory control registers base - only for Audigy */
918 #define A_TANKMEMCTLREG_MASK 0x1f /* only 5 bits used - only for Audigy */
956 #define EMU_HANA_DESTHI 0x00 /* 0000xxx 3 bits Link Destination */
958 #define EMU_HANA_SRCHI 0x02 /* 0000xxx 3 bits Link Source */
1034 #define EMU_HANA_DOCK_LEDS_3_SIGNAL_A 0x04 /* Signal A Clip LED on */
1035 #define EMU_HANA_DOCK_LEDS_3_SIGNAL_B 0x08 /* Signal B Clip LED on */
1037 #define EMU_HANA_DOCK_LEDS_3_MANUAL_SIGNAL 0x20 /* Manual Signal detection */
1069 /* 0x14 - 0x1f Unused R/W registers */
1107 /* 0x30 - 0x3f Unused Read only registers */
1114 * 0x00, 0x00-0x0f: 16 EMU32 channels to Alice2
1115 * 0x01, 0x10-0x1f: 32 Elink channels to Audio Dock
1132 * 0x04, 0x00-0x07: Hana ADAT
1145 * 0x00, 0x00-0x0f: 16 EMU32A channels to Tina
1146 * 0x01, 0x10-0x1f: 32 EDI channels to Micro Dock
1155 * 0x01, 0x18-0x1f: Dock ADAT 0-7
1160 * 0x04, 0x00-0x07: Hana3 ADAT 0-7
1161 * 0x05, 0x00-0x0f: 16 EMU32B channels to Tina
1162 * 0x06-0x07: Not used
1166 * 0x00, 0x00-0x0f: 16 EMU32 channels to Alice2
1172 * 0x04-0x07: Not used
1176 * 0x00, 0x00-0x0f: 16 EMU32 channels to Alice2
1182 * 0x04-0x07: Not used
1186 * 0x00, 0x00-0x0f: 16 EMU32A channels to Tina2
1187 * 0x01, 0x10-0x1f: 32 EDI channels to Micro Dock
1196 * 0x01, 0x18-0x1f: Dock ADAT 0-7
1200 * 0x04, 0x00-0x0f: 16 EMU32B channels to Tina2
1201 * 0x05-0x07: Not used
1205 /* 32-bit destinations of signal in the Hana FPGA. Destinations are either
1207 * - 16 x EMU_DST_ALICE2_EMU32_X.
1209 /* EMU32 = 32-bit serial channel between Alice2 (audigy) and Hana (FPGA) */
1210 /* EMU_DST_ALICE2_EMU32_X - data channels from Hana to Alice2 used for capture.
1212 * setup of mixer control for each destination - see emumixer.c -
1309 /* EMU1010m HANA Sources */
1312 * Sources SRATEX = 1X rates: 44.1 kHz or 48 kHz
1313 * 0x00,0x00-0x1f: Silence
1314 * 0x01, 0x10-0x1f: 32 Elink channels from Audio Dock
1325 * 0x03, 0x00-0x0f: 16 inputs from Alice2 Emu32A output
1326 * 0x03, 0x10-0x1f: 16 inputs from Alice2 Emu32B output
1327 * 0x04, 0x00-0x07: Hana ADAT
1330 * 0x06-0x07: Not used
1336 * Sources SRATEX = 1X rates: 44.1 kHz or 48 kHz
1337 * 0x00,0x00-0x1f: Silence
1338 * 0x01, 0x10-0x1f: 32 Elink channels from Audio Dock
1347 * 0x01, 0x18-0x1f: Dock ADAT 0-7
1352 * 0x03, 0x00-0x0f: 16 inputs from Tina Emu32A output
1353 * 0x03, 0x10-0x1f: 16 inputs from Tina Emu32B output
1354 * 0x04, 0x00-0x07: Hana3 ADAT
1357 * 0x06-0x07: Not used
1360 * Sources SRATEX = 1X rates: 44.1 kHz or 48 kHz
1361 * 0x00,0x00-0x1f: Silence
1365 * 0x03, 0x00-0x0f: 16 inputs from Alice2 Emu32A output
1366 * 0x03, 0x10-0x1f: 16 inputs from Alice2 Emu32B output
1370 * 0x06-0x07: Not used
1373 * Sources SRATEX = 1X rates: 44.1 kHz or 48 kHz
1374 * 0x00,0x00-0x1f: Silence
1378 * 0x03, 0x00-0x0f: 16 inputs from Alice2 Emu32A output
1379 * 0x03, 0x10-0x1f: 16 inputs from Alice2 Emu32B output
1383 * 0x06-0x07: Not used
1386 * Sources SRATEX = 1X rates: 44.1 kHz or 48 kHz
1387 * 0x00,0x00-0x1f: Silence
1388 * 0x01, 0x10-0x1f: 32 Elink channels from Audio Dock
1397 * 0x01, 0x18-0x1f: Dock ADAT 0-7
1401 * 0x03, 0x00-0x0f: 16 inputs from Tina Emu32A output
1402 * 0x03, 0x10-0x1f: 16 inputs from Tina Emu32B output
1403 * 0x04-0x07: Not used
1407 /* 32-bit sources of signal in the Hana FPGA. The sources are routed to
1408 * destinations using mixer control for each destination - see emumixer.c
1409 * Sources are either physical inputs of FPGA,
1410 * or outputs from Alice (audigy) - 16 x EMU_SRC_ALICE_EMU32A +
1476 /* ------------------- STRUCTURES -------------------- */
1556 …efine snd_emu10k1_memblk_offset(blk) (((blk)->mapped_page << PAGE_SHIFT) | ((blk)->mem.offset & (P…
1561 struct list_head list; /* list link container */
1585 unsigned int channels; /* 16-bit channels count */
1654 unsigned char sblive51; /* SBLive! 5.1 - extout 0x11 -> center, 0x12 -> lfe */
1665 const char *id; /* for backward compatibility - can be NULL if not needed */
1684 unsigned int tos_link: 1, /* tos link detected */
1842 static inline unsigned int snd_emu10k1_wc(struct snd_emu10k1 *emu) { return (inl(emu->port + WC) >>… in snd_emu10k1_wc()