Lines Matching refs:ff

16 static void name_card(struct snd_ff *ff)  in name_card()  argument
18 struct fw_device *fw_dev = fw_parent_device(ff->unit); in name_card()
28 name = names[ff->unit_version]; in name_card()
30 strcpy(ff->card->driver, "Fireface"); in name_card()
31 strcpy(ff->card->shortname, name); in name_card()
32 strcpy(ff->card->mixername, name); in name_card()
33 snprintf(ff->card->longname, sizeof(ff->card->longname), in name_card()
36 dev_name(&ff->unit->device), 100 << fw_dev->max_speed); in name_card()
41 struct snd_ff *ff = card->private_data; in ff_card_free() local
43 snd_ff_stream_destroy_duplex(ff); in ff_card_free()
44 snd_ff_transaction_unregister(ff); in ff_card_free()
46 mutex_destroy(&ff->mutex); in ff_card_free()
47 fw_unit_put(ff->unit); in ff_card_free()
53 struct snd_ff *ff; in snd_ff_probe() local
56 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*ff), &card); in snd_ff_probe()
61 ff = card->private_data; in snd_ff_probe()
62 ff->unit = fw_unit_get(unit); in snd_ff_probe()
63 dev_set_drvdata(&unit->device, ff); in snd_ff_probe()
64 ff->card = card; in snd_ff_probe()
66 mutex_init(&ff->mutex); in snd_ff_probe()
67 spin_lock_init(&ff->lock); in snd_ff_probe()
68 init_waitqueue_head(&ff->hwdep_wait); in snd_ff_probe()
70 ff->unit_version = entry->version; in snd_ff_probe()
71 ff->spec = (const struct snd_ff_spec *)entry->driver_data; in snd_ff_probe()
73 err = snd_ff_transaction_register(ff); in snd_ff_probe()
77 name_card(ff); in snd_ff_probe()
79 err = snd_ff_stream_init_duplex(ff); in snd_ff_probe()
83 snd_ff_proc_init(ff); in snd_ff_probe()
85 err = snd_ff_create_midi_devices(ff); in snd_ff_probe()
89 err = snd_ff_create_pcm_devices(ff); in snd_ff_probe()
93 err = snd_ff_create_hwdep_devices(ff); in snd_ff_probe()
109 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_update() local
111 snd_ff_transaction_reregister(ff); in snd_ff_update()
113 snd_ff_stream_update_duplex(ff); in snd_ff_update()
118 struct snd_ff *ff = dev_get_drvdata(&unit->device); in snd_ff_remove() local
121 snd_card_free(ff->card); in snd_ff_remove()