Lines Matching refs:diga

24 SND_CS8403_DECL void SND_CS8403_DECODE(struct snd_aes_iec958 *diga, unsigned char bits)  in SND_CS8403_DECODE()  argument
28 diga->status[0] |= IEC958_AES0_NONAUDIO; in SND_CS8403_DECODE()
30 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; 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()
36 diga->status[1] |= IEC958_AES1_CON_ORIGINAL; 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()
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()
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()
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()
63 diga->status[1] |= IEC958_AES1_PRO_MODE_STEREOPHONIC; in SND_CS8403_DECODE()
67 SND_CS8403_DECL unsigned char SND_CS8403_ENCODE(struct snd_aes_iec958 *diga) in SND_CS8403_ENCODE() argument
71 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { in SND_CS8403_ENCODE()
73 if (diga->status[0] & IEC958_AES0_NONAUDIO) in SND_CS8403_ENCODE()
77 if (diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT) in SND_CS8403_ENCODE()
81 switch (diga->status[0] & IEC958_AES0_CON_EMPHASIS) { in SND_CS8403_ENCODE()
86 if (diga->status[1] & IEC958_AES1_CON_ORIGINAL) in SND_CS8403_ENCODE()
90 if ((diga->status[1] & IEC958_AES1_CON_CATEGORY) == IEC958_AES1_CON_GENERAL) in SND_CS8403_ENCODE()
93 switch(diga->status[1] & IEC958_AES1_CON_MAGNETIC_MASK) { in SND_CS8403_ENCODE()
103 switch (diga->status[3] & IEC958_AES3_CON_FS) { in SND_CS8403_ENCODE()
111 if (diga->status[0] & IEC958_AES0_NONAUDIO) in SND_CS8403_ENCODE()
116 switch (diga->status[0] & IEC958_AES0_PRO_FS) { in SND_CS8403_ENCODE()
123 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { in SND_CS8403_ENCODE()
130 switch (diga->status[1] & IEC958_AES1_PRO_MODE) { in SND_CS8403_ENCODE()
154 SND_CS8404_DECL void SND_CS8404_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) in SND_CS8404_DECODE() argument
158 diga->status[0] |= IEC958_AES0_CON_NOT_COPYRIGHT; in SND_CS8404_DECODE()
160 diga->status[0] |= IEC958_AES0_CON_EMPHASIS_5015; in SND_CS8404_DECODE()
162 diga->status[1] |= IEC958_AES1_CON_ORIGINAL; 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()
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()
175 diga->status[0] |= IEC958_AES0_NONAUDIO; 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()
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()
189 diga->status[1] |= IEC958_AES1_PRO_MODE_STEREOPHONIC; in SND_CS8404_DECODE()
193 SND_CS8404_DECL unsigned char SND_CS8404_ENCODE(struct snd_aes_iec958 *diga) in SND_CS8404_ENCODE() argument
197 if (!(diga->status[0] & IEC958_AES0_PROFESSIONAL)) { in SND_CS8404_ENCODE()
199 if (!(diga->status[0] & IEC958_AES0_CON_NOT_COPYRIGHT)) in SND_CS8404_ENCODE()
201 if ((diga->status[0] & IEC958_AES0_CON_EMPHASIS) == IEC958_AES0_CON_EMPHASIS_NONE) in SND_CS8404_ENCODE()
203 if (!(diga->status[1] & IEC958_AES1_CON_ORIGINAL)) in SND_CS8404_ENCODE()
205 if ((diga->status[1] & IEC958_AES1_CON_CATEGORY) == IEC958_AES1_CON_GENERAL) in SND_CS8404_ENCODE()
207 switch (diga->status[3] & IEC958_AES3_CON_FS) { in SND_CS8404_ENCODE()
215 if (!(diga->status[0] & IEC958_AES0_NONAUDIO)) in SND_CS8404_ENCODE()
217 switch (diga->status[0] & IEC958_AES0_PRO_FS) { in SND_CS8404_ENCODE()
224 switch (diga->status[0] & IEC958_AES0_PRO_EMPHASIS) { in SND_CS8404_ENCODE()
231 switch (diga->status[1] & IEC958_AES1_PRO_MODE) { in SND_CS8404_ENCODE()