Lines Matching refs:motu
152 int snd_motu_transaction_read(struct snd_motu *motu, u32 offset, __be32 *reg,
154 int snd_motu_transaction_write(struct snd_motu *motu, u32 offset, __be32 *reg,
156 int snd_motu_transaction_register(struct snd_motu *motu);
157 int snd_motu_transaction_reregister(struct snd_motu *motu);
158 void snd_motu_transaction_unregister(struct snd_motu *motu);
160 int snd_motu_stream_init_duplex(struct snd_motu *motu);
161 void snd_motu_stream_destroy_duplex(struct snd_motu *motu);
162 int snd_motu_stream_cache_packet_formats(struct snd_motu *motu);
163 int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate,
166 int snd_motu_stream_start_duplex(struct snd_motu *motu);
167 void snd_motu_stream_stop_duplex(struct snd_motu *motu);
168 int snd_motu_stream_lock_try(struct snd_motu *motu);
169 void snd_motu_stream_lock_release(struct snd_motu *motu);
171 void snd_motu_proc_init(struct snd_motu *motu);
173 int snd_motu_create_pcm_devices(struct snd_motu *motu);
175 int snd_motu_create_midi_devices(struct snd_motu *motu);
177 int snd_motu_create_hwdep_device(struct snd_motu *motu);
179 int snd_motu_protocol_v1_get_clock_rate(struct snd_motu *motu,
181 int snd_motu_protocol_v1_set_clock_rate(struct snd_motu *motu,
183 int snd_motu_protocol_v1_get_clock_source(struct snd_motu *motu,
185 int snd_motu_protocol_v1_switch_fetching_mode(struct snd_motu *motu,
187 int snd_motu_protocol_v1_cache_packet_formats(struct snd_motu *motu);
189 int snd_motu_protocol_v2_get_clock_rate(struct snd_motu *motu,
191 int snd_motu_protocol_v2_set_clock_rate(struct snd_motu *motu,
193 int snd_motu_protocol_v2_get_clock_source(struct snd_motu *motu,
195 int snd_motu_protocol_v2_switch_fetching_mode(struct snd_motu *motu,
197 int snd_motu_protocol_v2_cache_packet_formats(struct snd_motu *motu);
199 int snd_motu_protocol_v3_get_clock_rate(struct snd_motu *motu,
201 int snd_motu_protocol_v3_set_clock_rate(struct snd_motu *motu,
203 int snd_motu_protocol_v3_get_clock_source(struct snd_motu *motu,
205 int snd_motu_protocol_v3_switch_fetching_mode(struct snd_motu *motu,
207 int snd_motu_protocol_v3_cache_packet_formats(struct snd_motu *motu);
209 static inline int snd_motu_protocol_get_clock_rate(struct snd_motu *motu, in snd_motu_protocol_get_clock_rate() argument
212 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_rate()
213 return snd_motu_protocol_v2_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate()
214 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_rate()
215 return snd_motu_protocol_v3_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate()
216 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_get_clock_rate()
217 return snd_motu_protocol_v1_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate()
222 static inline int snd_motu_protocol_set_clock_rate(struct snd_motu *motu, in snd_motu_protocol_set_clock_rate() argument
225 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_set_clock_rate()
226 return snd_motu_protocol_v2_set_clock_rate(motu, rate); in snd_motu_protocol_set_clock_rate()
227 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_set_clock_rate()
228 return snd_motu_protocol_v3_set_clock_rate(motu, rate); in snd_motu_protocol_set_clock_rate()
229 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_set_clock_rate()
230 return snd_motu_protocol_v1_set_clock_rate(motu, rate); in snd_motu_protocol_set_clock_rate()
235 static inline int snd_motu_protocol_get_clock_source(struct snd_motu *motu, in snd_motu_protocol_get_clock_source() argument
238 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_source()
239 return snd_motu_protocol_v2_get_clock_source(motu, source); in snd_motu_protocol_get_clock_source()
240 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_source()
241 return snd_motu_protocol_v3_get_clock_source(motu, source); in snd_motu_protocol_get_clock_source()
242 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_get_clock_source()
243 return snd_motu_protocol_v1_get_clock_source(motu, source); in snd_motu_protocol_get_clock_source()
248 static inline int snd_motu_protocol_switch_fetching_mode(struct snd_motu *motu, in snd_motu_protocol_switch_fetching_mode() argument
251 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_switch_fetching_mode()
252 return snd_motu_protocol_v2_switch_fetching_mode(motu, enable); in snd_motu_protocol_switch_fetching_mode()
253 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_switch_fetching_mode()
254 return snd_motu_protocol_v3_switch_fetching_mode(motu, enable); in snd_motu_protocol_switch_fetching_mode()
255 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_switch_fetching_mode()
256 return snd_motu_protocol_v1_switch_fetching_mode(motu, enable); in snd_motu_protocol_switch_fetching_mode()
261 static inline int snd_motu_protocol_cache_packet_formats(struct snd_motu *motu) in snd_motu_protocol_cache_packet_formats() argument
263 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_cache_packet_formats()
264 return snd_motu_protocol_v2_cache_packet_formats(motu); in snd_motu_protocol_cache_packet_formats()
265 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_cache_packet_formats()
266 return snd_motu_protocol_v3_cache_packet_formats(motu); in snd_motu_protocol_cache_packet_formats()
267 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V1) in snd_motu_protocol_cache_packet_formats()
268 return snd_motu_protocol_v1_cache_packet_formats(motu); in snd_motu_protocol_cache_packet_formats()