Home
last modified time | relevance | path

Searched refs:bebob (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/sound/firewire/bebob/
Dbebob_stream.c64 snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *curr_rate) in snd_bebob_stream_get_rate() argument
71 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate()
79 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate()
90 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate()
97 snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate) in snd_bebob_stream_set_rate() argument
101 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate()
106 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate()
120 int snd_bebob_stream_get_clock_src(struct snd_bebob *bebob, in snd_bebob_stream_get_clock_src() argument
123 const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; in snd_bebob_stream_get_clock_src()
131 err = clk_spec->get(bebob, &id); in snd_bebob_stream_get_clock_src()
[all …]
Dbebob_midi.c12 struct snd_bebob *bebob = substream->rmidi->private_data; in midi_open() local
15 err = snd_bebob_stream_lock_try(bebob); in midi_open()
19 mutex_lock(&bebob->mutex); in midi_open()
20 err = snd_bebob_stream_reserve_duplex(bebob, 0, 0, 0); in midi_open()
22 ++bebob->substreams_counter; in midi_open()
23 err = snd_bebob_stream_start_duplex(bebob); in midi_open()
25 --bebob->substreams_counter; in midi_open()
27 mutex_unlock(&bebob->mutex); in midi_open()
29 snd_bebob_stream_lock_release(bebob); in midi_open()
36 struct snd_bebob *bebob = substream->rmidi->private_data; in midi_close() local
[all …]
Dbebob_hwdep.c22 struct snd_bebob *bebob = hwdep->private_data; in hwdep_read() local
26 spin_lock_irq(&bebob->lock); in hwdep_read()
28 while (!bebob->dev_lock_changed) { in hwdep_read()
29 prepare_to_wait(&bebob->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
30 spin_unlock_irq(&bebob->lock); in hwdep_read()
32 finish_wait(&bebob->hwdep_wait, &wait); in hwdep_read()
35 spin_lock_irq(&bebob->lock); in hwdep_read()
40 if (bebob->dev_lock_changed) { in hwdep_read()
42 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read()
43 bebob->dev_lock_changed = false; in hwdep_read()
[all …]
Dbebob.c69 name_device(struct snd_bebob *bebob) in name_device() argument
71 struct fw_device *fw_dev = fw_parent_device(bebob->unit); in name_device()
87 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device()
93 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device()
99 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device()
105 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device()
110 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, in name_device()
114 bebob->version = version; in name_device()
116 strcpy(bebob->card->driver, "BeBoB"); in name_device()
117 strcpy(bebob->card->shortname, model); in name_device()
[all …]
Dbebob_pcm.c95 pcm_init_hw_params(struct snd_bebob *bebob, in pcm_init_hw_params() argument
105 s = &bebob->tx_stream; in pcm_init_hw_params()
106 formations = bebob->tx_stream_formations; in pcm_init_hw_params()
109 s = &bebob->rx_stream; in pcm_init_hw_params()
110 formations = bebob->rx_stream_formations; in pcm_init_hw_params()
134 struct snd_bebob *bebob = substream->private_data; in pcm_open() local
135 const struct snd_bebob_rate_spec *spec = bebob->spec->rate; in pcm_open()
136 struct amdtp_domain *d = &bebob->domain; in pcm_open()
140 err = snd_bebob_stream_lock_try(bebob); in pcm_open()
144 err = pcm_init_hw_params(bebob, substream); in pcm_open()
[all …]
Dbebob_maudio.c138 get_meter(struct snd_bebob *bebob, void *buf, unsigned int size) in get_meter() argument
140 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in get_meter()
146 check_clk_sync(struct snd_bebob *bebob, unsigned int size, bool *sync) in check_clk_sync() argument
155 err = get_meter(bebob, buf, size); in check_clk_sync()
171 avc_maudio_set_special_clk(struct snd_bebob *bebob, unsigned int clk_src, in avc_maudio_set_special_clk() argument
175 struct special_params *params = bebob->maudio_special_quirk; in avc_maudio_set_special_clk()
179 if (amdtp_stream_running(&bebob->rx_stream) || in avc_maudio_set_special_clk()
180 amdtp_stream_running(&bebob->tx_stream)) in avc_maudio_set_special_clk()
200 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, in avc_maudio_set_special_clk()
219 snd_ctl_notify(bebob->card, SNDRV_CTL_EVENT_MASK_VALUE, in avc_maudio_set_special_clk()
[all …]
Dbebob_proc.c38 struct snd_bebob *bebob = entry->private_data; in proc_read_hw_info() local
45 if (snd_bebob_read_block(bebob->unit, 0, in proc_read_hw_info()
74 struct snd_bebob *bebob = entry->private_data; in proc_read_meters() local
75 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in proc_read_meters()
88 if (spec->get(bebob, buf, size) < 0) in proc_read_meters()
107 struct snd_bebob *bebob = entry->private_data; in proc_read_formation() local
113 formation = bebob->tx_stream_formations; in proc_read_formation()
122 formation = bebob->rx_stream_formations; in proc_read_formation()
139 struct snd_bebob *bebob = entry->private_data; in proc_read_clock() local
140 const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; in proc_read_clock()
[all …]
Dbebob.h61 int (*get)(struct snd_bebob *bebob, unsigned int *id);
64 int (*get)(struct snd_bebob *bebob, unsigned int *rate);
65 int (*set)(struct snd_bebob *bebob, unsigned int rate);
70 int (*get)(struct snd_bebob *bebob, u32 *target, unsigned int size);
214 int snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *rate);
215 int snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate);
216 int snd_bebob_stream_get_clock_src(struct snd_bebob *bebob,
218 int snd_bebob_stream_discover(struct snd_bebob *bebob);
219 int snd_bebob_stream_init_duplex(struct snd_bebob *bebob);
220 int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate,
[all …]
Dbebob_focusrite.c61 saffire_read_block(struct snd_bebob *bebob, u64 offset, in saffire_read_block() argument
68 err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in saffire_read_block()
81 saffire_read_quad(struct snd_bebob *bebob, u64 offset, u32 *value) in saffire_read_quad() argument
86 err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, in saffire_read_quad()
98 saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value) in saffire_write_quad() argument
102 return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, in saffire_write_quad()
142 saffirepro_both_clk_freq_get(struct snd_bebob *bebob, unsigned int *rate) in saffirepro_both_clk_freq_get() argument
147 err = saffire_read_quad(bebob, SAFFIREPRO_RATE_NOREBOOT, &id); in saffirepro_both_clk_freq_get()
158 saffirepro_both_clk_freq_set(struct snd_bebob *bebob, unsigned int rate) in saffirepro_both_clk_freq_set() argument
169 return saffire_write_quad(bebob, SAFFIREPRO_RATE_NOREBOOT, id); in saffirepro_both_clk_freq_set()
[all …]
DMakefile2 snd-bebob-objs := bebob_command.o bebob_stream.o bebob_proc.o bebob_midi.o \
5 bebob.o
6 obj-$(CONFIG_SND_BEBOB) += snd-bebob.o
Dbebob_terratec.c16 phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id) in phase88_rack_clk_src_get() argument
21 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); in phase88_rack_clk_src_get()
24 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); in phase88_rack_clk_src_get()
Dbebob_yamaha_terratec.c38 clk_src_get(struct snd_bebob *bebob, unsigned int *id) in clk_src_get() argument
42 err = avc_audio_get_selector(bebob->unit, 0, 4, id); in clk_src_get()
/Linux-v5.10/sound/firewire/
DMakefile14 obj-$(CONFIG_SND_BEBOB) += bebob/
DKconfig115 will be called snd-bebob.