/sound/firewire/oxfw/ |
D | oxfw-midi.c | 13 struct snd_oxfw *oxfw = substream->rmidi->private_data; in midi_capture_open() local 16 err = snd_oxfw_stream_lock_try(oxfw); in midi_capture_open() 20 mutex_lock(&oxfw->mutex); in midi_capture_open() 22 oxfw->capture_substreams++; in midi_capture_open() 23 err = snd_oxfw_stream_start_simplex(oxfw, &oxfw->tx_stream, 0, 0); in midi_capture_open() 25 mutex_unlock(&oxfw->mutex); in midi_capture_open() 28 snd_oxfw_stream_lock_release(oxfw); in midi_capture_open() 35 struct snd_oxfw *oxfw = substream->rmidi->private_data; in midi_playback_open() local 38 err = snd_oxfw_stream_lock_try(oxfw); in midi_playback_open() 42 mutex_lock(&oxfw->mutex); in midi_playback_open() [all …]
|
D | oxfw-stream.c | 42 static int set_rate(struct snd_oxfw *oxfw, unsigned int rate) in set_rate() argument 46 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 51 if (oxfw->has_output) in set_rate() 52 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 58 static int set_stream_format(struct snd_oxfw *oxfw, struct amdtp_stream *s, in set_stream_format() argument 67 if (s == &oxfw->tx_stream) { in set_stream_format() 68 formats = oxfw->tx_stream_formats; in set_stream_format() 71 formats = oxfw->rx_stream_formats; in set_stream_format() 88 if (oxfw->assumed) in set_stream_format() 89 return set_rate(oxfw, rate); in set_stream_format() [all …]
|
D | oxfw.c | 59 static int name_card(struct snd_oxfw *oxfw) in name_card() argument 61 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card() 75 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card() 80 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card() 87 if (oxfw->device_info) { in name_card() 88 d = oxfw->device_info->driver_name; in name_card() 89 v = oxfw->device_info->vendor_name; in name_card() 90 m = oxfw->device_info->model_name; in name_card() 97 strcpy(oxfw->card->driver, d); in name_card() 98 strcpy(oxfw->card->mixername, m); in name_card() [all …]
|
D | oxfw-hwdep.c | 22 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_read() local 26 spin_lock_irq(&oxfw->lock); in hwdep_read() 28 while (!oxfw->dev_lock_changed) { in hwdep_read() 29 prepare_to_wait(&oxfw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read() 30 spin_unlock_irq(&oxfw->lock); in hwdep_read() 32 finish_wait(&oxfw->hwdep_wait, &wait); in hwdep_read() 35 spin_lock_irq(&oxfw->lock); in hwdep_read() 39 if (oxfw->dev_lock_changed) { in hwdep_read() 41 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read() 42 oxfw->dev_lock_changed = false; in hwdep_read() [all …]
|
D | oxfw-control.c | 17 static int oxfw_mute_command(struct snd_oxfw *oxfw, bool *value, in oxfw_mute_command() argument 38 buf[4] = oxfw->device_info->mute_fb_id; /* function block ID */ in oxfw_mute_command() 49 err = fcp_avc_transaction(oxfw->unit, buf, 11, buf, 11, 0x3fe); in oxfw_mute_command() 53 dev_err(&oxfw->unit->device, "short FCP response\n"); in oxfw_mute_command() 58 dev_err(&oxfw->unit->device, "mute command failed\n"); in oxfw_mute_command() 73 static int oxfw_volume_command(struct snd_oxfw *oxfw, s16 *value, in oxfw_volume_command() argument 96 buf[4] = oxfw->device_info->volume_fb_id; /* function block ID */ in oxfw_volume_command() 110 err = fcp_avc_transaction(oxfw->unit, buf, 12, buf, 12, 0x3fe); in oxfw_volume_command() 114 dev_err(&oxfw->unit->device, "short FCP response\n"); in oxfw_volume_command() 119 dev_err(&oxfw->unit->device, "volume command failed\n"); in oxfw_volume_command() [all …]
|
D | oxfw-pcm.c | 121 static int init_hw_params(struct snd_oxfw *oxfw, in init_hw_params() argument 138 stream = &oxfw->tx_stream; in init_hw_params() 139 formats = oxfw->tx_stream_formats; in init_hw_params() 142 stream = &oxfw->rx_stream; in init_hw_params() 143 formats = oxfw->rx_stream_formats; in init_hw_params() 168 struct snd_oxfw *oxfw = substream->private_data; in limit_to_current_params() local 178 err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); in limit_to_current_params() 192 struct snd_oxfw *oxfw = substream->private_data; in pcm_open() local 195 err = snd_oxfw_stream_lock_try(oxfw); in pcm_open() 199 err = init_hw_params(oxfw, substream); in pcm_open() [all …]
|
D | Makefile | 1 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-control.o oxfw-pcm.o \ 2 oxfw-proc.o oxfw-midi.o oxfw-hwdep.o oxfw.o 3 obj-$(CONFIG_SND_OXFW) += snd-oxfw.o
|
D | oxfw.h | 110 int snd_oxfw_stream_init_simplex(struct snd_oxfw *oxfw, 112 int snd_oxfw_stream_start_simplex(struct snd_oxfw *oxfw, 115 void snd_oxfw_stream_stop_simplex(struct snd_oxfw *oxfw, 117 void snd_oxfw_stream_destroy_simplex(struct snd_oxfw *oxfw, 119 void snd_oxfw_stream_update_simplex(struct snd_oxfw *oxfw, 129 int snd_oxfw_stream_get_current_formation(struct snd_oxfw *oxfw, 133 int snd_oxfw_stream_discover(struct snd_oxfw *oxfw); 135 void snd_oxfw_stream_lock_changed(struct snd_oxfw *oxfw); 136 int snd_oxfw_stream_lock_try(struct snd_oxfw *oxfw); 137 void snd_oxfw_stream_lock_release(struct snd_oxfw *oxfw); [all …]
|
D | oxfw-proc.c | 14 struct snd_oxfw *oxfw = entry->private_data; in proc_read_formation() local 21 err = snd_oxfw_stream_get_current_formation(oxfw, in proc_read_formation() 30 format = oxfw->rx_stream_formats[i]; in proc_read_formation() 47 if (!oxfw->has_output) in proc_read_formation() 51 err = snd_oxfw_stream_get_current_formation(oxfw, in proc_read_formation() 60 format = oxfw->tx_stream_formats[i]; in proc_read_formation() 78 static void add_node(struct snd_oxfw *oxfw, struct snd_info_entry *root, in add_node() argument 85 entry = snd_info_create_card_entry(oxfw->card, name, root); in add_node() 89 snd_info_set_text_ops(entry, oxfw, op); in add_node() 94 void snd_oxfw_proc_init(struct snd_oxfw *oxfw) in snd_oxfw_proc_init() argument [all …]
|
/sound/firewire/ |
D | Makefile | 8 obj-$(CONFIG_SND_OXFW) += oxfw/
|
D | Kconfig | 44 will be called snd-oxfw.
|