Lines Matching +full:channel +full:- +full:4

1 // SPDX-License-Identifier: GPL-2.0-only
13 * snd_pcm_create_iec958_consumer_default - create default consumer format IEC958 channel status
14 * @cs: channel status buffer, at least four bytes
15 * @len: length of channel status buffer
17 * Create the consumer format channel status data in @cs of maximum size
18 * @len. When relevant, the configuration-dependant bits will be set as
31 if (len < 4) in snd_pcm_create_iec958_consumer_default()
32 return -EINVAL; in snd_pcm_create_iec958_consumer_default()
41 if (len > 4) in snd_pcm_create_iec958_consumer_default()
42 cs[4] = IEC958_AES4_CON_WORDLEN_NOTID; in snd_pcm_create_iec958_consumer_default()
51 if (len < 4) in fill_iec958_consumer()
52 return -EINVAL; in fill_iec958_consumer()
80 return -EINVAL; in fill_iec958_consumer()
87 if (len > 4 && in fill_iec958_consumer()
88 (cs[4] & IEC958_AES4_CON_WORDLEN) == IEC958_AES4_CON_WORDLEN_NOTID) { in fill_iec958_consumer()
103 case 32: /* Assume 24-bit width for 32-bit samples. */ in fill_iec958_consumer()
109 return -EINVAL; in fill_iec958_consumer()
112 cs[4] &= ~IEC958_AES4_CON_WORDLEN; in fill_iec958_consumer()
113 cs[4] |= ws; in fill_iec958_consumer()
120 * snd_pcm_fill_iec958_consumer - Fill consumer format IEC958 channel status
121 * @runtime: pcm runtime structure with ->rate filled in
122 * @cs: channel status buffer, at least four bytes
123 * @len: length of channel status buffer
136 return fill_iec958_consumer(runtime->rate, in snd_pcm_fill_iec958_consumer()
137 snd_pcm_format_width(runtime->format), in snd_pcm_fill_iec958_consumer()
143 * snd_pcm_fill_iec958_consumer_hw_params - Fill consumer format IEC958 channel status
145 * @cs: channel status buffer, at least four bytes
146 * @len: length of channel status buffer
164 * snd_pcm_create_iec958_consumer - create consumer format IEC958 channel status
165 * @runtime: pcm runtime structure with ->rate filled in
166 * @cs: channel status buffer, at least four bytes
167 * @len: length of channel status buffer
169 * Create the consumer format channel status data in @cs of maximum size
190 * snd_pcm_create_iec958_consumer_hw_params - create IEC958 channel status
192 * @cs: channel status buffer, at least four bytes
193 * @len: length of channel status buffer
195 * Create the consumer format channel status data in @cs of maximum size