/linux-4.4.14/sound/firewire/fireworks/ |
D | fireworks_stream.c | 13 init_stream(struct snd_efw *efw, struct amdtp_stream *stream) in init_stream() argument 20 if (stream == &efw->tx_stream) { in init_stream() 21 conn = &efw->out_conn; in init_stream() 25 conn = &efw->in_conn; in init_stream() 30 err = cmp_connection_init(conn, efw->unit, c_dir, 0); in init_stream() 34 err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING); in init_stream() 44 stop_stream(struct snd_efw *efw, struct amdtp_stream *stream) in stop_stream() argument 49 if (stream == &efw->tx_stream) in stop_stream() 50 cmp_connection_break(&efw->out_conn); in stop_stream() 52 cmp_connection_break(&efw->in_conn); in stop_stream() [all …]
|
D | fireworks_midi.c | 13 struct snd_efw *efw = substream->rmidi->private_data; in midi_capture_open() local 16 err = snd_efw_stream_lock_try(efw); in midi_capture_open() 20 atomic_inc(&efw->capture_substreams); in midi_capture_open() 21 err = snd_efw_stream_start_duplex(efw, 0); in midi_capture_open() 23 snd_efw_stream_lock_release(efw); in midi_capture_open() 31 struct snd_efw *efw = substream->rmidi->private_data; in midi_playback_open() local 34 err = snd_efw_stream_lock_try(efw); in midi_playback_open() 38 atomic_inc(&efw->playback_substreams); in midi_playback_open() 39 err = snd_efw_stream_start_duplex(efw, 0); in midi_playback_open() 41 snd_efw_stream_lock_release(efw); in midi_playback_open() [all …]
|
D | fireworks.c | 73 get_hardware_info(struct snd_efw *efw) in get_hardware_info() argument 75 struct fw_device *fw_dev = fw_parent_device(efw->unit); in get_hardware_info() 84 err = snd_efw_command_get_hwinfo(efw, hwinfo); in get_hardware_info() 92 efw->firmware_version = hwinfo->arm_version; in get_hardware_info() 94 strcpy(efw->card->driver, "Fireworks"); in get_hardware_info() 95 strcpy(efw->card->shortname, hwinfo->model_name); in get_hardware_info() 96 strcpy(efw->card->mixername, hwinfo->model_name); in get_hardware_info() 97 snprintf(efw->card->longname, sizeof(efw->card->longname), in get_hardware_info() 101 dev_name(&efw->unit->device), 100 << fw_dev->max_speed); in get_hardware_info() 104 efw->resp_addr_changable = true; in get_hardware_info() [all …]
|
D | fireworks_hwdep.c | 23 hwdep_read_resp_buf(struct snd_efw *efw, char __user *buf, long remained, in hwdep_read_resp_buf() argument 41 while (efw->resp_queues > 0) { in hwdep_read_resp_buf() 42 t = (struct snd_efw_transaction *)(efw->pull_ptr); in hwdep_read_resp_buf() 52 (unsigned int)(efw->pull_ptr - efw->resp_buf); in hwdep_read_resp_buf() 55 if (copy_to_user(buf, efw->pull_ptr, till_end)) in hwdep_read_resp_buf() 58 efw->pull_ptr += till_end; in hwdep_read_resp_buf() 59 if (efw->pull_ptr >= efw->resp_buf + in hwdep_read_resp_buf() 61 efw->pull_ptr -= snd_efw_resp_buf_size; in hwdep_read_resp_buf() 69 efw->resp_queues--; in hwdep_read_resp_buf() 76 hwdep_read_locked(struct snd_efw *efw, char __user *buf, long count, in hwdep_read_locked() argument [all …]
|
D | fireworks_pcm.c | 146 pcm_init_hw_params(struct snd_efw *efw, in pcm_init_hw_params() argument 163 s = &efw->tx_stream; in pcm_init_hw_params() 164 pcm_channels = efw->pcm_capture_channels; in pcm_init_hw_params() 167 s = &efw->rx_stream; in pcm_init_hw_params() 168 pcm_channels = efw->pcm_playback_channels; in pcm_init_hw_params() 172 runtime->hw.rates = efw->supported_sampling_rate, in pcm_init_hw_params() 197 struct snd_efw *efw = substream->private_data; in pcm_open() local 202 err = snd_efw_stream_lock_try(efw); in pcm_open() 206 err = pcm_init_hw_params(efw, substream); in pcm_open() 210 err = snd_efw_command_get_clock_source(efw, &clock_source); in pcm_open() [all …]
|
D | fireworks_proc.c | 31 struct snd_efw *efw = entry->private_data; in proc_read_hwinfo() local 39 if (snd_efw_command_get_hwinfo(efw, hwinfo) < 0) in proc_read_hwinfo() 108 struct snd_efw *efw = entry->private_data; in proc_read_clock() local 112 if (snd_efw_command_get_clock_source(efw, &clock_source) < 0) in proc_read_clock() 115 if (snd_efw_command_get_sampling_rate(efw, &sampling_rate) < 0) in proc_read_clock() 131 struct snd_efw *efw = entry->private_data; in proc_read_phys_meters() local 139 (efw->phys_in + efw->phys_out) * sizeof(u32); in proc_read_phys_meters() 144 err = snd_efw_command_get_phys_meters(efw, meters, size); in proc_read_phys_meters() 151 max = min(efw->phys_out, meters->out_meters); in proc_read_phys_meters() 154 for (g = 0; g < efw->phys_out_grp_count; g++) { in proc_read_phys_meters() [all …]
|
D | fireworks.h | 120 void snd_efw_transaction_add_instance(struct snd_efw *efw); 121 void snd_efw_transaction_remove_instance(struct snd_efw *efw); 193 int snd_efw_command_set_resp_addr(struct snd_efw *efw, 195 int snd_efw_command_set_tx_mode(struct snd_efw *efw, 197 int snd_efw_command_get_hwinfo(struct snd_efw *efw, 199 int snd_efw_command_get_phys_meters(struct snd_efw *efw, 202 int snd_efw_command_get_clock_source(struct snd_efw *efw, 204 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate); 205 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate); 207 int snd_efw_stream_init_duplex(struct snd_efw *efw); [all …]
|
D | fireworks_command.c | 102 efw_transaction(struct snd_efw *efw, unsigned int category, in efw_transaction() argument 123 spin_lock(&efw->lock); in efw_transaction() 124 if ((efw->seqnum < KERNEL_SEQNUM_MIN) || in efw_transaction() 125 (efw->seqnum >= KERNEL_SEQNUM_MAX - 2)) in efw_transaction() 126 efw->seqnum = KERNEL_SEQNUM_MIN; in efw_transaction() 128 efw->seqnum += 2; in efw_transaction() 129 seqnum = efw->seqnum; in efw_transaction() 130 spin_unlock(&efw->lock); in efw_transaction() 145 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes, in efw_transaction() 155 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n", in efw_transaction() [all …]
|
D | fireworks_transaction.c | 119 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) in copy_resp_to_buf() argument 124 spin_lock_irq(&efw->lock); in copy_resp_to_buf() 129 if (efw->push_ptr < efw->pull_ptr) in copy_resp_to_buf() 130 capacity = (unsigned int)(efw->pull_ptr - efw->push_ptr); in copy_resp_to_buf() 133 (unsigned int)(efw->push_ptr - efw->pull_ptr); in copy_resp_to_buf() 144 (unsigned int)(efw->push_ptr - efw->resp_buf); in copy_resp_to_buf() 147 memcpy(efw->push_ptr, data, till_end); in copy_resp_to_buf() 149 efw->push_ptr += till_end; in copy_resp_to_buf() 150 if (efw->push_ptr >= efw->resp_buf + snd_efw_resp_buf_size) in copy_resp_to_buf() 151 efw->push_ptr -= snd_efw_resp_buf_size; in copy_resp_to_buf() [all …]
|