Home
last modified time | relevance | path

Searched refs:diga (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/include/sound/
Dcs8403.h24 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()
[all …]
/Linux-v5.10/sound/pci/ice1712/
Dice1724.c1593 static unsigned int encode_spdif_bits(struct snd_aes_iec958 *diga) in encode_spdif_bits() argument
1597 val = diga->status[0] & 0x03; /* professional, non-audio */ in encode_spdif_bits()
1600 if ((diga->status[0] & IEC958_AES0_PRO_EMPHASIS) == in encode_spdif_bits()
1603 rbits = (diga->status[4] >> 3) & 0x0f; in encode_spdif_bits()
1612 switch (diga->status[0] & IEC958_AES0_PRO_FS) { in encode_spdif_bits()
1625 val |= diga->status[1] & 0x04; /* copyright */ in encode_spdif_bits()
1626 if ((diga->status[0] & IEC958_AES0_CON_EMPHASIS) == in encode_spdif_bits()
1629 val |= (unsigned int)(diga->status[1] & 0x3f) << 4; /* category */ in encode_spdif_bits()
1630 val |= (unsigned int)(diga->status[3] & IEC958_AES3_CON_FS) << 12; /* fs */ in encode_spdif_bits()
1635 static void decode_spdif_bits(struct snd_aes_iec958 *diga, unsigned int val) in decode_spdif_bits() argument
[all …]