Go to the documentation of this file. 1 #ifndef __SOUND_CS8403_H
2 #define __SOUND_CS8403_H
28 #ifndef SND_CS8403_DECL
29 #define SND_CS8403_DECL static
31 #ifndef SND_CS8403_DECODE
32 #define SND_CS8403_DECODE snd_cs8403_decode_spdif_bits
34 #ifndef SND_CS8403_ENCODE
35 #define SND_CS8403_ENCODE snd_cs8403_encode_spdif_bits
39 SND_CS8403_DECL
void SND_CS8403_DECODE(
struct snd_aes_iec958 *diga,
unsigned char bits)
46 switch (bits & 0x10) {
52 switch (bits & 0x60) {
58 switch (bits & 0x06) {
65 switch (bits & 0x18) {
71 switch (bits & 0x60) {
82 SND_CS8403_DECL
unsigned char SND_CS8403_ENCODE(
struct snd_aes_iec958 *diga)
148 default: bits |= 0x80;
break;
158 #ifndef SND_CS8404_DECL
159 #define SND_CS8404_DECL static
161 #ifndef SND_CS8404_DECODE
162 #define SND_CS8404_DECODE snd_cs8404_decode_spdif_bits
164 #ifndef SND_CS8404_ENCODE
165 #define SND_CS8404_ENCODE snd_cs8404_encode_spdif_bits
169 SND_CS8404_DECL
void SND_CS8404_DECODE(
struct snd_aes_iec958 *diga,
unsigned char bits)
178 switch (bits & 0x03) {
182 switch (bits & 0x06) {
191 switch (bits & 0x60) {
197 switch (bits & 0x03) {
208 SND_CS8404_DECL
unsigned char SND_CS8404_ENCODE(
struct snd_aes_iec958 *diga)
249 default: bits |= 0x80;
break;