• Home
  • Raw
  • Download

Lines Matching refs:motu

45 int snd_motu_protocol_v2_get_clock_rate(struct snd_motu *motu,  in snd_motu_protocol_v2_get_clock_rate()  argument
51 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_get_clock_rate()
59 int snd_motu_protocol_v2_set_clock_rate(struct snd_motu *motu, in snd_motu_protocol_v2_set_clock_rate() argument
74 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_set_clock_rate()
84 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_set_clock_rate()
88 static int get_clock_source(struct snd_motu *motu, u32 data, in get_clock_source() argument
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()
111 int err = snd_motu_transaction_read(motu, V2_IN_OUT_CONF_OFFSET, &reg, in get_clock_source()
145 int snd_motu_protocol_v2_get_clock_source(struct snd_motu *motu, in snd_motu_protocol_v2_get_clock_source() argument
151 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_get_clock_source()
156 return get_clock_source(motu, be32_to_cpu(reg), src); in snd_motu_protocol_v2_get_clock_source()
160 static int switch_fetching_mode_cyclone(struct snd_motu *motu, u32 *data, in switch_fetching_mode_cyclone() argument
169 static int switch_fetching_mode_spartan(struct snd_motu *motu, u32 *data, in switch_fetching_mode_spartan() argument
176 err = get_clock_source(motu, *data, &src); in switch_fetching_mode_spartan()
190 int snd_motu_protocol_v2_switch_fetching_mode(struct snd_motu *motu, in snd_motu_protocol_v2_switch_fetching_mode() argument
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()
204 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, in snd_motu_protocol_v2_switch_fetching_mode()
214 if (motu->spec == &snd_motu_spec_traveler) in snd_motu_protocol_v2_switch_fetching_mode()
215 err = switch_fetching_mode_cyclone(motu, &data, enable); in snd_motu_protocol_v2_switch_fetching_mode()
217 err = switch_fetching_mode_spartan(motu, &data, enable); in snd_motu_protocol_v2_switch_fetching_mode()
222 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, in snd_motu_protocol_v2_switch_fetching_mode()
227 int snd_motu_protocol_v2_cache_packet_formats(struct snd_motu *motu) in snd_motu_protocol_v2_cache_packet_formats() argument
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()
240 err = snd_motu_transaction_read(motu, V2_IN_OUT_CONF_OFFSET, &reg, 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()