Lines Matching +full:over +full:- +full:sampling
1 // SPDX-License-Identifier: GPL-2.0-only
2 // motu-protocol-v1.c - a part of driver for MOTU FireWire series
4 // Copyright (c) 2021 Takashi Sakamoto <o-takashi@sakamocchi.jp>
12 // 0xffff0000: ISOC_COMM_CONTROL_MASK in motu-stream.c.
20 // 0x00000800: analog-1/2
21 // 0x00001a00: analog-3/4
22 // 0x00002c00: analog-5/6
23 // 0x00003e00: analog-7/8
24 // 0x00000000: analog-1
25 // 0x00000900: analog-2
26 // 0x00001200: analog-3
27 // 0x00001b00: analog-4
28 // 0x00002400: analog-5
29 // 0x00002d00: analog-6
30 // 0x00003600: analog-7
31 // 0x00003f00: analog-8
35 // 0x00000004: rate of sampling clock.
38 // 0x00000023: source of sampling clock.
76 // 0x00004800: analog-1/2
77 // 0x00005a00: analog-3/4
78 // 0x00006c00: analog-5/6
79 // 0x00007e00: analog-7/8
80 // 0x00104800: AES/EBU-1/2
81 // 0x00004000: analog-1
82 // 0x00004900: analog-2
83 // 0x00005200: analog-3
84 // 0x00005b00: analog-4
85 // 0x00006400: analog-5
86 // 0x00006d00: analog-6
87 // 0x00007600: analog-7
88 // 0x00007f00: analog-8
89 // 0x00104000: AES/EBU-1
90 // 0x00104900: AES/EBU-2
96 // 0x00000018: nominal rate of sampling clock.
101 // 0x00000007: source of sampling clock.
162 return -ENXIO; in parse_clock_rate_896()
181 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_get_clock_rate()
183 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_get_clock_rate()
186 return -ENXIO; in snd_motu_protocol_v1_get_clock_rate()
234 return -EINVAL; in set_clock_rate_896()
246 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_set_clock_rate()
248 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_set_clock_rate()
251 return -ENXIO; in snd_motu_protocol_v1_set_clock_rate()
287 return -ENXIO; in get_clock_source_828()
324 return -ENXIO; in get_clock_source_896()
332 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_get_clock_source()
334 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_get_clock_source()
337 return -ENXIO; in snd_motu_protocol_v1_get_clock_source()
354 // since the device voluntarily mutes outputs. As a workaround, yield processor over in switch_fetching_mode_828()
385 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_switch_fetching_mode()
387 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_switch_fetching_mode()
390 return -ENXIO; in snd_motu_protocol_v1_switch_fetching_mode()
399 motu->tx_packet_formats.pcm_byte_offset = 4; in detect_packet_formats_828()
400 motu->tx_packet_formats.msg_chunks = 2; in detect_packet_formats_828()
402 motu->rx_packet_formats.pcm_byte_offset = 4; in detect_packet_formats_828()
403 motu->rx_packet_formats.msg_chunks = 0; in detect_packet_formats_828()
412 motu->tx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_828()
415 motu->rx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_828()
423 motu->tx_packet_formats.pcm_byte_offset = 4; in detect_packet_formats_896()
424 motu->rx_packet_formats.pcm_byte_offset = 4; in detect_packet_formats_896()
427 motu->tx_packet_formats.msg_chunks = 0; in detect_packet_formats_896()
428 motu->rx_packet_formats.msg_chunks = 0; in detect_packet_formats_896()
432 motu->tx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_896()
433 motu->tx_packet_formats.pcm_chunks[1] += 8; in detect_packet_formats_896()
435 motu->rx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_896()
436 motu->rx_packet_formats.pcm_chunks[1] += 8; in detect_packet_formats_896()
443 memcpy(motu->tx_packet_formats.pcm_chunks, motu->spec->tx_fixed_pcm_chunks, in snd_motu_protocol_v1_cache_packet_formats()
444 sizeof(motu->tx_packet_formats.pcm_chunks)); in snd_motu_protocol_v1_cache_packet_formats()
445 memcpy(motu->rx_packet_formats.pcm_chunks, motu->spec->rx_fixed_pcm_chunks, in snd_motu_protocol_v1_cache_packet_formats()
446 sizeof(motu->rx_packet_formats.pcm_chunks)); in snd_motu_protocol_v1_cache_packet_formats()
448 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_cache_packet_formats()
450 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_cache_packet_formats()