Lines Matching +full:spartan +full:- +full:6
1 // SPDX-License-Identifier: GPL-2.0-only
3 * motu-protocol-v2.c - a part of driver for MOTU FireWire series
5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp>
31 return -EIO; in get_clock_rate()
65 return -EINVAL; in snd_motu_protocol_v2_set_clock_rate()
151 if (motu->spec == &snd_motu_spec_828mk2 || in get_clock_source()
152 motu->spec == &snd_motu_spec_traveler) in get_clock_source()
181 // For UltraLite and 8pre, which implements Xilinx Spartan XC3S200.
206 if (motu->spec == &snd_motu_spec_828mk2) { in snd_motu_protocol_v2_switch_fetching_mode()
224 if (motu->spec == &snd_motu_spec_traveler) in snd_motu_protocol_v2_switch_fetching_mode()
241 motu->tx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_828mk2()
242 motu->tx_packet_formats.pcm_chunks[1] += 4; in detect_packet_formats_828mk2()
247 motu->rx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_828mk2()
248 motu->rx_packet_formats.pcm_chunks[1] += 4; in detect_packet_formats_828mk2()
258 motu->tx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_traveler()
259 motu->tx_packet_formats.pcm_chunks[1] += 4; in detect_packet_formats_traveler()
264 motu->rx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_traveler()
265 motu->rx_packet_formats.pcm_chunks[1] += 4; in detect_packet_formats_traveler()
275 motu->tx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_8pre()
276 motu->tx_packet_formats.pcm_chunks[1] += 8; in detect_packet_formats_8pre()
281 motu->rx_packet_formats.pcm_chunks[0] += 8; in detect_packet_formats_8pre()
282 motu->rx_packet_formats.pcm_chunks[1] += 8; in detect_packet_formats_8pre()
294 motu->tx_packet_formats.pcm_byte_offset = 10; in snd_motu_protocol_v2_cache_packet_formats()
295 motu->rx_packet_formats.pcm_byte_offset = 10; in snd_motu_protocol_v2_cache_packet_formats()
297 motu->tx_packet_formats.msg_chunks = 2; in snd_motu_protocol_v2_cache_packet_formats()
298 motu->rx_packet_formats.msg_chunks = 2; in snd_motu_protocol_v2_cache_packet_formats()
306 memcpy(motu->tx_packet_formats.pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
307 motu->spec->tx_fixed_pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
308 sizeof(motu->tx_packet_formats.pcm_chunks)); in snd_motu_protocol_v2_cache_packet_formats()
309 memcpy(motu->rx_packet_formats.pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
310 motu->spec->rx_fixed_pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
311 sizeof(motu->rx_packet_formats.pcm_chunks)); in snd_motu_protocol_v2_cache_packet_formats()
313 if (motu->spec == &snd_motu_spec_828mk2) in snd_motu_protocol_v2_cache_packet_formats()
315 else if (motu->spec == &snd_motu_spec_traveler) in snd_motu_protocol_v2_cache_packet_formats()
317 else if (motu->spec == &snd_motu_spec_8pre) in snd_motu_protocol_v2_cache_packet_formats()
357 .rx_fixed_pcm_chunks = {6, 6, 0},