aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/emu10k1.h
diff options
context:
space:
mode:
authorJames Courtier-Dutton <James@superbug.co.uk>2006-10-09 18:08:00 -0400
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:00:38 -0500
commit9148cc502752b12051760e6c5ba5daaea3367360 (patch)
treede02a490f42d253f2baf5c690bb4a92406d04e9e /include/sound/emu10k1.h
parent6add0f4242fc52a97a92fca99a39f35298c2b50b (diff)
[ALSA] snd_emu10k1: Added support for 14dB Attenuation PADS on DACs and ADCs.
Signed-off-by: James Courtier-Dutton <James@superbug.co.uk> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'include/sound/emu10k1.h')
-rw-r--r--include/sound/emu10k1.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h
index 396812eb668d..7cfa91e7bde8 100644
--- a/include/sound/emu10k1.h
+++ b/include/sound/emu10k1.h
@@ -974,7 +974,7 @@
974#define EMU_HANA_OPTICAL_OUT_SPDIF 0x00 974#define EMU_HANA_OPTICAL_OUT_SPDIF 0x00
975#define EMU_HANA_OPTICAL_OUT_ADAT 0x02 975#define EMU_HANA_OPTICAL_OUT_ADAT 0x02
976 976
977#define EMU_HANA_MIDI 0x0c /* 000000x 1 bit Control MIDI */ 977#define EMU_HANA_MIDI_IN 0x0c /* 000000x 1 bit Control MIDI */
978#define EMU_HANA_MIDI_IN_FROM_HAMOA 0x00 /* HAMOA MIDI in to Alice 2 MIDI B */ 978#define EMU_HANA_MIDI_IN_FROM_HAMOA 0x00 /* HAMOA MIDI in to Alice 2 MIDI B */
979#define EMU_HANA_MIDI_IN_FROM_DOCK 0x01 /* Audio Dock MIDI in to Alice 2 MIDI B */ 979#define EMU_HANA_MIDI_IN_FROM_DOCK 0x01 /* Audio Dock MIDI in to Alice 2 MIDI B */
980 980
@@ -1000,10 +1000,11 @@
1000#define EMU_HANA_DOCK_LEDS_3_MANUAL_CLIP 0x10 /* Manual Clip detection */ 1000#define EMU_HANA_DOCK_LEDS_3_MANUAL_CLIP 0x10 /* Manual Clip detection */
1001#define EMU_HANA_DOCK_LEDS_3_MANUAL_SIGNAL 0x20 /* Manual Signal detection */ 1001#define EMU_HANA_DOCK_LEDS_3_MANUAL_SIGNAL 0x20 /* Manual Signal detection */
1002 1002
1003#define EMU_HANA_DOCK_PADS 0x10 /* 0000xxx 3 bit Audio Dock ADC 14dB pads */ 1003#define EMU_HANA_ADC_PADS 0x10 /* 0000xxx 3 bit Audio Dock ADC 14dB pads */
1004#define EMU_HANA_DOCK_PAD1 0x01 /* 14dB Attenuation on ADC 1 */ 1004#define EMU_HANA_DOCK_ADC_PAD1 0x01 /* 14dB Attenuation on Audio Dock ADC 1 */
1005#define EMU_HANA_DOCK_PAD2 0x02 /* 14dB Attenuation on ADC 2 */ 1005#define EMU_HANA_DOCK_ADC_PAD2 0x02 /* 14dB Attenuation on Audio Dock ADC 2 */
1006#define EMU_HANA_DOCK_PAD3 0x04 /* 14dB Attenuation on ADC 3 */ 1006#define EMU_HANA_DOCK_ADC_PAD3 0x04 /* 14dB Attenuation on Audio Dock ADC 3 */
1007#define EMU_HANA_0202_ADC_PAD1 0x08 /* 14dB Attenuation on 0202 ADC 1 */
1007 1008
1008#define EMU_HANA_DOCK_MISC 0x11 /* 0xxxxxx 6 bit Audio Dock misc bits */ 1009#define EMU_HANA_DOCK_MISC 0x11 /* 0xxxxxx 6 bit Audio Dock misc bits */
1009#define EMU_HANA_DOCK_DAC1_MUTE 0x01 /* DAC 1 Mute */ 1010#define EMU_HANA_DOCK_DAC1_MUTE 0x01 /* DAC 1 Mute */
@@ -1015,8 +1016,20 @@
1015#define EMU_HANA_DOCK_PHONES_192_DAC3 0x20 /* DAC 3 Headphones source at 192kHz */ 1016#define EMU_HANA_DOCK_PHONES_192_DAC3 0x20 /* DAC 3 Headphones source at 192kHz */
1016#define EMU_HANA_DOCK_PHONES_192_DAC4 0x30 /* DAC 4 Headphones source at 192kHz */ 1017#define EMU_HANA_DOCK_PHONES_192_DAC4 0x30 /* DAC 4 Headphones source at 192kHz */
1017 1018
1018#define EMU_HANA_UNKNOWN12 0x12 /* 0xxxxxx 6 bit Unknown12 */ 1019#define EMU_HANA_MIDI_OUT 0x12 /* 00xxxxx 5 bit Source for each MIDI out port */
1019#define EMU_HANA_UNKNOWN13 0x13 /* 0xxxxxx 6 bit Unknown13 */ 1020#define EMU_HANA_MIDI_OUT_0202 0x01 /* 0202 MIDI from Alice 2. 0 = A, 1 = B */
1021#define EMU_HANA_MIDI_OUT_DOCK1 0x02 /* Audio Dock MIDI1 front, from Alice 2. 0 = A, 1 = B */
1022#define EMU_HANA_MIDI_OUT_DOCK2 0x04 /* Audio Dock MIDI2 rear, from Alice 2. 0 = A, 1 = B */
1023#define EMU_HANA_MIDI_OUT_SYNC2 0x08 /* Sync card. Not the actual MIDI out jack. 0 = A, 1 = B */
1024#define EMU_HANA_MIDI_OUT_LOOP 0x10 /* 0 = bits (3:0) normal. 1 = MIDI loopback enabled. */
1025
1026#define EMU_HANA_DAC_PADS 0x13 /* 00xxxxx 5 bit DAC 14dB attenuation pads */
1027#define EMU_HANA_DOCK_DAC_PAD1 0x01 /* 14dB Attenuation on AudioDock DAC 1. Left and Right */
1028#define EMU_HANA_DOCK_DAC_PAD2 0x02 /* 14dB Attenuation on AudioDock DAC 2. Left and Right */
1029#define EMU_HANA_DOCK_DAC_PAD3 0x04 /* 14dB Attenuation on AudioDock DAC 3. Left and Right */
1030#define EMU_HANA_DOCK_DAC_PAD4 0x08 /* 14dB Attenuation on AudioDock DAC 4. Left and Right */
1031#define EMU_HANA_0202_DAC_PAD1 0x10 /* 14dB Attenuation on 0202 DAC 1. Left and Right */
1032
1020/* 0x14 - 0x1f Unused R/W registers */ 1033/* 0x14 - 0x1f Unused R/W registers */
1021#define EMU_HANA_IRQ_STATUS 0x20 /* 000xxxx 4 bits IRQ Status */ 1034#define EMU_HANA_IRQ_STATUS 0x20 /* 000xxxx 4 bits IRQ Status */
1022#if 0 /* Already defined for reg 0x09 IRQ_ENABLE */ 1035#if 0 /* Already defined for reg 0x09 IRQ_ENABLE */
@@ -1377,6 +1390,8 @@ struct snd_emu_chip_details {
1377struct snd_emu1010 { 1390struct snd_emu1010 {
1378 unsigned int output_source[64]; 1391 unsigned int output_source[64];
1379 unsigned int input_source[64]; 1392 unsigned int input_source[64];
1393 unsigned int adc_pads; /* bit mask */
1394 unsigned int dac_pads; /* bit mask */
1380}; 1395};
1381 1396
1382struct snd_emu10k1 { 1397struct snd_emu10k1 {