Lines Matching refs:tscm
39 static int identify_model(struct snd_tscm *tscm) in identify_model() argument
41 struct fw_device *fw_dev = fw_parent_device(tscm->unit); in identify_model()
48 dev_err(&tscm->unit->device, in identify_model()
64 tscm->spec = &model_specs[i]; in identify_model()
68 if (tscm->spec == NULL) in identify_model()
71 strcpy(tscm->card->driver, "FW-TASCAM"); in identify_model()
72 strcpy(tscm->card->shortname, model); in identify_model()
73 strcpy(tscm->card->mixername, model); in identify_model()
74 snprintf(tscm->card->longname, sizeof(tscm->card->longname), in identify_model()
77 dev_name(&tscm->unit->device), 100 << fw_dev->max_speed); in identify_model()
84 struct snd_tscm *tscm = card->private_data; in tscm_card_free() local
86 snd_tscm_transaction_unregister(tscm); in tscm_card_free()
87 snd_tscm_stream_destroy_duplex(tscm); in tscm_card_free()
89 fw_unit_put(tscm->unit); in tscm_card_free()
91 mutex_destroy(&tscm->mutex); in tscm_card_free()
98 struct snd_tscm *tscm; in snd_tscm_probe() local
109 tscm = card->private_data; in snd_tscm_probe()
110 tscm->card = card; in snd_tscm_probe()
111 tscm->unit = fw_unit_get(unit); in snd_tscm_probe()
113 mutex_init(&tscm->mutex); in snd_tscm_probe()
114 spin_lock_init(&tscm->lock); in snd_tscm_probe()
115 init_waitqueue_head(&tscm->hwdep_wait); in snd_tscm_probe()
117 err = identify_model(tscm); in snd_tscm_probe()
121 snd_tscm_proc_init(tscm); in snd_tscm_probe()
123 err = snd_tscm_stream_init_duplex(tscm); in snd_tscm_probe()
127 err = snd_tscm_create_pcm_devices(tscm); in snd_tscm_probe()
131 err = snd_tscm_transaction_register(tscm); in snd_tscm_probe()
135 err = snd_tscm_create_midi_devices(tscm); in snd_tscm_probe()
139 err = snd_tscm_create_hwdep_device(tscm); in snd_tscm_probe()
147 dev_set_drvdata(&unit->device, tscm); in snd_tscm_probe()
157 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); in snd_tscm_update() local
159 snd_tscm_transaction_reregister(tscm); in snd_tscm_update()
161 mutex_lock(&tscm->mutex); in snd_tscm_update()
162 snd_tscm_stream_update_duplex(tscm); in snd_tscm_update()
163 mutex_unlock(&tscm->mutex); in snd_tscm_update()
168 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); in snd_tscm_remove() local
171 snd_card_free_when_closed(tscm->card); in snd_tscm_remove()