Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / sound / pci / oxygen / pcm1796.h
blob34d07dd2d22e506562f28587f5c17791b93ab2ac
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef PCM1796_H_INCLUDED
3 #define PCM1796_H_INCLUDED
5 /* register 16 */
6 #define PCM1796_ATL_MASK 0xff
7 /* register 17 */
8 #define PCM1796_ATR_MASK 0xff
9 /* register 18 */
10 #define PCM1796_MUTE 0x01
11 #define PCM1796_DME 0x02
12 #define PCM1796_DMF_MASK 0x0c
13 #define PCM1796_DMF_DISABLED 0x00
14 #define PCM1796_DMF_48 0x04
15 #define PCM1796_DMF_441 0x08
16 #define PCM1796_DMF_32 0x0c
17 #define PCM1796_FMT_MASK 0x70
18 #define PCM1796_FMT_16_RJUST 0x00
19 #define PCM1796_FMT_20_RJUST 0x10
20 #define PCM1796_FMT_24_RJUST 0x20
21 #define PCM1796_FMT_24_LJUST 0x30
22 #define PCM1796_FMT_16_I2S 0x40
23 #define PCM1796_FMT_24_I2S 0x50
24 #define PCM1796_ATLD 0x80
25 /* register 19 */
26 #define PCM1796_INZD 0x01
27 #define PCM1796_FLT_MASK 0x02
28 #define PCM1796_FLT_SHARP 0x00
29 #define PCM1796_FLT_SLOW 0x02
30 #define PCM1796_DFMS 0x04
31 #define PCM1796_OPE 0x10
32 #define PCM1796_ATS_MASK 0x60
33 #define PCM1796_ATS_1 0x00
34 #define PCM1796_ATS_2 0x20
35 #define PCM1796_ATS_4 0x40
36 #define PCM1796_ATS_8 0x60
37 #define PCM1796_REV 0x80
38 /* register 20 */
39 #define PCM1796_OS_MASK 0x03
40 #define PCM1796_OS_64 0x00
41 #define PCM1796_OS_32 0x01
42 #define PCM1796_OS_128 0x02
43 #define PCM1796_CHSL_MASK 0x04
44 #define PCM1796_CHSL_LEFT 0x00
45 #define PCM1796_CHSL_RIGHT 0x04
46 #define PCM1796_MONO 0x08
47 #define PCM1796_DFTH 0x10
48 #define PCM1796_DSD 0x20
49 #define PCM1796_SRST 0x40
50 /* register 21 */
51 #define PCM1796_PCMZ 0x01
52 #define PCM1796_DZ_MASK 0x06
53 /* register 22 */
54 #define PCM1796_ZFGL 0x01
55 #define PCM1796_ZFGR 0x02
56 /* register 23 */
57 #define PCM1796_ID_MASK 0x1f
59 #endif