Lines Matching refs:dg00x
19 static int name_card(struct snd_dg00x *dg00x) in name_card() argument
21 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); in name_card()
26 err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name, in name_card()
33 strcpy(dg00x->card->driver, "Digi00x"); in name_card()
34 strcpy(dg00x->card->shortname, model); in name_card()
35 strcpy(dg00x->card->mixername, model); in name_card()
36 snprintf(dg00x->card->longname, sizeof(dg00x->card->longname), in name_card()
39 dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed); in name_card()
46 struct snd_dg00x *dg00x = card->private_data; in dg00x_card_free() local
48 snd_dg00x_stream_destroy_duplex(dg00x); in dg00x_card_free()
49 snd_dg00x_transaction_unregister(dg00x); in dg00x_card_free()
51 mutex_destroy(&dg00x->mutex); in dg00x_card_free()
52 fw_unit_put(dg00x->unit); in dg00x_card_free()
58 struct snd_dg00x *dg00x; in snd_dg00x_probe() local
61 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, sizeof(*dg00x), &card); in snd_dg00x_probe()
66 dg00x = card->private_data; in snd_dg00x_probe()
67 dg00x->unit = fw_unit_get(unit); in snd_dg00x_probe()
68 dev_set_drvdata(&unit->device, dg00x); in snd_dg00x_probe()
69 dg00x->card = card; in snd_dg00x_probe()
71 mutex_init(&dg00x->mutex); in snd_dg00x_probe()
72 spin_lock_init(&dg00x->lock); in snd_dg00x_probe()
73 init_waitqueue_head(&dg00x->hwdep_wait); in snd_dg00x_probe()
75 dg00x->is_console = entry->model_id == MODEL_CONSOLE; in snd_dg00x_probe()
77 err = name_card(dg00x); in snd_dg00x_probe()
81 err = snd_dg00x_stream_init_duplex(dg00x); in snd_dg00x_probe()
85 snd_dg00x_proc_init(dg00x); in snd_dg00x_probe()
87 err = snd_dg00x_create_pcm_devices(dg00x); in snd_dg00x_probe()
91 err = snd_dg00x_create_midi_devices(dg00x); in snd_dg00x_probe()
95 err = snd_dg00x_create_hwdep_device(dg00x); in snd_dg00x_probe()
99 err = snd_dg00x_transaction_register(dg00x); in snd_dg00x_probe()
115 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); in snd_dg00x_update() local
117 snd_dg00x_transaction_reregister(dg00x); in snd_dg00x_update()
119 mutex_lock(&dg00x->mutex); in snd_dg00x_update()
120 snd_dg00x_stream_update_duplex(dg00x); in snd_dg00x_update()
121 mutex_unlock(&dg00x->mutex); in snd_dg00x_update()
126 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); in snd_dg00x_remove() local
129 snd_card_free(dg00x->card); in snd_dg00x_remove()