/linux-5.19.10/sound/firewire/oxfw/ |
D | oxfw-stream.c | 41 static int set_rate(struct snd_oxfw *oxfw, unsigned int rate) in set_rate() argument 45 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 50 if (oxfw->has_output) in set_rate() 51 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 57 static int set_stream_format(struct snd_oxfw *oxfw, struct amdtp_stream *s, in set_stream_format() argument 66 if (s == &oxfw->tx_stream) { in set_stream_format() 67 formats = oxfw->tx_stream_formats; in set_stream_format() 70 formats = oxfw->rx_stream_formats; in set_stream_format() 87 if (oxfw->assumed) in set_stream_format() 88 return set_rate(oxfw, rate); in set_stream_format() [all …]
|
D | oxfw-midi.c | 12 struct snd_oxfw *oxfw = substream->rmidi->private_data; in midi_capture_open() local 15 err = snd_oxfw_stream_lock_try(oxfw); in midi_capture_open() 19 mutex_lock(&oxfw->mutex); in midi_capture_open() 21 err = snd_oxfw_stream_reserve_duplex(oxfw, &oxfw->tx_stream, 0, 0, 0, 0); in midi_capture_open() 23 ++oxfw->substreams_count; in midi_capture_open() 24 err = snd_oxfw_stream_start_duplex(oxfw); in midi_capture_open() 26 --oxfw->substreams_count; in midi_capture_open() 29 mutex_unlock(&oxfw->mutex); in midi_capture_open() 32 snd_oxfw_stream_lock_release(oxfw); in midi_capture_open() 39 struct snd_oxfw *oxfw = substream->rmidi->private_data; in midi_playback_open() local [all …]
|
D | oxfw.c | 64 static int name_card(struct snd_oxfw *oxfw, const struct ieee1394_device_id *entry) in name_card() argument 66 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card() 81 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card() 86 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card() 93 oxfw->quirks |= SND_OXFW_QUIRK_JUMBO_PAYLOAD; in name_card() 107 strcpy(oxfw->card->driver, d); in name_card() 108 strcpy(oxfw->card->mixername, m); in name_card() 109 strcpy(oxfw->card->shortname, m); in name_card() 111 snprintf(oxfw->card->longname, sizeof(oxfw->card->longname), in name_card() 115 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card() [all …]
|
D | oxfw-hwdep.c | 21 struct snd_oxfw *oxfw = hwdep->private_data; in hwdep_read() local 25 spin_lock_irq(&oxfw->lock); in hwdep_read() 27 while (!oxfw->dev_lock_changed) { in hwdep_read() 28 prepare_to_wait(&oxfw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read() 29 spin_unlock_irq(&oxfw->lock); in hwdep_read() 31 finish_wait(&oxfw->hwdep_wait, &wait); in hwdep_read() 34 spin_lock_irq(&oxfw->lock); in hwdep_read() 39 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read() 40 oxfw->dev_lock_changed = false; in hwdep_read() 44 spin_unlock_irq(&oxfw->lock); in hwdep_read() [all …]
|
D | oxfw-pcm.c | 109 static int init_hw_params(struct snd_oxfw *oxfw, in init_hw_params() argument 119 stream = &oxfw->tx_stream; in init_hw_params() 120 formats = oxfw->tx_stream_formats; in init_hw_params() 123 stream = &oxfw->rx_stream; in init_hw_params() 124 formats = oxfw->rx_stream_formats; in init_hw_params() 148 struct snd_oxfw *oxfw = substream->private_data; in limit_to_current_params() local 158 err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); in limit_to_current_params() 172 struct snd_oxfw *oxfw = substream->private_data; in pcm_open() local 173 struct amdtp_domain *d = &oxfw->domain; in pcm_open() 176 err = snd_oxfw_stream_lock_try(oxfw); in pcm_open() [all …]
|
D | oxfw.h | 123 int snd_oxfw_stream_init_duplex(struct snd_oxfw *oxfw); 124 int snd_oxfw_stream_reserve_duplex(struct snd_oxfw *oxfw, 129 int snd_oxfw_stream_start_duplex(struct snd_oxfw *oxfw); 130 void snd_oxfw_stream_stop_duplex(struct snd_oxfw *oxfw); 131 void snd_oxfw_stream_destroy_duplex(struct snd_oxfw *oxfw); 132 void snd_oxfw_stream_update_duplex(struct snd_oxfw *oxfw); 141 int snd_oxfw_stream_get_current_formation(struct snd_oxfw *oxfw, 145 int snd_oxfw_stream_discover(struct snd_oxfw *oxfw); 147 void snd_oxfw_stream_lock_changed(struct snd_oxfw *oxfw); 148 int snd_oxfw_stream_lock_try(struct snd_oxfw *oxfw); [all …]
|
D | Makefile | 2 snd-oxfw-objs := oxfw-command.o oxfw-stream.o oxfw-pcm.o oxfw-proc.o \ 3 oxfw-midi.o oxfw-hwdep.o oxfw-spkr.o oxfw-scs1x.o oxfw.o 4 obj-$(CONFIG_SND_OXFW) += snd-oxfw.o
|
D | oxfw-proc.c | 13 struct snd_oxfw *oxfw = entry->private_data; in proc_read_formation() local 20 err = snd_oxfw_stream_get_current_formation(oxfw, in proc_read_formation() 29 format = oxfw->rx_stream_formats[i]; in proc_read_formation() 46 if (!oxfw->has_output) in proc_read_formation() 50 err = snd_oxfw_stream_get_current_formation(oxfw, in proc_read_formation() 59 format = oxfw->tx_stream_formats[i]; in proc_read_formation() 77 static void add_node(struct snd_oxfw *oxfw, struct snd_info_entry *root, in add_node() argument 84 entry = snd_info_create_card_entry(oxfw->card, name, root); in add_node() 86 snd_info_set_text_ops(entry, oxfw, op); in add_node() 89 void snd_oxfw_proc_init(struct snd_oxfw *oxfw) in snd_oxfw_proc_init() argument [all …]
|
D | oxfw-spkr.c | 148 struct snd_oxfw *oxfw = control->private_data; in spkr_mute_get() local 149 struct fw_spkr *spkr = oxfw->spec; in spkr_mute_get() 159 struct snd_oxfw *oxfw = control->private_data; in spkr_mute_put() local 160 struct fw_spkr *spkr = oxfw->spec; in spkr_mute_put() 169 err = avc_audio_feature_mute(oxfw->unit, spkr->mute_fb_id, &mute, in spkr_mute_put() 181 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_info() local 182 struct fw_spkr *spkr = oxfw->spec; in spkr_volume_info() 197 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_get() local 198 struct fw_spkr *spkr = oxfw->spec; in spkr_volume_get() 210 struct snd_oxfw *oxfw = control->private_data; in spkr_volume_put() local [all …]
|
D | oxfw-scs1x.c | 334 static int register_address(struct snd_oxfw *oxfw) in register_address() argument 336 struct fw_scs1x *scs = oxfw->spec; in register_address() 341 return snd_fw_transaction(oxfw->unit, TCODE_WRITE_BLOCK_REQUEST, in register_address() 352 void snd_oxfw_scs1x_update(struct snd_oxfw *oxfw) in snd_oxfw_scs1x_update() argument 354 register_address(oxfw); in snd_oxfw_scs1x_update() 357 int snd_oxfw_scs1x_add(struct snd_oxfw *oxfw) in snd_oxfw_scs1x_add() argument 374 scs = devm_kzalloc(&oxfw->card->card_dev, sizeof(struct fw_scs1x), in snd_oxfw_scs1x_add() 378 scs->fw_dev = fw_parent_device(oxfw->unit); in snd_oxfw_scs1x_add() 379 oxfw->spec = scs; in snd_oxfw_scs1x_add() 390 err = register_address(oxfw); in snd_oxfw_scs1x_add() [all …]
|
/linux-5.19.10/sound/firewire/ |
D | Makefile | 11 obj-$(CONFIG_SND_OXFW) += oxfw/
|
D | Kconfig | 65 will be called snd-oxfw.
|