Lines Matching +full:cs +full:- +full:3
1 // SPDX-License-Identifier: GPL-2.0-only
13 u8 *cs, size_t len) in create_iec958_consumer() argument
18 return -EINVAL; in create_iec958_consumer()
43 return -EINVAL; in create_iec958_consumer()
59 case 32: /* Assume 24-bit width for 32-bit samples. */ in create_iec958_consumer()
65 return -EINVAL; in create_iec958_consumer()
69 memset(cs, 0, len); in create_iec958_consumer()
71 cs[0] = IEC958_AES0_CON_NOT_COPYRIGHT | IEC958_AES0_CON_EMPHASIS_NONE; in create_iec958_consumer()
72 cs[1] = IEC958_AES1_CON_GENERAL; in create_iec958_consumer()
73 cs[2] = IEC958_AES2_CON_SOURCE_UNSPEC | IEC958_AES2_CON_CHANNEL_UNSPEC; in create_iec958_consumer()
74 cs[3] = IEC958_AES3_CON_CLOCK_1000PPM | fs; in create_iec958_consumer()
77 cs[4] = ws; in create_iec958_consumer()
83 * snd_pcm_create_iec958_consumer - create consumer format IEC958 channel status
84 * @runtime: pcm runtime structure with ->rate filled in
85 * @cs: channel status buffer, at least four bytes
88 * Create the consumer format channel status data in @cs of maximum size
95 int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, in snd_pcm_create_iec958_consumer() argument
98 return create_iec958_consumer(runtime->rate, in snd_pcm_create_iec958_consumer()
99 snd_pcm_format_width(runtime->format), in snd_pcm_create_iec958_consumer()
100 cs, len); in snd_pcm_create_iec958_consumer()
105 * snd_pcm_create_iec958_consumer_hw_params - create IEC958 channel status
107 * @cs: channel status buffer, at least four bytes
110 * Create the consumer format channel status data in @cs of maximum size
118 u8 *cs, size_t len) in snd_pcm_create_iec958_consumer_hw_params() argument
121 cs, len); in snd_pcm_create_iec958_consumer_hw_params()