xref: /openbmc/linux/sound/pci/emu10k1/p16v.h (revision 1a59d1b8)
11a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
21da177e4SLinus Torvalds /*
31da177e4SLinus Torvalds  *  Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
41da177e4SLinus Torvalds  *  Driver p16v chips
51da177e4SLinus Torvalds  *  Version: 0.21
61da177e4SLinus Torvalds  *
71da177e4SLinus Torvalds  *  FEATURES currently supported:
81da177e4SLinus Torvalds  *    Output fixed at S32_LE, 2 channel to hw:0,0
91da177e4SLinus Torvalds  *    Rates: 44.1, 48, 96, 192.
101da177e4SLinus Torvalds  *
111da177e4SLinus Torvalds  *  Changelog:
121da177e4SLinus Torvalds  *  0.8
131da177e4SLinus Torvalds  *    Use separate card based buffer for periods table.
141da177e4SLinus Torvalds  *  0.9
151da177e4SLinus Torvalds  *    Use 2 channel output streams instead of 8 channel.
161da177e4SLinus Torvalds  *       (8 channel output streams might be good for ASIO type output)
171da177e4SLinus Torvalds  *    Corrected speaker output, so Front -> Front etc.
181da177e4SLinus Torvalds  *  0.10
191da177e4SLinus Torvalds  *    Fixed missed interrupts.
201da177e4SLinus Torvalds  *  0.11
211da177e4SLinus Torvalds  *    Add Sound card model number and names.
221da177e4SLinus Torvalds  *    Add Analog volume controls.
231da177e4SLinus Torvalds  *  0.12
241da177e4SLinus Torvalds  *    Corrected playback interrupts. Now interrupt per period, instead of half period.
251da177e4SLinus Torvalds  *  0.13
261da177e4SLinus Torvalds  *    Use single trigger for multichannel.
271da177e4SLinus Torvalds  *  0.14
281da177e4SLinus Torvalds  *    Mic capture now works at fixed: S32_LE, 96000Hz, Stereo.
291da177e4SLinus Torvalds  *  0.15
301da177e4SLinus Torvalds  *    Force buffer_size / period_size == INTEGER.
311da177e4SLinus Torvalds  *  0.16
321da177e4SLinus Torvalds  *    Update p16v.c to work with changed alsa api.
331da177e4SLinus Torvalds  *  0.17
341da177e4SLinus Torvalds  *    Update p16v.c to work with changed alsa api. Removed boot_devs.
351da177e4SLinus Torvalds  *  0.18
361da177e4SLinus Torvalds  *    Merging with snd-emu10k1 driver.
371da177e4SLinus Torvalds  *  0.19
381da177e4SLinus Torvalds  *    One stereo channel at 24bit now works.
391da177e4SLinus Torvalds  *  0.20
401da177e4SLinus Torvalds  *    Added better register defines.
411da177e4SLinus Torvalds  *  0.21
421da177e4SLinus Torvalds  *    Split from p16v.c
431da177e4SLinus Torvalds  *
441da177e4SLinus Torvalds  *  BUGS:
451da177e4SLinus Torvalds  *    Some stability problems when unloading the snd-p16v kernel module.
461da177e4SLinus Torvalds  *    --
471da177e4SLinus Torvalds  *
481da177e4SLinus Torvalds  *  TODO:
491da177e4SLinus Torvalds  *    SPDIF out.
501da177e4SLinus Torvalds  *    Find out how to change capture sample rates. E.g. To record SPDIF at 48000Hz.
511da177e4SLinus Torvalds  *    Currently capture fixed at 48000Hz.
521da177e4SLinus Torvalds  *
531da177e4SLinus Torvalds  *    --
541da177e4SLinus Torvalds  *  GENERAL INFO:
551da177e4SLinus Torvalds  *    Model: SB0240
561da177e4SLinus Torvalds  *    P16V Chip: CA0151-DBS
571da177e4SLinus Torvalds  *    Audigy 2 Chip: CA0102-IAT
581da177e4SLinus Torvalds  *    AC97 Codec: STAC 9721
591da177e4SLinus Torvalds  *    ADC: Philips 1361T (Stereo 24bit)
601da177e4SLinus Torvalds  *    DAC: CS4382-K (8-channel, 24bit, 192Khz)
611da177e4SLinus Torvalds  *
6225985edcSLucas De Marchi  *  This code was initially based on code from ALSA's emu10k1x.c which is:
631da177e4SLinus Torvalds  *  Copyright (c) by Francisco Moraes <fmoraes@nc.rr.com>
641da177e4SLinus Torvalds  */
651da177e4SLinus Torvalds 
661da177e4SLinus Torvalds /********************************************************************************************************/
671da177e4SLinus Torvalds /* Audigy2 P16V pointer-offset register set, accessed through the PTR2 and DATA2 registers                     */
681da177e4SLinus Torvalds /********************************************************************************************************/
691da177e4SLinus Torvalds 
701da177e4SLinus Torvalds /* The sample rate of the SPDIF outputs is set by modifying a register in the EMU10K2 PTR register A_SPDIF_SAMPLERATE.
711da177e4SLinus Torvalds  * The sample rate is also controlled by the same registers that control the rate of the EMU10K2 sample rate converters.
721da177e4SLinus Torvalds  */
731da177e4SLinus Torvalds 
7425985edcSLucas De Marchi /* Initially all registers from 0x00 to 0x3f have zero contents. */
751da177e4SLinus Torvalds #define PLAYBACK_LIST_ADDR	0x00		/* Base DMA address of a list of pointers to each period/size */
761da177e4SLinus Torvalds 						/* One list entry: 4 bytes for DMA address,
771da177e4SLinus Torvalds 						 * 4 bytes for period_size << 16.
781da177e4SLinus Torvalds 						 * One list entry is 8 bytes long.
791da177e4SLinus Torvalds 						 * One list entry for each period in the buffer.
801da177e4SLinus Torvalds 						 */
811da177e4SLinus Torvalds #define PLAYBACK_LIST_SIZE	0x01		/* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000  */
821da177e4SLinus Torvalds #define PLAYBACK_LIST_PTR	0x02		/* Pointer to the current period being played */
831da177e4SLinus Torvalds #define PLAYBACK_UNKNOWN3	0x03		/* Not used */
84b595076aSUwe Kleine-König #define PLAYBACK_DMA_ADDR	0x04		/* Playback DMA address */
851da177e4SLinus Torvalds #define PLAYBACK_PERIOD_SIZE	0x05		/* Playback period size. win2000 uses 0x04000000 */
861da177e4SLinus Torvalds #define PLAYBACK_POINTER	0x06		/* Playback period pointer. Used with PLAYBACK_LIST_PTR to determine buffer position currently in DAC */
871da177e4SLinus Torvalds #define PLAYBACK_FIFO_END_ADDRESS	0x07		/* Playback FIFO end address */
881da177e4SLinus Torvalds #define PLAYBACK_FIFO_POINTER	0x08		/* Playback FIFO pointer and number of valid sound samples in cache */
891da177e4SLinus Torvalds #define PLAYBACK_UNKNOWN9	0x09		/* Not used */
901da177e4SLinus Torvalds #define CAPTURE_DMA_ADDR	0x10		/* Capture DMA address */
911da177e4SLinus Torvalds #define CAPTURE_BUFFER_SIZE	0x11		/* Capture buffer size */
921da177e4SLinus Torvalds #define CAPTURE_POINTER		0x12		/* Capture buffer pointer. Sample currently in ADC */
931da177e4SLinus Torvalds #define CAPTURE_FIFO_POINTER	0x13		/* Capture FIFO pointer and number of valid sound samples in cache */
941da177e4SLinus Torvalds #define CAPTURE_P16V_VOLUME1	0x14		/* Low: Capture volume 0xXXXX3030 */
951da177e4SLinus Torvalds #define CAPTURE_P16V_VOLUME2	0x15		/* High:Has no effect on capture volume */
961da177e4SLinus Torvalds #define CAPTURE_P16V_SOURCE     0x16            /* P16V source select. Set to 0x0700E4E5 for AC97 CAPTURE */
971da177e4SLinus Torvalds 						/* [0:1] Capture input 0 channel select. 0 = Capture output 0.
981da177e4SLinus Torvalds 						 *                                       1 = Capture output 1.
991da177e4SLinus Torvalds 						 *                                       2 = Capture output 2.
1001da177e4SLinus Torvalds 						 *                                       3 = Capture output 3.
1011da177e4SLinus Torvalds 						 * [3:2] Capture input 1 channel select. 0 = Capture output 0.
1021da177e4SLinus Torvalds 						 *                                       1 = Capture output 1.
1031da177e4SLinus Torvalds 						 *                                       2 = Capture output 2.
1041da177e4SLinus Torvalds 						 *                                       3 = Capture output 3.
1051da177e4SLinus Torvalds 						 * [5:4] Capture input 2 channel select. 0 = Capture output 0.
1061da177e4SLinus Torvalds 						 *                                       1 = Capture output 1.
1071da177e4SLinus Torvalds 						 *                                       2 = Capture output 2.
1081da177e4SLinus Torvalds 						 *                                       3 = Capture output 3.
1091da177e4SLinus Torvalds 						 * [7:6] Capture input 3 channel select. 0 = Capture output 0.
1101da177e4SLinus Torvalds 						 *                                       1 = Capture output 1.
1111da177e4SLinus Torvalds 						 *                                       2 = Capture output 2.
1121da177e4SLinus Torvalds 						 *                                       3 = Capture output 3.
1131da177e4SLinus Torvalds 						 * [9:8] Playback input 0 channel select. 0 = Play output 0.
1141da177e4SLinus Torvalds 						 *                                        1 = Play output 1.
1151da177e4SLinus Torvalds 						 *                                        2 = Play output 2.
1161da177e4SLinus Torvalds 						 *                                        3 = Play output 3.
1171da177e4SLinus Torvalds 						 * [11:10] Playback input 1 channel select. 0 = Play output 0.
1181da177e4SLinus Torvalds 						 *                                          1 = Play output 1.
1191da177e4SLinus Torvalds 						 *                                          2 = Play output 2.
1201da177e4SLinus Torvalds 						 *                                          3 = Play output 3.
1211da177e4SLinus Torvalds 						 * [13:12] Playback input 2 channel select. 0 = Play output 0.
1221da177e4SLinus Torvalds 						 *                                          1 = Play output 1.
1231da177e4SLinus Torvalds 						 *                                          2 = Play output 2.
1241da177e4SLinus Torvalds 						 *                                          3 = Play output 3.
1251da177e4SLinus Torvalds 						 * [15:14] Playback input 3 channel select. 0 = Play output 0.
1261da177e4SLinus Torvalds 						 *                                          1 = Play output 1.
1271da177e4SLinus Torvalds 						 *                                          2 = Play output 2.
1281da177e4SLinus Torvalds 						 *                                          3 = Play output 3.
1291da177e4SLinus Torvalds 						 * [19:16] Playback mixer output enable. 1 bit per channel.
1301da177e4SLinus Torvalds 						 * [23:20] Capture mixer output enable. 1 bit per channel.
1311da177e4SLinus Torvalds 						 * [26:24] FX engine channel capture 0 = 0x60-0x67.
1321da177e4SLinus Torvalds 						 *                                   1 = 0x68-0x6f.
1331da177e4SLinus Torvalds 						 *                                   2 = 0x70-0x77.
1341da177e4SLinus Torvalds 						 *                                   3 = 0x78-0x7f.
1351da177e4SLinus Torvalds 						 *                                   4 = 0x80-0x87.
1361da177e4SLinus Torvalds 						 *                                   5 = 0x88-0x8f.
1371da177e4SLinus Torvalds 						 *                                   6 = 0x90-0x97.
1381da177e4SLinus Torvalds 						 *                                   7 = 0x98-0x9f.
1391da177e4SLinus Torvalds 						 * [31:27] Not used.
1401da177e4SLinus Torvalds 						 */
1411da177e4SLinus Torvalds 
1421da177e4SLinus Torvalds 						/* 0x1 = capture on.
1431da177e4SLinus Torvalds 						 * 0x100 = capture off.
1441da177e4SLinus Torvalds 						 * 0x200 = capture off.
1451da177e4SLinus Torvalds 						 * 0x1000 = capture off.
1461da177e4SLinus Torvalds 						 */
1471da177e4SLinus Torvalds #define CAPTURE_RATE_STATUS		0x17		/* Capture sample rate. Read only */
1481da177e4SLinus Torvalds 						/* [15:0] Not used.
1491da177e4SLinus Torvalds 						 * [18:16] Channel 0 Detected sample rate. 0 - 44.1khz
1501da177e4SLinus Torvalds 						 *                               1 - 48 khz
1511da177e4SLinus Torvalds 						 *                               2 - 96 khz
1521da177e4SLinus Torvalds 						 *                               3 - 192 khz
1531da177e4SLinus Torvalds 						 *                               7 - undefined rate.
1541da177e4SLinus Torvalds 						 * [19] Channel 0. 1 - Valid, 0 - Not Valid.
1551da177e4SLinus Torvalds 						 * [22:20] Channel 1 Detected sample rate.
1561da177e4SLinus Torvalds 						 * [23] Channel 1. 1 - Valid, 0 - Not Valid.
1571da177e4SLinus Torvalds 						 * [26:24] Channel 2 Detected sample rate.
1581da177e4SLinus Torvalds 						 * [27] Channel 2. 1 - Valid, 0 - Not Valid.
1591da177e4SLinus Torvalds 						 * [30:28] Channel 3 Detected sample rate.
1601da177e4SLinus Torvalds 						 * [31] Channel 3. 1 - Valid, 0 - Not Valid.
1611da177e4SLinus Torvalds 						 */
1621da177e4SLinus Torvalds /* 0x18 - 0x1f unused */
1631da177e4SLinus Torvalds #define PLAYBACK_LAST_SAMPLE    0x20		/* The sample currently being played. Read only */
1641da177e4SLinus Torvalds /* 0x21 - 0x3f unused */
1651da177e4SLinus Torvalds #define BASIC_INTERRUPT         0x40		/* Used by both playback and capture interrupt handler */
1661da177e4SLinus Torvalds 						/* Playback (0x1<<channel_id) Don't touch high 16bits. */
1671da177e4SLinus Torvalds 						/* Capture  (0x100<<channel_id). not tested */
1681da177e4SLinus Torvalds 						/* Start Playback [3:0] (one bit per channel)
1691da177e4SLinus Torvalds 						 * Start Capture [11:8] (one bit per channel)
1701da177e4SLinus Torvalds 						 * Record source select for channel 0 [18:16]
1711da177e4SLinus Torvalds 						 * Record source select for channel 1 [22:20]
1721da177e4SLinus Torvalds 						 * Record source select for channel 2 [26:24]
1731da177e4SLinus Torvalds 						 * Record source select for channel 3 [30:28]
1741da177e4SLinus Torvalds 						 * 0 - SPDIF channel.
1751da177e4SLinus Torvalds 						 * 1 - I2S channel.
1761da177e4SLinus Torvalds 						 * 2 - SRC48 channel.
1771da177e4SLinus Torvalds 						 * 3 - SRCMulti_SPDIF channel.
1781da177e4SLinus Torvalds 						 * 4 - SRCMulti_I2S channel.
1791da177e4SLinus Torvalds 						 * 5 - SPDIF channel.
1801da177e4SLinus Torvalds 						 * 6 - fxengine capture.
1811da177e4SLinus Torvalds 						 * 7 - AC97 capture.
1821da177e4SLinus Torvalds 						 */
1831da177e4SLinus Torvalds 						/* Default 41110000.
1841da177e4SLinus Torvalds 						 * Writing 0xffffffff hangs the PC.
1851da177e4SLinus Torvalds 						 * Writing 0xffff0000 -> 77770000 so it must be some sort of route.
1861da177e4SLinus Torvalds 						 * bit 0x1 starts DMA playback on channel_id 0
1871da177e4SLinus Torvalds 						 */
1881da177e4SLinus Torvalds /* 0x41,42 take values from 0 - 0xffffffff, but have no effect on playback */
1891da177e4SLinus Torvalds /* 0x43,0x48 do not remember settings */
1901da177e4SLinus Torvalds /* 0x41-45 unused */
1911da177e4SLinus Torvalds #define WATERMARK            0x46		/* Test bit to indicate cache level usage */
1921da177e4SLinus Torvalds 						/* Values it can have while playing on channel 0.
1931da177e4SLinus Torvalds 						 * 0000f000, 0000f004, 0000f008, 0000f00c.
1941da177e4SLinus Torvalds 						 * Readonly.
1951da177e4SLinus Torvalds 						 */
1961da177e4SLinus Torvalds /* 0x47-0x4f unused */
1971da177e4SLinus Torvalds /* 0x50-0x5f Capture cache data */
1981da177e4SLinus Torvalds #define SRCSel			0x60            /* SRCSel. Default 0x4. Bypass P16V 0x14 */
1991da177e4SLinus Torvalds 						/* [0] 0 = 10K2 audio, 1 = SRC48 mixer output.
2001da177e4SLinus Torvalds 						 * [2] 0 = 10K2 audio, 1 = SRCMulti SPDIF mixer output.
2011da177e4SLinus Torvalds 						 * [4] 0 = 10K2 audio, 1 = SRCMulti I2S mixer output.
2021da177e4SLinus Torvalds 						 */
2031da177e4SLinus Torvalds 						/* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */
2041da177e4SLinus Torvalds 						/* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */
2051da177e4SLinus Torvalds 						/* SRC48 and SRCMULTI sample rate select and output select. */
2061da177e4SLinus Torvalds 						/* 0xffffffff -> 0xC0000015
2071da177e4SLinus Torvalds 						 * 0xXXXXXXX4 = Enable Front Left/Right
2081da177e4SLinus Torvalds 						 * Enable PCMs
2091da177e4SLinus Torvalds 						 */
2101da177e4SLinus Torvalds 
2111da177e4SLinus Torvalds /* 0x61 -> 0x6c are Volume controls */
2121da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER1  0x61		/* SRC48 Low to mixer input volume control. */
2131da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER2  0x62		/* SRC48 High to mixer input volume control. */
2141da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER3  0x63		/* SRCMULTI SPDIF Low to mixer input volume control. */
2151da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER4  0x64		/* SRCMULTI SPDIF High to mixer input volume control. */
2161da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER5  0x65		/* SRCMULTI I2S Low to mixer input volume control. */
2171da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER6  0x66		/* SRCMULTI I2S High to mixer input volume control. */
2181da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER7  0x67		/* P16V Low to SRCMULTI SPDIF mixer input volume control. */
2191da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER8  0x68		/* P16V High to SRCMULTI SPDIF mixer input volume control. */
2201da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER9  0x69		/* P16V Low to SRCMULTI I2S mixer input volume control. */
2211da177e4SLinus Torvalds 						/* 0xXXXX3030 = PCM0 Volume (Front).
2221da177e4SLinus Torvalds 						 * 0x3030XXXX = PCM1 Volume (Center)
2231da177e4SLinus Torvalds 						 */
2241da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER10  0x6a		/* P16V High to SRCMULTI I2S mixer input volume control. */
2251da177e4SLinus Torvalds 						/* 0x3030XXXX = PCM3 Volume (Rear). */
2261da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER11  0x6b		/* E10K2 Low to SRC48 mixer input volume control. */
2271da177e4SLinus Torvalds #define PLAYBACK_VOLUME_MIXER12 0x6c		/* E10K2 High to SRC48 mixer input volume control. */
2281da177e4SLinus Torvalds 
2291da177e4SLinus Torvalds #define SRC48_ENABLE            0x6d            /* SRC48 input audio enable */
2301da177e4SLinus Torvalds 						/* SRC48 converts samples rates 44.1, 48, 96, 192 to 48 khz. */
2311da177e4SLinus Torvalds 						/* [23:16] The corresponding P16V channel to SRC48 enabled if == 1.
2321da177e4SLinus Torvalds 						 * [31:24] The corresponding E10K2 channel to SRC48 enabled.
2331da177e4SLinus Torvalds 						 */
2341da177e4SLinus Torvalds #define SRCMULTI_ENABLE         0x6e            /* SRCMulti input audio enable. Default 0xffffffff */
2351da177e4SLinus Torvalds 						/* SRCMulti converts 48khz samples rates to 44.1, 48, 96, 192 to 48. */
2361da177e4SLinus Torvalds 						/* [7:0] The corresponding P16V channel to SRCMulti_I2S enabled if == 1.
2371da177e4SLinus Torvalds 						 * [15:8] The corresponding E10K2 channel to SRCMulti I2S enabled.
2381da177e4SLinus Torvalds 						 * [23:16] The corresponding P16V channel to SRCMulti SPDIF enabled.
2391da177e4SLinus Torvalds 						 * [31:24] The corresponding E10K2 channel to SRCMulti SPDIF enabled.
2401da177e4SLinus Torvalds 						 */
2411da177e4SLinus Torvalds 						/* Bypass P16V 0xff00ff00
2421da177e4SLinus Torvalds 						 * Bitmap. 0 = Off, 1 = On.
2431da177e4SLinus Torvalds 						 * P16V playback outputs:
2441da177e4SLinus Torvalds 						 * 0xXXXXXXX1 = PCM0 Left. (Front)
2451da177e4SLinus Torvalds 						 * 0xXXXXXXX2 = PCM0 Right.
2461da177e4SLinus Torvalds 						 * 0xXXXXXXX4 = PCM1 Left. (Center/LFE)
2471da177e4SLinus Torvalds 						 * 0xXXXXXXX8 = PCM1 Right.
2481da177e4SLinus Torvalds 						 * 0xXXXXXX1X = PCM2 Left. (Unknown)
2491da177e4SLinus Torvalds 						 * 0xXXXXXX2X = PCM2 Right.
2501da177e4SLinus Torvalds 						 * 0xXXXXXX4X = PCM3 Left. (Rear)
2511da177e4SLinus Torvalds 						 * 0xXXXXXX8X = PCM3 Right.
2521da177e4SLinus Torvalds 						 */
2531da177e4SLinus Torvalds #define AUDIO_OUT_ENABLE        0x6f            /* Default: 000100FF */
2541da177e4SLinus Torvalds 						/* [3:0] Does something, but not documented. Probably capture enable.
2551da177e4SLinus Torvalds 						 * [7:4] Playback channels enable. not documented.
2561da177e4SLinus Torvalds 						 * [16] AC97 output enable if == 1
2571da177e4SLinus Torvalds 						 * [30] 0 = SRCMulti_I2S input from fxengine 0x68-0x6f.
2581da177e4SLinus Torvalds 						 *      1 = SRCMulti_I2S input from SRC48 output.
2591da177e4SLinus Torvalds 						 * [31] 0 = SRCMulti_SPDIF input from fxengine 0x60-0x67.
2601da177e4SLinus Torvalds 						 *      1 = SRCMulti_SPDIF input from SRC48 output.
2611da177e4SLinus Torvalds 						 */
2621da177e4SLinus Torvalds 						/* 0xffffffff -> C00100FF */
2631da177e4SLinus Torvalds 						/* 0 -> Not playback sound, irq still running */
2641da177e4SLinus Torvalds 						/* 0xXXXXXX10 = PCM0 Left/Right On. (Front)
2651da177e4SLinus Torvalds 						 * 0xXXXXXX20 = PCM1 Left/Right On. (Center/LFE)
2661da177e4SLinus Torvalds 						 * 0xXXXXXX40 = PCM2 Left/Right On. (Unknown)
2671da177e4SLinus Torvalds 						 * 0xXXXXXX80 = PCM3 Left/Right On. (Rear)
2681da177e4SLinus Torvalds 						 */
2691da177e4SLinus Torvalds #define PLAYBACK_SPDIF_SELECT     0x70          /* Default: 12030F00 */
2701da177e4SLinus Torvalds 						/* 0xffffffff -> 3FF30FFF */
2711da177e4SLinus Torvalds 						/* 0x00000001 pauses stream/irq fail. */
2721da177e4SLinus Torvalds 						/* All other bits do not effect playback */
2731da177e4SLinus Torvalds #define PLAYBACK_SPDIF_SRC_SELECT 0x71          /* Default: 0000E4E4 */
2741da177e4SLinus Torvalds 						/* 0xffffffff -> F33FFFFF */
2751da177e4SLinus Torvalds 						/* All bits do not effect playback */
2761da177e4SLinus Torvalds #define PLAYBACK_SPDIF_USER_DATA0 0x72		/* SPDIF out user data 0 */
2771da177e4SLinus Torvalds #define PLAYBACK_SPDIF_USER_DATA1 0x73		/* SPDIF out user data 1 */
2781da177e4SLinus Torvalds /* 0x74-0x75 unknown */
2791da177e4SLinus Torvalds #define CAPTURE_SPDIF_CONTROL	0x76		/* SPDIF in control setting */
2801da177e4SLinus Torvalds #define CAPTURE_SPDIF_STATUS	0x77		/* SPDIF in status */
2811da177e4SLinus Torvalds #define CAPURE_SPDIF_USER_DATA0 0x78		/* SPDIF in user data 0 */
2821da177e4SLinus Torvalds #define CAPURE_SPDIF_USER_DATA1 0x79		/* SPDIF in user data 1 */
2831da177e4SLinus Torvalds #define CAPURE_SPDIF_USER_DATA2 0x7a		/* SPDIF in user data 2 */
2841da177e4SLinus Torvalds 
285