Lines Matching refs:sbits
2231 static unsigned short convert_from_spdif_status(unsigned int sbits) in convert_from_spdif_status() argument
2235 if (sbits & IEC958_AES0_PROFESSIONAL) in convert_from_spdif_status()
2237 if (sbits & IEC958_AES0_NONAUDIO) in convert_from_spdif_status()
2239 if (sbits & IEC958_AES0_PROFESSIONAL) { in convert_from_spdif_status()
2240 if ((sbits & IEC958_AES0_PRO_EMPHASIS) == in convert_from_spdif_status()
2244 if ((sbits & IEC958_AES0_CON_EMPHASIS) == in convert_from_spdif_status()
2247 if (!(sbits & IEC958_AES0_CON_NOT_COPYRIGHT)) in convert_from_spdif_status()
2249 if (sbits & (IEC958_AES1_CON_ORIGINAL << 8)) in convert_from_spdif_status()
2251 val |= sbits & (IEC958_AES1_CON_CATEGORY << 8); in convert_from_spdif_status()
2260 unsigned int sbits = 0; in convert_to_spdif_status() local
2263 sbits |= IEC958_AES0_NONAUDIO; in convert_to_spdif_status()
2265 sbits |= IEC958_AES0_PROFESSIONAL; in convert_to_spdif_status()
2266 if (sbits & IEC958_AES0_PROFESSIONAL) { in convert_to_spdif_status()
2268 sbits |= IEC958_AES0_PRO_EMPHASIS_5015; in convert_to_spdif_status()
2271 sbits |= IEC958_AES0_CON_EMPHASIS_5015; in convert_to_spdif_status()
2273 sbits |= IEC958_AES0_CON_NOT_COPYRIGHT; in convert_to_spdif_status()
2275 sbits |= (IEC958_AES1_CON_ORIGINAL << 8); in convert_to_spdif_status()
2276 sbits |= val & (0x7f << 8); in convert_to_spdif_status()
2278 return sbits; in convert_to_spdif_status()
2654 unsigned int sbits; in snd_hda_spdif_in_status_get() local
2658 sbits = convert_to_spdif_status(val); in snd_hda_spdif_in_status_get()
2659 ucontrol->value.iec958.status[0] = sbits; in snd_hda_spdif_in_status_get()
2660 ucontrol->value.iec958.status[1] = sbits >> 8; in snd_hda_spdif_in_status_get()
2661 ucontrol->value.iec958.status[2] = sbits >> 16; in snd_hda_spdif_in_status_get()
2662 ucontrol->value.iec958.status[3] = sbits >> 24; in snd_hda_spdif_in_status_get()