| /linux/sound/firewire/motu/ |
| H A D | motu.h | 160 int snd_motu_transaction_read(struct snd_motu *motu, u32 offset, __be32 *reg, 162 int snd_motu_transaction_write(struct snd_motu *motu, u32 offset, __be32 *reg, 164 int snd_motu_transaction_register(struct snd_motu *motu); 165 int snd_motu_transaction_reregister(struct snd_motu *motu); 166 void snd_motu_transaction_unregister(struct snd_motu *motu); 168 int snd_motu_stream_init_duplex(struct snd_motu *motu); 169 void snd_motu_stream_destroy_duplex(struct snd_motu *motu); 170 int snd_motu_stream_cache_packet_formats(struct snd_motu *motu); 171 int snd_motu_stream_reserve_duplex(struct snd_motu *motu, unsigned int rate, 174 int snd_motu_stream_start_duplex(struct snd_motu *motu); [all …]
|
| H A D | motu-protocol-v1.c | 133 static int get_clock_rate_828(struct snd_motu *motu, unsigned int *rate) in get_clock_rate_828() argument 138 err = snd_motu_transaction_read(motu, CLK_828_STATUS_OFFSET, ®, sizeof(reg)); in get_clock_rate_828() 168 static int get_clock_rate_896(struct snd_motu *motu, unsigned int *rate) in get_clock_rate_896() argument 173 err = snd_motu_transaction_read(motu, CLK_896_STATUS_OFFSET, ®, sizeof(reg)); in get_clock_rate_896() 179 int snd_motu_protocol_v1_get_clock_rate(struct snd_motu *motu, unsigned int *rate) in snd_motu_protocol_v1_get_clock_rate() argument 181 if (motu->spec == &snd_motu_spec_828) in snd_motu_protocol_v1_get_clock_rate() 182 return get_clock_rate_828(motu, rate); in snd_motu_protocol_v1_get_clock_rate() 183 else if (motu->spec == &snd_motu_spec_896) in snd_motu_protocol_v1_get_clock_rate() 184 return get_clock_rate_896(motu, rate); in snd_motu_protocol_v1_get_clock_rate() 189 static int set_clock_rate_828(struct snd_motu *motu, unsigned int rate) in set_clock_rate_828() argument [all …]
|
| H A D | motu-hwdep.c | 19 static bool has_dsp_event(struct snd_motu *motu) in has_dsp_event() argument 21 if (motu->spec->flags & SND_MOTU_SPEC_REGISTER_DSP) in has_dsp_event() 22 return (snd_motu_register_dsp_message_parser_count_event(motu) > 0); in has_dsp_event() 30 struct snd_motu *motu = hwdep->private_data; in hwdep_read() local 34 spin_lock_irq(&motu->lock); in hwdep_read() 36 while (!motu->dev_lock_changed && motu->msg == 0 && !has_dsp_event(motu)) { in hwdep_read() 37 prepare_to_wait(&motu->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read() 38 spin_unlock_irq(&motu->lock); in hwdep_read() 40 finish_wait(&motu->hwdep_wait, &wait); in hwdep_read() 43 spin_lock_irq(&motu->lock); in hwdep_read() [all …]
|
| H A D | motu.c | 28 static void name_card(struct snd_motu *motu) in name_card() argument 30 struct fw_device *fw_dev = fw_parent_device(motu->unit); in name_card() 35 fw_csr_iterator_init(&it, motu->unit->directory); in name_card() 44 strscpy(motu->card->driver, "FW-MOTU"); in name_card() 45 strscpy(motu->card->shortname, motu->spec->name); in name_card() 46 strscpy(motu->card->mixername, motu->spec->name); in name_card() 47 snprintf(motu->card->longname, sizeof(motu->card->longname), in name_card() 49 motu->spec->name, version, in name_card() 51 dev_name(&motu->unit->device), 100 << fw_dev->max_speed); in name_card() 56 struct snd_motu *motu = card->private_data; in motu_card_free() local [all …]
|
| H A D | motu-protocol-v3.c | 37 int snd_motu_protocol_v3_get_clock_rate(struct snd_motu *motu, in snd_motu_protocol_v3_get_clock_rate() argument 44 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v3_get_clock_rate() 59 int snd_motu_protocol_v3_set_clock_rate(struct snd_motu *motu, in snd_motu_protocol_v3_set_clock_rate() argument 74 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v3_set_clock_rate() 86 err = snd_motu_transaction_write(motu, V3_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v3_set_clock_rate() 94 motu->msg = 0; in snd_motu_protocol_v3_set_clock_rate() 95 result = wait_event_interruptible_timeout(motu->hwdep_wait, in snd_motu_protocol_v3_set_clock_rate() 96 motu->msg & V3_MSG_FLAG_CLK_CHANGED, in snd_motu_protocol_v3_set_clock_rate() 107 int snd_motu_protocol_v3_get_clock_source(struct snd_motu *motu, in snd_motu_protocol_v3_get_clock_source() argument 114 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v3_get_clock_source() [all …]
|
| H A D | motu-protocol-v2.c | 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, ®, 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, ®, in snd_motu_protocol_v2_set_clock_rate() 84 return snd_motu_transaction_write(motu, V2_CLOCK_STATUS_OFFSET, ®, 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, ®, in get_clock_source() [all …]
|
| H A D | Makefile | 2 CFLAGS_amdtp-motu.o := -I$(src) 4 snd-firewire-motu-y := motu.o amdtp-motu.o motu-transaction.o motu-stream.o \ 5 motu-proc.o motu-pcm.o motu-midi.o motu-hwdep.o \ 6 motu-protocol-v2.o motu-protocol-v3.o \ 7 motu-protocol-v1.o motu-register-dsp-message-parser.o \ 8 motu-command-dsp-message-parser.o 9 obj-$(CONFIG_SND_FIREWIRE_MOTU) += snd-firewire-motu.o
|
| H A D | motu-proc.c | 30 struct snd_motu *motu = entry->private_data; in proc_read_clock() local 34 if (snd_motu_protocol_get_clock_rate(motu, &rate) < 0) in proc_read_clock() 36 if (snd_motu_protocol_get_clock_source(motu, &source) < 0) in proc_read_clock() 46 struct snd_motu *motu = entry->private_data; in proc_read_format() local 51 if (snd_motu_protocol_cache_packet_formats(motu) < 0) in proc_read_format() 58 formats = &motu->tx_packet_formats; in proc_read_format() 63 motu->spec->tx_fixed_pcm_chunks[mode], in proc_read_format() 71 formats = &motu->rx_packet_formats; in proc_read_format() 76 motu->spec->rx_fixed_pcm_chunks[mode], in proc_read_format() 81 static void add_node(struct snd_motu *motu, struct snd_info_entry *root, in add_node() argument [all …]
|
| H A D | amdtp-motu.c | 334 struct snd_motu *motu = container_of(s, struct snd_motu, tx_stream); in process_ir_ctx_payloads() local 362 if (motu->spec->flags & SND_MOTU_SPEC_REGISTER_DSP) in process_ir_ctx_payloads() 364 else if (motu->spec->flags & SND_MOTU_SPEC_COMMAND_DSP) in process_ir_ctx_payloads()
|
| H A D | amdtp-motu-trace.h | 84 #define TRACE_INCLUDE_FILE amdtp-motu-trace
|
| /linux/sound/firewire/ |
| H A D | Makefile | 17 obj-$(CONFIG_SND_FIREWIRE_MOTU) += motu/
|
| H A D | Kconfig | 188 will be called snd-firewire-motu.
|