Lines Matching +full:0 +full:x60

26 	if (bits & 0x01) {	/* consumer */  in SND_CS8403_DECODE()
27 if (!(bits & 0x02)) in SND_CS8403_DECODE()
28 diga->status[0] |= IEC958_AES0_NONAUDIO; in SND_CS8403_DECODE()
29 if (!(bits & 0x08)) in SND_CS8403_DECODE()
30 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in SND_CS8403_DECODE()
31 switch (bits & 0x10) { in SND_CS8403_DECODE()
32 case 0x10: diga->status[0] |= IEC958_AES0_CON_EMPHASIS_NONE; break; in SND_CS8403_DECODE()
33 case 0x00: diga->status[0] |= IEC958_AES0_CON_EMPHASIS_5015; break; in SND_CS8403_DECODE()
35 if (!(bits & 0x80)) in SND_CS8403_DECODE()
37 switch (bits & 0x60) { in SND_CS8403_DECODE()
38 case 0x00: diga->status[1] |= IEC958_AES1_CON_MAGNETIC_ID; break; in SND_CS8403_DECODE()
39 case 0x20: diga->status[1] |= IEC958_AES1_CON_DIGDIGCONV_ID; break; in SND_CS8403_DECODE()
40 case 0x40: diga->status[1] |= IEC958_AES1_CON_LASEROPT_ID; break; in SND_CS8403_DECODE()
41 case 0x60: diga->status[1] |= IEC958_AES1_CON_GENERAL; break; in SND_CS8403_DECODE()
43 switch (bits & 0x06) { in SND_CS8403_DECODE()
44 case 0x00: diga->status[3] |= IEC958_AES3_CON_FS_44100; break; in SND_CS8403_DECODE()
45 case 0x02: diga->status[3] |= IEC958_AES3_CON_FS_48000; break; in SND_CS8403_DECODE()
46 case 0x04: diga->status[3] |= IEC958_AES3_CON_FS_32000; break; in SND_CS8403_DECODE()
49 diga->status[0] = IEC958_AES0_PROFESSIONAL; in SND_CS8403_DECODE()
50 switch (bits & 0x18) { in SND_CS8403_DECODE()
51 case 0x00: diga->status[0] |= IEC958_AES0_PRO_FS_32000; break; in SND_CS8403_DECODE()
52 case 0x10: diga->status[0] |= IEC958_AES0_PRO_FS_44100; break; in SND_CS8403_DECODE()
53 case 0x08: diga->status[0] |= IEC958_AES0_PRO_FS_48000; break; in SND_CS8403_DECODE()
54 case 0x18: diga->status[0] |= IEC958_AES0_PRO_FS_NOTID; break; in SND_CS8403_DECODE()
56 switch (bits & 0x60) { in SND_CS8403_DECODE()
57 case 0x20: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NONE; break; in SND_CS8403_DECODE()
58 case 0x40: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_5015; break; in SND_CS8403_DECODE()
59 case 0x00: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_CCITT; break; in SND_CS8403_DECODE()
60 case 0x60: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NOTID; break; in SND_CS8403_DECODE()
62 if (bits & 0x80) in SND_CS8403_DECODE()
71 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { in SND_CS8403_ENCODE()
72 bits = 0x01; /* consumer mode */ in SND_CS8403_ENCODE()
73 if (diga->status[0] & IEC958_AES0_NONAUDIO) in SND_CS8403_ENCODE()
74 bits &= ~0x02; in SND_CS8403_ENCODE()
76 bits |= 0x02; in SND_CS8403_ENCODE()
77 if (diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) in SND_CS8403_ENCODE()
78 bits &= ~0x08; in SND_CS8403_ENCODE()
80 bits |= 0x08; in SND_CS8403_ENCODE()
81 switch (diga->status[0] & IEC958_AES0_CON_EMPHASIS) { in SND_CS8403_ENCODE()
83 case IEC958_AES0_CON_EMPHASIS_NONE: bits |= 0x10; break; in SND_CS8403_ENCODE()
84 case IEC958_AES0_CON_EMPHASIS_5015: bits |= 0x00; break; in SND_CS8403_ENCODE()
87 bits &= ~0x80; in SND_CS8403_ENCODE()
89 bits |= 0x80; in SND_CS8403_ENCODE()
91 bits |= 0x60; in SND_CS8403_ENCODE()
95 bits |= 0x00; break; in SND_CS8403_ENCODE()
97 bits |= 0x20; break; in SND_CS8403_ENCODE()
100 bits |= 0x40; break; in SND_CS8403_ENCODE()
105 case IEC958_AES3_CON_FS_44100: bits |= 0x00; break; in SND_CS8403_ENCODE()
106 case IEC958_AES3_CON_FS_48000: bits |= 0x02; break; in SND_CS8403_ENCODE()
107 case IEC958_AES3_CON_FS_32000: bits |= 0x04; break; in SND_CS8403_ENCODE()
110 bits = 0x00; /* professional mode */ in SND_CS8403_ENCODE()
111 if (diga->status[0] & IEC958_AES0_NONAUDIO) in SND_CS8403_ENCODE()
112 bits &= ~0x02; in SND_CS8403_ENCODE()
114 bits |= 0x02; in SND_CS8403_ENCODE()
116 switch (diga->status[0] & IEC958_AES0_PRO_FS) { in SND_CS8403_ENCODE()
117 case IEC958_AES0_PRO_FS_32000: bits |= 0x00; break; in SND_CS8403_ENCODE()
118 case IEC958_AES0_PRO_FS_44100: bits |= 0x10; break; /* 44.1kHz */ in SND_CS8403_ENCODE()
119 case IEC958_AES0_PRO_FS_48000: bits |= 0x08; break; /* 48kHz */ in SND_CS8403_ENCODE()
121 case IEC958_AES0_PRO_FS_NOTID: bits |= 0x18; break; in SND_CS8403_ENCODE()
123 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { in SND_CS8403_ENCODE()
124 case IEC958_AES0_PRO_EMPHASIS_NONE: bits |= 0x20; break; in SND_CS8403_ENCODE()
125 case IEC958_AES0_PRO_EMPHASIS_5015: bits |= 0x40; break; in SND_CS8403_ENCODE()
126 case IEC958_AES0_PRO_EMPHASIS_CCITT: bits |= 0x00; break; in SND_CS8403_ENCODE()
128 case IEC958_AES0_PRO_EMPHASIS_NOTID: bits |= 0x60; break; in SND_CS8403_ENCODE()
132 case IEC958_AES1_PRO_MODE_STEREOPHONIC: bits |= 0x00; break; in SND_CS8403_ENCODE()
133 default: bits |= 0x80; break; in SND_CS8403_ENCODE()
156 if (bits & 0x10) { /* consumer */ in SND_CS8404_DECODE()
157 if (!(bits & 0x20)) in SND_CS8404_DECODE()
158 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in SND_CS8404_DECODE()
159 if (!(bits & 0x40)) in SND_CS8404_DECODE()
160 diga->status[0] |= IEC958_AES0_CON_EMPHASIS_5015; in SND_CS8404_DECODE()
161 if (!(bits & 0x80)) in SND_CS8404_DECODE()
163 switch (bits & 0x03) { in SND_CS8404_DECODE()
164 case 0x00: diga->status[1] |= IEC958_AES1_CON_DAT; break; in SND_CS8404_DECODE()
165 case 0x03: diga->status[1] |= IEC958_AES1_CON_GENERAL; break; in SND_CS8404_DECODE()
167 switch (bits & 0x06) { in SND_CS8404_DECODE()
168 case 0x02: diga->status[3] |= IEC958_AES3_CON_FS_32000; break; in SND_CS8404_DECODE()
169 case 0x04: diga->status[3] |= IEC958_AES3_CON_FS_48000; break; in SND_CS8404_DECODE()
170 case 0x06: diga->status[3] |= IEC958_AES3_CON_FS_44100; break; in SND_CS8404_DECODE()
173 diga->status[0] = IEC958_AES0_PROFESSIONAL; in SND_CS8404_DECODE()
174 if (!(bits & 0x04)) in SND_CS8404_DECODE()
175 diga->status[0] |= IEC958_AES0_NONAUDIO; in SND_CS8404_DECODE()
176 switch (bits & 0x60) { in SND_CS8404_DECODE()
177 case 0x00: diga->status[0] |= IEC958_AES0_PRO_FS_32000; break; in SND_CS8404_DECODE()
178 case 0x40: diga->status[0] |= IEC958_AES0_PRO_FS_44100; break; in SND_CS8404_DECODE()
179 case 0x20: diga->status[0] |= IEC958_AES0_PRO_FS_48000; break; in SND_CS8404_DECODE()
180 case 0x60: diga->status[0] |= IEC958_AES0_PRO_FS_NOTID; break; in SND_CS8404_DECODE()
182 switch (bits & 0x03) { in SND_CS8404_DECODE()
183 case 0x02: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NONE; break; in SND_CS8404_DECODE()
184 case 0x01: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_5015; break; in SND_CS8404_DECODE()
185 case 0x00: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_CCITT; break; in SND_CS8404_DECODE()
186 case 0x03: diga->status[0] |= IEC958_AES0_PRO_EMPHASIS_NOTID; break; in SND_CS8404_DECODE()
188 if (!(bits & 0x80)) in SND_CS8404_DECODE()
197 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { in SND_CS8404_ENCODE()
198 bits = 0x10; /* consumer mode */ in SND_CS8404_ENCODE()
199 if (!(diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT)) in SND_CS8404_ENCODE()
200 bits |= 0x20; in SND_CS8404_ENCODE()
201 if ((diga->status[0] & IEC958_AES0_CON_EMPHASIS) == IEC958_AES0_CON_EMPHASIS_NONE) in SND_CS8404_ENCODE()
202 bits |= 0x40; in SND_CS8404_ENCODE()
204 bits |= 0x80; in SND_CS8404_ENCODE()
206 bits |= 0x03; in SND_CS8404_ENCODE()
209 case IEC958_AES3_CON_FS_44100: bits |= 0x06; break; in SND_CS8404_ENCODE()
210 case IEC958_AES3_CON_FS_48000: bits |= 0x04; break; in SND_CS8404_ENCODE()
211 case IEC958_AES3_CON_FS_32000: bits |= 0x02; break; in SND_CS8404_ENCODE()
214 bits = 0x00; /* professional mode */ in SND_CS8404_ENCODE()
215 if (!(diga->status[0] & IEC958_AES0_NONAUDIO)) in SND_CS8404_ENCODE()
216 bits |= 0x04; in SND_CS8404_ENCODE()
217 switch (diga->status[0] & IEC958_AES0_PRO_FS) { in SND_CS8404_ENCODE()
218 case IEC958_AES0_PRO_FS_32000: bits |= 0x00; break; in SND_CS8404_ENCODE()
219 case IEC958_AES0_PRO_FS_44100: bits |= 0x40; break; /* 44.1kHz */ in SND_CS8404_ENCODE()
220 case IEC958_AES0_PRO_FS_48000: bits |= 0x20; break; /* 48kHz */ in SND_CS8404_ENCODE()
222 case IEC958_AES0_PRO_FS_NOTID: bits |= 0x00; break; in SND_CS8404_ENCODE()
224 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { in SND_CS8404_ENCODE()
225 case IEC958_AES0_PRO_EMPHASIS_NONE: bits |= 0x02; break; in SND_CS8404_ENCODE()
226 case IEC958_AES0_PRO_EMPHASIS_5015: bits |= 0x01; break; in SND_CS8404_ENCODE()
227 case IEC958_AES0_PRO_EMPHASIS_CCITT: bits |= 0x00; break; in SND_CS8404_ENCODE()
229 case IEC958_AES0_PRO_EMPHASIS_NOTID: bits |= 0x03; break; in SND_CS8404_ENCODE()
233 case IEC958_AES1_PRO_MODE_STEREOPHONIC: bits |= 0x00; break; in SND_CS8404_ENCODE()
234 default: bits |= 0x80; break; in SND_CS8404_ENCODE()