Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/staging/line6/
Dcapture.c26 static int submit_audio_in_urb(struct snd_line6_pcm *line6pcm) in submit_audio_in_urb() argument
34 spin_lock_irqsave(&line6pcm->lock_audio_in, flags); in submit_audio_in_urb()
36 find_first_zero_bit(&line6pcm->active_urb_in, LINE6_ISO_BUFFERS); in submit_audio_in_urb()
39 spin_unlock_irqrestore(&line6pcm->lock_audio_in, flags); in submit_audio_in_urb()
40 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_in_urb()
44 urb_in = line6pcm->urb_audio_in[index]; in submit_audio_in_urb()
51 fin->length = line6pcm->max_packet_size; in submit_audio_in_urb()
52 urb_size += line6pcm->max_packet_size; in submit_audio_in_urb()
56 line6pcm->buffer_in + in submit_audio_in_urb()
57 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size; in submit_audio_in_urb()
[all …]
Dpcm.c30 struct snd_line6_pcm *line6pcm = line6->line6pcm; in dev2pcm() local
31 return line6pcm; in dev2pcm()
50 struct snd_line6_pcm *line6pcm = dev2pcm(dev); in pcm_set_impulse_volume() local
52 line6pcm->impulse_volume = value; in pcm_set_impulse_volume()
55 line6_pcm_acquire(line6pcm, LINE6_BITS_PCM_IMPULSE); in pcm_set_impulse_volume()
57 line6_pcm_release(line6pcm, LINE6_BITS_PCM_IMPULSE); in pcm_set_impulse_volume()
95 int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int channels) in line6_pcm_acquire() argument
98 __sync_fetch_and_or(&line6pcm->flags, channels); in line6_pcm_acquire()
103 line6pcm->prev_fbuf = NULL; in line6_pcm_acquire()
107 if (!line6pcm->buffer_in) { in line6_pcm_acquire()
[all …]
Dplayback.c66 static void create_impulse_test_signal(struct snd_line6_pcm *line6pcm, in create_impulse_test_signal() argument
73 short *pi = (short *)line6pcm->prev_fbuf; in create_impulse_test_signal()
84 unsigned char *pi = line6pcm->prev_fbuf; in create_impulse_test_signal()
98 if (--line6pcm->impulse_count <= 0) { in create_impulse_test_signal()
101 line6pcm->impulse_volume; in create_impulse_test_signal()
102 line6pcm->impulse_count = line6pcm->impulse_period; in create_impulse_test_signal()
136 static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm) in submit_audio_out_urb() argument
142 const int bytes_per_frame = line6pcm->properties->bytes_per_frame; in submit_audio_out_urb()
144 line6pcm->properties->snd_line6_rates.rats[0].num_min; in submit_audio_out_urb()
146 line6pcm->properties->snd_line6_rates.rats[0].den * in submit_audio_out_urb()
[all …]
Dcapture.h22 extern void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf,
24 extern void line6_capture_check_period(struct snd_line6_pcm *line6pcm,
26 extern int line6_create_audio_in_urbs(struct snd_line6_pcm *line6pcm);
27 extern void line6_free_capture_buffer(struct snd_line6_pcm *line6pcm);
28 extern int line6_submit_audio_in_all_urbs(struct snd_line6_pcm *line6pcm);
29 extern void line6_unlink_audio_in_urbs(struct snd_line6_pcm *line6pcm);
31 *line6pcm);
32 extern void line6_wait_clear_audio_in_urbs(struct snd_line6_pcm *line6pcm);
33 extern int snd_line6_capture_trigger(struct snd_line6_pcm *line6pcm, int cmd);
Dplayback.h32 extern int line6_create_audio_out_urbs(struct snd_line6_pcm *line6pcm);
33 extern void line6_free_playback_buffer(struct snd_line6_pcm *line6pcm);
34 extern int line6_submit_audio_out_all_urbs(struct snd_line6_pcm *line6pcm);
35 extern void line6_unlink_audio_out_urbs(struct snd_line6_pcm *line6pcm);
37 *line6pcm);
38 extern void line6_wait_clear_audio_out_urbs(struct snd_line6_pcm *line6pcm);
39 extern int snd_line6_playback_trigger(struct snd_line6_pcm *line6pcm, int cmd);
Dtoneport.c193 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_get() local
194 ucontrol->value.integer.value[0] = line6pcm->volume_monitor; in snd_toneport_monitor_get()
202 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_put() local
204 if (ucontrol->value.integer.value[0] == line6pcm->volume_monitor) in snd_toneport_monitor_put()
207 line6pcm->volume_monitor = ucontrol->value.integer.value[0]; in snd_toneport_monitor_put()
209 if (line6pcm->volume_monitor > 0) in snd_toneport_monitor_put()
210 line6_pcm_acquire(line6pcm, LINE6_BITS_PCM_MONITOR); in snd_toneport_monitor_put()
212 line6_pcm_release(line6pcm, LINE6_BITS_PCM_MONITOR); in snd_toneport_monitor_put()
239 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_source_get() local
241 (struct usb_line6_toneport *)line6pcm->line6; in snd_toneport_source_get()
[all …]
Dpcm.h45 #define get_substream(line6pcm, stream) \ argument
46 (line6pcm->pcm->streams[stream].substream)
378 extern void line6_pcm_disconnect(struct snd_line6_pcm *line6pcm);
379 extern int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int channels);
380 extern int line6_pcm_release(struct snd_line6_pcm *line6pcm, int channels);
Dpodhd.c147 struct snd_line6_pcm *line6pcm = podhd->line6.line6pcm; in line6_podhd_disconnect() local
149 if (line6pcm != NULL) in line6_podhd_disconnect()
150 line6_pcm_disconnect(line6pcm); in line6_podhd_disconnect()
Ddriver.c1230 struct snd_line6_pcm *line6pcm = line6->line6pcm; in line6_suspend() local
1237 if (line6pcm != NULL) { in line6_suspend()
1238 snd_pcm_suspend_all(line6pcm->pcm); in line6_suspend()
1239 line6_pcm_disconnect(line6pcm); in line6_suspend()
1240 line6pcm->flags = 0; in line6_suspend()
1335 struct snd_line6_pcm *line6pcm; in line6_exit() local
1344 line6pcm = line6->line6pcm; in line6_exit()
1346 if (line6pcm == NULL) in line6_exit()
1349 line6_pcm_release(line6pcm, ~0); in line6_exit()
Dpod.c1113 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_get() local
1114 struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; in snd_pod_control_monitor_get()
1123 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_put() local
1124 struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; in snd_pod_control_monitor_put()
1261 snd_ctl_new1(&pod_control_monitor, line6->line6pcm)); in pod_try_init()
1306 struct snd_line6_pcm *line6pcm = pod->line6.line6pcm; in line6_pod_disconnect() local
1309 if (line6pcm != NULL) in line6_pod_disconnect()
1310 line6_pcm_disconnect(line6pcm); in line6_pod_disconnect()
Ddriver.h163 struct snd_line6_pcm *line6pcm; member