Home
last modified time | relevance | path

Searched refs:efw (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/sound/firewire/fireworks/
A Dfireworks_stream.c132 err = init_stream(efw, &efw->tx_stream); in snd_efw_stream_init_duplex()
136 err = init_stream(efw, &efw->rx_stream); in snd_efw_stream_init_duplex()
138 destroy_stream(efw, &efw->tx_stream); in snd_efw_stream_init_duplex()
144 destroy_stream(efw, &efw->tx_stream); in snd_efw_stream_init_duplex()
145 destroy_stream(efw, &efw->rx_stream); in snd_efw_stream_init_duplex()
152 destroy_stream(efw, &efw->tx_stream); in snd_efw_stream_init_duplex()
153 destroy_stream(efw, &efw->rx_stream); in snd_efw_stream_init_duplex()
272 if (efw->is_fireworks3 && !efw->is_af9) in snd_efw_stream_start_duplex()
277 err = start_stream(efw, &efw->rx_stream, rate); in snd_efw_stream_start_duplex()
336 destroy_stream(efw, &efw->rx_stream); in snd_efw_stream_destroy_duplex()
[all …]
A Dfireworks_midi.c19 mutex_lock(&efw->mutex); in midi_open()
22 ++efw->substreams_counter; in midi_open()
25 --efw->substreams_counter; in midi_open()
27 mutex_unlock(&efw->mutex); in midi_open()
38 mutex_lock(&efw->mutex); in midi_close()
39 --efw->substreams_counter; in midi_close()
41 mutex_unlock(&efw->mutex); in midi_close()
109 err = snd_rawmidi_new(efw->card, efw->card->driver, 0, in snd_efw_create_midi_devices()
110 efw->midi_out_ports, efw->midi_in_ports, in snd_efw_create_midi_devices()
117 rmidi->private_data = efw; in snd_efw_create_midi_devices()
[all …]
A Dfireworks_hwdep.c42 spin_lock_irq(&efw->lock); in hwdep_read_resp_buf()
49 pull_ptr = efw->pull_ptr; in hwdep_read_resp_buf()
91 efw->pull_ptr = pull_ptr; in hwdep_read_resp_buf()
106 spin_lock_irq(&efw->lock); in hwdep_read_locked()
130 spin_lock_irq(&efw->lock); in hwdep_read()
133 queued = efw->push_ptr != efw->pull_ptr; in hwdep_read()
144 queued = efw->push_ptr != efw->pull_ptr; in hwdep_read()
196 if (efw->dev_lock_changed || efw->pull_ptr != efw->push_ptr) in hwdep_poll()
252 efw->dev_lock_count = 0; in hwdep_unlock()
270 efw->dev_lock_count = 0; in hwdep_release()
[all …]
A Dfireworks.c96 snprintf(efw->card->longname, sizeof(efw->card->longname), in get_hardware_info()
173 efw->is_af9 = true; in get_hardware_info()
199 fw_unit_put(efw->unit); in efw_card_free()
206 struct snd_efw *efw; in efw_probe() local
233 efw->card = card; in efw_probe()
236 mutex_init(&efw->mutex); in efw_probe()
243 if (!efw->resp_buf) { in efw_probe()
247 efw->pull_ptr = efw->push_ptr = efw->resp_buf; in efw_probe()
258 snd_efw_proc_init(efw); in efw_probe()
260 if (efw->midi_out_ports || efw->midi_in_ports) { in efw_probe()
[all …]
A Dfireworks_pcm.c142 s = &efw->tx_stream; in pcm_init_hw_params()
146 s = &efw->rx_stream; in pcm_init_hw_params()
192 mutex_lock(&efw->mutex); in pcm_open()
258 mutex_lock(&efw->mutex); in pcm_hw_params()
273 mutex_lock(&efw->mutex); in pcm_hw_free()
347 return amdtp_domain_stream_pcm_pointer(&efw->domain, &efw->tx_stream); in pcm_capture_pointer()
353 return amdtp_domain_stream_pcm_pointer(&efw->domain, &efw->rx_stream); in pcm_playback_pointer()
360 return amdtp_domain_stream_pcm_ack(&efw->domain, &efw->tx_stream); in pcm_capture_ack()
367 return amdtp_domain_stream_pcm_ack(&efw->domain, &efw->rx_stream); in pcm_playback_ack()
395 err = snd_pcm_new(efw->card, efw->card->driver, 0, 1, 1, &pcm); in snd_efw_create_pcm_devices()
[all …]
A Dfireworks_proc.c30 struct snd_efw *efw = entry->private_data; in proc_read_hwinfo() local
107 struct snd_efw *efw = entry->private_data; in proc_read_clock() local
130 struct snd_efw *efw = entry->private_data; in proc_read_phys_meters() local
138 (efw->phys_in + efw->phys_out) * sizeof(u32); in proc_read_phys_meters()
181 struct snd_efw *efw = entry->private_data; in proc_read_queues_state() local
184 if (efw->pull_ptr > efw->push_ptr) in proc_read_queues_state()
186 (unsigned int)(efw->pull_ptr - efw->push_ptr); in proc_read_queues_state()
188 consumed = (unsigned int)(efw->push_ptr - efw->pull_ptr); in proc_read_queues_state()
202 snd_info_set_text_ops(entry, efw, op); in add_node()
205 void snd_efw_proc_init(struct snd_efw *efw) in snd_efw_proc_init() argument
[all …]
A Dfireworks.h192 int snd_efw_command_set_resp_addr(struct snd_efw *efw,
194 int snd_efw_command_set_tx_mode(struct snd_efw *efw,
196 int snd_efw_command_get_hwinfo(struct snd_efw *efw,
206 int snd_efw_stream_init_duplex(struct snd_efw *efw);
210 int snd_efw_stream_start_duplex(struct snd_efw *efw);
211 void snd_efw_stream_stop_duplex(struct snd_efw *efw);
215 int snd_efw_stream_lock_try(struct snd_efw *efw);
218 void snd_efw_proc_init(struct snd_efw *efw);
220 int snd_efw_create_midi_devices(struct snd_efw *efw);
222 int snd_efw_create_pcm_devices(struct snd_efw *efw);
[all …]
A Dfireworks_command.c122 spin_lock(&efw->lock); in efw_transaction()
123 if ((efw->seqnum < KERNEL_SEQNUM_MIN) || in efw_transaction()
125 efw->seqnum = KERNEL_SEQNUM_MIN; in efw_transaction()
127 efw->seqnum += 2; in efw_transaction()
128 seqnum = efw->seqnum; in efw_transaction()
129 spin_unlock(&efw->lock); in efw_transaction()
189 if (!efw->resp_addr_changable) in snd_efw_command_set_resp_addr()
293 command_set_clock(struct snd_efw *efw, in command_set_clock() argument
306 err = command_get_clock(efw, &clock); in command_set_clock()
348 err = command_get_clock(efw, &clock); in snd_efw_command_get_clock_source()
[all …]
A Dfireworks_transaction.c126 spin_lock(&efw->lock); in copy_resp_to_buf()
128 if (efw->push_ptr < efw->pull_ptr) in copy_resp_to_buf()
129 capacity = (unsigned int)(efw->pull_ptr - efw->push_ptr); in copy_resp_to_buf()
132 (unsigned int)(efw->push_ptr - efw->pull_ptr); in copy_resp_to_buf()
143 (unsigned int)(efw->push_ptr - efw->resp_buf); in copy_resp_to_buf()
149 if (efw->push_ptr >= efw->resp_buf + snd_efw_resp_buf_size) in copy_resp_to_buf()
169 struct snd_efw *efw; in handle_resp_for_user() local
175 efw = instances[i]; in handle_resp_for_user()
176 if (efw == NULL) in handle_resp_for_user()
267 instances[i] = efw; in snd_efw_transaction_add_instance()
[all …]

Completed in 122 milliseconds