Lines Matching refs:motu
136 int snd_motu_transaction_read(struct snd_motu *motu, u32 offset, __be32 *reg,
138 int snd_motu_transaction_write(struct snd_motu *motu, u32 offset, __be32 *reg,
140 int snd_motu_transaction_register(struct snd_motu *motu);
141 int snd_motu_transaction_reregister(struct snd_motu *motu);
142 void snd_motu_transaction_unregister(struct snd_motu *motu);
144 int snd_motu_stream_init_duplex(struct snd_motu *motu);
145 void snd_motu_stream_destroy_duplex(struct snd_motu *motu);
146 int snd_motu_stream_cache_packet_formats(struct snd_motu *motu);
147 int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate,
150 int snd_motu_stream_start_duplex(struct snd_motu *motu);
151 void snd_motu_stream_stop_duplex(struct snd_motu *motu);
152 int snd_motu_stream_lock_try(struct snd_motu *motu);
153 void snd_motu_stream_lock_release(struct snd_motu *motu);
155 void snd_motu_proc_init(struct snd_motu *motu);
157 int snd_motu_create_pcm_devices(struct snd_motu *motu);
159 int snd_motu_create_midi_devices(struct snd_motu *motu);
161 int snd_motu_create_hwdep_device(struct snd_motu *motu);
163 int snd_motu_protocol_v2_get_clock_rate(struct snd_motu *motu,
165 int snd_motu_protocol_v2_set_clock_rate(struct snd_motu *motu,
167 int snd_motu_protocol_v2_get_clock_source(struct snd_motu *motu,
169 int snd_motu_protocol_v2_switch_fetching_mode(struct snd_motu *motu,
171 int snd_motu_protocol_v2_cache_packet_formats(struct snd_motu *motu);
173 int snd_motu_protocol_v3_get_clock_rate(struct snd_motu *motu,
175 int snd_motu_protocol_v3_set_clock_rate(struct snd_motu *motu,
177 int snd_motu_protocol_v3_get_clock_source(struct snd_motu *motu,
179 int snd_motu_protocol_v3_switch_fetching_mode(struct snd_motu *motu,
181 int snd_motu_protocol_v3_cache_packet_formats(struct snd_motu *motu);
183 static inline int snd_motu_protocol_get_clock_rate(struct snd_motu *motu, in snd_motu_protocol_get_clock_rate() argument
186 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_rate()
187 return snd_motu_protocol_v2_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate()
188 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_rate()
189 return snd_motu_protocol_v3_get_clock_rate(motu, rate); in snd_motu_protocol_get_clock_rate()
194 static inline int snd_motu_protocol_set_clock_rate(struct snd_motu *motu, in snd_motu_protocol_set_clock_rate() argument
197 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_set_clock_rate()
198 return snd_motu_protocol_v2_set_clock_rate(motu, rate); in snd_motu_protocol_set_clock_rate()
199 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_set_clock_rate()
200 return snd_motu_protocol_v3_set_clock_rate(motu, rate); in snd_motu_protocol_set_clock_rate()
205 static inline int snd_motu_protocol_get_clock_source(struct snd_motu *motu, in snd_motu_protocol_get_clock_source() argument
208 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_get_clock_source()
209 return snd_motu_protocol_v2_get_clock_source(motu, source); in snd_motu_protocol_get_clock_source()
210 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_get_clock_source()
211 return snd_motu_protocol_v3_get_clock_source(motu, source); in snd_motu_protocol_get_clock_source()
216 static inline int snd_motu_protocol_switch_fetching_mode(struct snd_motu *motu, in snd_motu_protocol_switch_fetching_mode() argument
219 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_switch_fetching_mode()
220 return snd_motu_protocol_v2_switch_fetching_mode(motu, enable); in snd_motu_protocol_switch_fetching_mode()
221 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_switch_fetching_mode()
222 return snd_motu_protocol_v3_switch_fetching_mode(motu, enable); in snd_motu_protocol_switch_fetching_mode()
227 static inline int snd_motu_protocol_cache_packet_formats(struct snd_motu *motu) in snd_motu_protocol_cache_packet_formats() argument
229 if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V2) in snd_motu_protocol_cache_packet_formats()
230 return snd_motu_protocol_v2_cache_packet_formats(motu); in snd_motu_protocol_cache_packet_formats()
231 else if (motu->spec->protocol_version == SND_MOTU_PROTOCOL_V3) in snd_motu_protocol_cache_packet_formats()
232 return snd_motu_protocol_v3_cache_packet_formats(motu); in snd_motu_protocol_cache_packet_formats()