• Home
  • Raw
  • Download

Lines Matching +full:stream +full:- +full:mode +full:- +full:support

1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include "packets-buffer.h"
13 * enum cip_flags - describes details of the streaming protocol
14 * @CIP_NONBLOCKING: In non-blocking mode, each packet contains
16 * for clock skew and left-over fractional samples. This should
18 * @CIP_BLOCKING: In blocking mode, each packet contains either zero or
21 * @CIP_EMPTY_WITH_TAG0: Only for in-stream. Empty in-packets have TAG0.
24 * @CIP_WRONG_DBS: Only for in-stream. The value of dbs is wrong in in-packets.
26 * @CIP_SKIP_DBC_ZERO_CHECK: Only for in-stream. Packets with zero in dbc is
28 * @CIP_EMPTY_HAS_WRONG_DBC: Only for in-stream. The value of dbc in empty
30 * @CIP_JUMBO_PAYLOAD: Only for in-stream. The number of data blocks in an
31 * packet is larger than IEC 61883-6 defines. Current implementation
32 * allows 5 times as large as IEC 61883-6 defines.
33 * @CIP_HEADER_WITHOUT_EOH: Only for in-stream. CIP Header doesn't include
36 * @CIP_UNALIGHED_DBC: Only for in-stream. The value of dbc is not alighed to
54 * enum cip_sfc - supported Sampling Frequency Codes (SFCs)
65 * Format Dependent Field (FDF) of AMDTP packet header. In IEC 61883-6:2002,
68 * stream.
70 * In IEC 61883-6:2005, some extensions were added to support more types of
74 * Currently our implementation is compatible with IEC 61883-6:2002.
209 * amdtp_stream_running - check stream is running or not
210 * @s: the AMDTP stream
212 * If this function returns true, the stream is running.
216 return !IS_ERR(s->context); in amdtp_stream_running()
220 * amdtp_streaming_error - check for streaming error
221 * @s: the AMDTP stream
223 * If this function returns true, the stream's packet queue has stopped due to
228 return s->packet_index < 0; in amdtp_streaming_error()
232 * amdtp_stream_pcm_running - check PCM substream is running or not
233 * @s: the AMDTP stream
235 * If this function returns true, PCM substream in the AMDTP stream is running.
239 return !!s->pcm; in amdtp_stream_pcm_running()
243 * amdtp_stream_pcm_trigger - start/stop playback from a PCM device
244 * @s: the AMDTP stream
247 * Call this function on a running isochronous stream to enable the actual
254 WRITE_ONCE(s->pcm, pcm); in amdtp_stream_pcm_trigger()
263 * amdtp_stream_wait_callback - sleep till callbacked or timeout
264 * @s: the AMDTP stream
267 * If this function return false, the AMDTP stream should be stopped.
272 return wait_event_timeout(s->callback_wait, in amdtp_stream_wait_callback()
273 s->callbacked == true, in amdtp_stream_wait_callback()
312 d->events_per_period = events_per_period; in amdtp_domain_set_events_per_period()
313 d->events_per_buffer = events_per_buffer; in amdtp_domain_set_events_per_period()