• Home
  • Raw
  • Download

Lines Matching refs:motu

38 int snd_motu_protocol_v2_get_clock_rate(struct snd_motu *motu,  in snd_motu_protocol_v2_get_clock_rate()  argument
44 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_get_clock_rate()
52 int snd_motu_protocol_v2_set_clock_rate(struct snd_motu *motu, in snd_motu_protocol_v2_set_clock_rate() argument
67 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_set_clock_rate()
77 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_set_clock_rate()
81 static int detect_clock_source_optical_model(struct snd_motu *motu, u32 data, in detect_clock_source_optical_model() argument
96 int err = snd_motu_transaction_read(motu, V2_IN_OUT_CONF_OFFSET, &reg, sizeof(reg)); in detect_clock_source_optical_model()
123 static int v2_detect_clock_source(struct snd_motu *motu, u32 data, in v2_detect_clock_source() argument
147 static int get_clock_source(struct snd_motu *motu, u32 data, in get_clock_source() argument
151 if (motu->spec == &snd_motu_spec_828mk2 || in get_clock_source()
152 motu->spec == &snd_motu_spec_traveler) in get_clock_source()
153 return detect_clock_source_optical_model(motu, data, src); in get_clock_source()
155 return v2_detect_clock_source(motu, data, src); in get_clock_source()
158 int snd_motu_protocol_v2_get_clock_source(struct snd_motu *motu, in snd_motu_protocol_v2_get_clock_source() argument
164 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_get_clock_source()
169 return get_clock_source(motu, be32_to_cpu(reg), src); in snd_motu_protocol_v2_get_clock_source()
173 static int switch_fetching_mode_cyclone(struct snd_motu *motu, u32 *data, in switch_fetching_mode_cyclone() argument
182 static int switch_fetching_mode_spartan(struct snd_motu *motu, u32 *data, in switch_fetching_mode_spartan() argument
189 err = get_clock_source(motu, *data, &src); in switch_fetching_mode_spartan()
203 int snd_motu_protocol_v2_switch_fetching_mode(struct snd_motu *motu, in snd_motu_protocol_v2_switch_fetching_mode() argument
206 if (motu->spec == &snd_motu_spec_828mk2) { in snd_motu_protocol_v2_switch_fetching_mode()
214 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, in snd_motu_protocol_v2_switch_fetching_mode()
224 if (motu->spec == &snd_motu_spec_traveler) in snd_motu_protocol_v2_switch_fetching_mode()
225 err = switch_fetching_mode_cyclone(motu, &data, enable); in snd_motu_protocol_v2_switch_fetching_mode()
227 err = switch_fetching_mode_spartan(motu, &data, enable); in snd_motu_protocol_v2_switch_fetching_mode()
232 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, in snd_motu_protocol_v2_switch_fetching_mode()
237 static int detect_packet_formats_828mk2(struct snd_motu *motu, u32 data) in detect_packet_formats_828mk2() argument
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()
254 static int detect_packet_formats_traveler(struct snd_motu *motu, u32 data) in detect_packet_formats_traveler() argument
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()
271 static int detect_packet_formats_8pre(struct snd_motu *motu, u32 data) in detect_packet_formats_8pre() argument
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()
288 int snd_motu_protocol_v2_cache_packet_formats(struct snd_motu *motu) in snd_motu_protocol_v2_cache_packet_formats() argument
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()
300 err = snd_motu_transaction_read(motu, V2_IN_OUT_CONF_OFFSET, &reg, 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()
314 return detect_packet_formats_828mk2(motu, data); 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()
316 return detect_packet_formats_traveler(motu, data); 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()
318 return detect_packet_formats_8pre(motu, data); in snd_motu_protocol_v2_cache_packet_formats()