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>
38 return -EIO; in get_clock_rate()
72 return -EINVAL; in snd_motu_protocol_v2_set_clock_rate()
100 bool support_iec60958_on_opt = (motu->spec == &snd_motu_spec_828mk2 || in get_clock_source()
101 motu->spec == &snd_motu_spec_traveler); in get_clock_source()
103 if (motu->spec == &snd_motu_spec_896hd) { in get_clock_source()
168 // For UltraLite and 8pre, which implements Xilinx Spartan XC3S200.
193 if (motu->spec == &snd_motu_spec_828mk2) { in snd_motu_protocol_v2_switch_fetching_mode()
196 } else if (motu->spec == &snd_motu_spec_896hd) { in snd_motu_protocol_v2_switch_fetching_mode()
214 if (motu->spec == &snd_motu_spec_traveler) in snd_motu_protocol_v2_switch_fetching_mode()
229 bool has_two_opt_ifaces = (motu->spec == &snd_motu_spec_8pre); in snd_motu_protocol_v2_cache_packet_formats()
234 motu->tx_packet_formats.pcm_byte_offset = 10; in snd_motu_protocol_v2_cache_packet_formats()
235 motu->rx_packet_formats.pcm_byte_offset = 10; in snd_motu_protocol_v2_cache_packet_formats()
237 motu->tx_packet_formats.msg_chunks = 2; in snd_motu_protocol_v2_cache_packet_formats()
238 motu->rx_packet_formats.msg_chunks = 2; in snd_motu_protocol_v2_cache_packet_formats()
246 memcpy(motu->tx_packet_formats.pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
247 motu->spec->tx_fixed_pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
248 sizeof(motu->tx_packet_formats.pcm_chunks)); in snd_motu_protocol_v2_cache_packet_formats()
249 memcpy(motu->rx_packet_formats.pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
250 motu->spec->rx_fixed_pcm_chunks, in snd_motu_protocol_v2_cache_packet_formats()
251 sizeof(motu->rx_packet_formats.pcm_chunks)); in snd_motu_protocol_v2_cache_packet_formats()
254 motu->tx_packet_formats.pcm_chunks[0] += 8; in snd_motu_protocol_v2_cache_packet_formats()
257 motu->tx_packet_formats.pcm_chunks[1] += 4; in snd_motu_protocol_v2_cache_packet_formats()
259 motu->tx_packet_formats.pcm_chunks[1] += 8; in snd_motu_protocol_v2_cache_packet_formats()
263 motu->rx_packet_formats.pcm_chunks[0] += 8; in snd_motu_protocol_v2_cache_packet_formats()
266 motu->rx_packet_formats.pcm_chunks[1] += 4; in snd_motu_protocol_v2_cache_packet_formats()
268 motu->rx_packet_formats.pcm_chunks[1] += 8; in snd_motu_protocol_v2_cache_packet_formats()
320 .rx_fixed_pcm_chunks = {6, 6, 0},