Searched refs:dg00x (Results 1 - 8 of 8) sorted by relevance

/linux-master/sound/firewire/digi00x/
H A Ddigi00x-stream.c30 int snd_dg00x_stream_get_local_rate(struct snd_dg00x *dg00x, unsigned int *rate) argument
36 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST,
51 int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate) argument
64 return snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST,
69 int snd_dg00x_stream_get_clock(struct snd_dg00x *dg00x, argument
75 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST,
88 int snd_dg00x_stream_check_external_clock(struct snd_dg00x *dg00x, bool *detect) argument
93 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST,
102 int snd_dg00x_stream_get_external_rate(struct snd_dg00x *dg00x, argument
109 err = snd_fw_transaction(dg00x
125 finish_session(struct snd_dg00x *dg00x) argument
145 begin_session(struct snd_dg00x *dg00x) argument
188 keep_resources(struct snd_dg00x *dg00x, struct amdtp_stream *stream, unsigned int rate) argument
218 init_stream(struct snd_dg00x *dg00x, struct amdtp_stream *s) argument
243 destroy_stream(struct snd_dg00x *dg00x, struct amdtp_stream *s) argument
253 snd_dg00x_stream_init_duplex(struct snd_dg00x *dg00x) argument
280 snd_dg00x_stream_destroy_duplex(struct snd_dg00x *dg00x) argument
288 snd_dg00x_stream_reserve_duplex(struct snd_dg00x *dg00x, unsigned int rate, unsigned int frames_per_period, unsigned int frames_per_buffer) argument
335 snd_dg00x_stream_start_duplex(struct snd_dg00x *dg00x) argument
402 snd_dg00x_stream_stop_duplex(struct snd_dg00x *dg00x) argument
413 snd_dg00x_stream_update_duplex(struct snd_dg00x *dg00x) argument
422 snd_dg00x_stream_lock_changed(struct snd_dg00x *dg00x) argument
428 snd_dg00x_stream_lock_try(struct snd_dg00x *dg00x) argument
449 snd_dg00x_stream_lock_release(struct snd_dg00x *dg00x) argument
[all...]
H A Ddigi00x-transaction.c11 static void handle_unknown_message(struct snd_dg00x *dg00x, argument
16 spin_lock_irqsave(&dg00x->lock, flags);
17 dg00x->msg = be32_to_cpu(*buf);
18 spin_unlock_irqrestore(&dg00x->lock, flags);
20 wake_up(&dg00x->hwdep_wait);
28 struct snd_dg00x *dg00x = callback_data; local
33 if (offset == dg00x->async_handler.offset)
34 handle_unknown_message(dg00x, offset, buf);
37 int snd_dg00x_transaction_reregister(struct snd_dg00x *dg00x) argument
39 struct fw_device *device = fw_parent_device(dg00x
51 snd_dg00x_transaction_unregister(struct snd_dg00x *dg00x) argument
61 snd_dg00x_transaction_register(struct snd_dg00x *dg00x) argument
[all...]
H A Ddigi00x-hwdep.c22 struct snd_dg00x *dg00x = hwdep->private_data; local
26 spin_lock_irq(&dg00x->lock);
28 while (!dg00x->dev_lock_changed && dg00x->msg == 0) {
29 prepare_to_wait(&dg00x->hwdep_wait, &wait, TASK_INTERRUPTIBLE);
30 spin_unlock_irq(&dg00x->lock);
32 finish_wait(&dg00x->hwdep_wait, &wait);
35 spin_lock_irq(&dg00x->lock);
39 if (dg00x->dev_lock_changed) {
41 event.lock_status.status = (dg00x
65 struct snd_dg00x *dg00x = hwdep->private_data; local
80 hwdep_get_info(struct snd_dg00x *dg00x, void __user *arg) argument
99 hwdep_lock(struct snd_dg00x *dg00x) argument
117 hwdep_unlock(struct snd_dg00x *dg00x) argument
137 struct snd_dg00x *dg00x = hwdep->private_data; local
150 struct snd_dg00x *dg00x = hwdep->private_data; local
175 snd_dg00x_create_hwdep_device(struct snd_dg00x *dg00x) argument
[all...]
H A Ddigi00x.c19 static int name_card(struct snd_dg00x *dg00x) argument
21 struct fw_device *fw_dev = fw_parent_device(dg00x->unit);
26 err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name,
33 strcpy(dg00x->card->driver, "Digi00x");
34 strcpy(dg00x->card->shortname, model);
35 strcpy(dg00x->card->mixername, model);
36 snprintf(dg00x->card->longname, sizeof(dg00x->card->longname),
39 dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed);
46 struct snd_dg00x *dg00x local
58 struct snd_dg00x *dg00x; local
115 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); local
126 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); local
[all...]
H A Ddigi00x-midi.c12 struct snd_dg00x *dg00x = substream->rmidi->private_data; local
15 err = snd_dg00x_stream_lock_try(dg00x);
19 mutex_lock(&dg00x->mutex);
20 err = snd_dg00x_stream_reserve_duplex(dg00x, 0, 0, 0);
22 ++dg00x->substreams_counter;
23 err = snd_dg00x_stream_start_duplex(dg00x);
25 --dg00x->substreams_counter;
27 mutex_unlock(&dg00x->mutex);
29 snd_dg00x_stream_lock_release(dg00x);
36 struct snd_dg00x *dg00x local
50 struct snd_dg00x *dg00x = substream->rmidi->private_data; local
72 struct snd_dg00x *dg00x = substream->rmidi->private_data; local
91 set_substream_names(struct snd_dg00x *dg00x, struct snd_rawmidi *rmidi, bool is_console) argument
116 add_substream_pair(struct snd_dg00x *dg00x, unsigned int out_ports, unsigned int in_ports, bool is_console) argument
159 snd_dg00x_create_midi_devices(struct snd_dg00x *dg00x) argument
[all...]
H A Ddigi00x-proc.c10 static int get_optical_iface_mode(struct snd_dg00x *dg00x, argument
16 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST,
38 struct snd_dg00x *dg00x = entry->private_data; local
44 if (get_optical_iface_mode(dg00x, &mode) < 0)
46 if (snd_dg00x_stream_get_local_rate(dg00x, &rate) < 0)
48 if (snd_dg00x_stream_get_clock(dg00x, &clock) < 0)
58 if (snd_dg00x_stream_check_external_clock(dg00x, &detect) < 0)
64 if (snd_dg00x_stream_get_external_rate(dg00x, &rate) >= 0)
68 void snd_dg00x_proc_init(struct snd_dg00x *dg00x) argument
76 root = snd_info_create_card_entry(dg00x
[all...]
H A Ddigi00x-pcm.c57 static int pcm_init_hw_params(struct snd_dg00x *dg00x, argument
68 s = &dg00x->tx_stream;
71 s = &dg00x->rx_stream;
102 struct snd_dg00x *dg00x = substream->private_data; local
103 struct amdtp_domain *d = &dg00x->domain;
108 err = snd_dg00x_stream_lock_try(dg00x);
112 err = pcm_init_hw_params(dg00x, substream);
117 err = snd_dg00x_stream_get_clock(dg00x, &clock);
121 err = snd_dg00x_stream_check_external_clock(dg00x, &detect);
130 mutex_lock(&dg00x
180 struct snd_dg00x *dg00x = substream->private_data; local
190 struct snd_dg00x *dg00x = substream->private_data; local
211 struct snd_dg00x *dg00x = substream->private_data; local
227 struct snd_dg00x *dg00x = substream->private_data; local
243 struct snd_dg00x *dg00x = substream->private_data; local
261 struct snd_dg00x *dg00x = substream->private_data; local
279 struct snd_dg00x *dg00x = substream->private_data; local
297 struct snd_dg00x *dg00x = sbstrm->private_data; local
304 struct snd_dg00x *dg00x = sbstrm->private_data; local
311 struct snd_dg00x *dg00x = substream->private_data; local
318 struct snd_dg00x *dg00x = substream->private_data; local
323 snd_dg00x_create_pcm_devices(struct snd_dg00x *dg00x) argument
[all...]
H A Ddigi00x.h125 int snd_dg00x_transaction_register(struct snd_dg00x *dg00x);
126 int snd_dg00x_transaction_reregister(struct snd_dg00x *dg00x);
127 void snd_dg00x_transaction_unregister(struct snd_dg00x *dg00x);
131 int snd_dg00x_stream_get_external_rate(struct snd_dg00x *dg00x,
133 int snd_dg00x_stream_get_local_rate(struct snd_dg00x *dg00x,
135 int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate);
136 int snd_dg00x_stream_get_clock(struct snd_dg00x *dg00x,
138 int snd_dg00x_stream_check_external_clock(struct snd_dg00x *dg00x,
140 int snd_dg00x_stream_init_duplex(struct snd_dg00x *dg00x);
141 int snd_dg00x_stream_reserve_duplex(struct snd_dg00x *dg00x, unsigne
[all...]

Completed in 311 milliseconds