Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 11 of 11) sorted by relevance

/sound/usb/caiaq/
Daudio.c43 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument
44 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
64 activate_substream(struct snd_usb_caiaqdev *cdev, in activate_substream() argument
67 spin_lock(&cdev->spinlock); in activate_substream()
70 cdev->sub_playback[sub->number] = sub; in activate_substream()
72 cdev->sub_capture[sub->number] = sub; in activate_substream()
74 spin_unlock(&cdev->spinlock); in activate_substream()
78 deactivate_substream(struct snd_usb_caiaqdev *cdev, in deactivate_substream() argument
82 spin_lock_irqsave(&cdev->spinlock, flags); in deactivate_substream()
85 cdev->sub_playback[sub->number] = NULL; in deactivate_substream()
[all …]
Ddevice.c162 struct snd_usb_caiaqdev *cdev = urb->context; in usb_ep1_command_reply_dispatch() local
165 if (urb->status || !cdev) { in usb_ep1_command_reply_dispatch()
172 memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec)); in usb_ep1_command_reply_dispatch()
173 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch()
176 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch()
177 cdev->spec.num_analog_audio_in, in usb_ep1_command_reply_dispatch()
178 cdev->spec.num_analog_audio_out, in usb_ep1_command_reply_dispatch()
179 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch()
180 cdev->spec.num_midi_out, in usb_ep1_command_reply_dispatch()
181 cdev->spec.data_alignment); in usb_ep1_command_reply_dispatch()
[all …]
Dinput.c203 static inline void snd_caiaq_input_report_abs(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_report_abs() argument
207 input_report_abs(cdev->input_dev, axis, in snd_caiaq_input_report_abs()
211 static void snd_caiaq_input_read_analog(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_read_analog() argument
215 struct input_dev *input_dev = cdev->input_dev; in snd_caiaq_input_read_analog()
217 switch (cdev->chip.usb_id) { in snd_caiaq_input_read_analog()
219 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog()
220 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog()
221 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog()
226 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog()
227 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog()
[all …]
Dmidi.c41 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_input_trigger() local
43 if (!cdev) in snd_usb_caiaq_midi_input_trigger()
46 cdev->midi_receive_substream = up ? substream : NULL; in snd_usb_caiaq_midi_input_trigger()
57 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_output_close() local
58 if (cdev->midi_out_active) { in snd_usb_caiaq_midi_output_close()
59 usb_kill_urb(&cdev->midi_out_urb); in snd_usb_caiaq_midi_output_close()
60 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_close()
65 static void snd_usb_caiaq_midi_send(struct snd_usb_caiaqdev *cdev, in snd_usb_caiaq_midi_send() argument
69 struct device *dev = caiaqdev_to_dev(cdev); in snd_usb_caiaq_midi_send()
71 cdev->midi_out_buf[0] = EP1_CMD_MIDI_WRITE; in snd_usb_caiaq_midi_send()
[all …]
Dcontrol.c37 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() local
45 switch (cdev->chip.usb_id) { in control_info()
83 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_get() local
88 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get()
91 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get()
100 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_put() local
105 switch (cdev->chip.usb_id) { in control_put()
120 cdev->control_state[i] = v; in control_put()
122 if (cdev->chip.usb_id == in control_put()
126 cdev->ep8_out_buf[0] = i; in control_put()
[all …]
Ddevice.h118 struct snd_usb_caiaqdev *cdev; member
125 int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *cdev, int rate, int depth, int bbp);
126 int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *cdev, int digital, int analog, int erp);
127 int snd_usb_caiaq_send_command(struct snd_usb_caiaqdev *cdev,
131 int snd_usb_caiaq_send_command_bank(struct snd_usb_caiaqdev *cdev,
Dinput.h4 void snd_usb_caiaq_input_dispatch(struct snd_usb_caiaqdev *cdev, char *buf, unsigned int len);
5 int snd_usb_caiaq_input_init(struct snd_usb_caiaqdev *cdev);
6 void snd_usb_caiaq_input_free(struct snd_usb_caiaqdev *cdev);
Daudio.h4 int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *cdev);
5 void snd_usb_caiaq_audio_free(struct snd_usb_caiaqdev *cdev);
Dmidi.h4 int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *cdev);
5 void snd_usb_caiaq_midi_handle_input(struct snd_usb_caiaqdev *cdev,
Dcontrol.h4 int snd_usb_caiaq_control_init(struct snd_usb_caiaqdev *cdev);
/sound/isa/cs423x/
Dcs4236.c308 struct pnp_dev *cdev) in snd_card_cs423x_pnp() argument
313 if (cdev) in snd_card_cs423x_pnp()
314 cport[dev] = pnp_port_start(cdev, 0); in snd_card_cs423x_pnp()
560 struct pnp_dev *cdev; in snd_cs423x_pnpbios_detect() local
575 cdev = NULL; in snd_cs423x_pnpbios_detect()
576 list_for_each_entry(cdev, &(pdev->protocol->devices), protocol_list) { in snd_cs423x_pnpbios_detect()
577 if (!strcmp(cdev->id[0].id, cid)) in snd_cs423x_pnpbios_detect()
583 err = snd_card_cs423x_pnp(dev, card->private_data, pdev, cdev); in snd_cs423x_pnpbios_detect()