• Home
  • Raw
  • Download

Lines Matching refs:motu

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 strcpy(motu->card->driver, "FW-MOTU"); in name_card()
45 strcpy(motu->card->shortname, motu->spec->name); in name_card()
46 strcpy(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
58 snd_motu_transaction_unregister(motu); in motu_card_free()
59 snd_motu_stream_destroy_duplex(motu); in motu_card_free()
61 mutex_destroy(&motu->mutex); in motu_card_free()
62 fw_unit_put(motu->unit); in motu_card_free()
68 struct snd_motu *motu; in motu_probe() local
71 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*motu), &card); in motu_probe()
76 motu = card->private_data; in motu_probe()
77 motu->unit = fw_unit_get(unit); in motu_probe()
78 dev_set_drvdata(&unit->device, motu); in motu_probe()
79 motu->card = card; in motu_probe()
81 motu->spec = (const struct snd_motu_spec *)entry->driver_data; in motu_probe()
82 mutex_init(&motu->mutex); in motu_probe()
83 spin_lock_init(&motu->lock); in motu_probe()
84 init_waitqueue_head(&motu->hwdep_wait); in motu_probe()
86 name_card(motu); in motu_probe()
88 err = snd_motu_transaction_register(motu); in motu_probe()
92 err = snd_motu_stream_init_duplex(motu); in motu_probe()
96 snd_motu_proc_init(motu); in motu_probe()
98 err = snd_motu_create_pcm_devices(motu); in motu_probe()
102 if ((motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_2ND_Q) || in motu_probe()
103 (motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_3RD_Q) || in motu_probe()
104 (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_2ND_Q) || in motu_probe()
105 (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_3RD_Q)) { in motu_probe()
106 err = snd_motu_create_midi_devices(motu); in motu_probe()
111 err = snd_motu_create_hwdep_device(motu); in motu_probe()
127 struct snd_motu *motu = dev_get_drvdata(&unit->device); in motu_remove() local
130 snd_card_free(motu->card); in motu_remove()
135 struct snd_motu *motu = dev_get_drvdata(&unit->device); in motu_bus_update() local
138 snd_motu_transaction_reregister(motu); in motu_bus_update()