Searched refs:line6pcm (Results 1 – 10 of 10) sorted by relevance
/sound/usb/line6/ |
D | pcm.c | 37 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_get() local 39 ucontrol->value.integer.value[0] = line6pcm->impulse_volume; in snd_line6_impulse_volume_get() 46 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_put() local 50 if (line6pcm->impulse_volume == value) in snd_line6_impulse_volume_put() 53 line6pcm->impulse_volume = value; in snd_line6_impulse_volume_put() 55 err = line6_pcm_acquire(line6pcm, LINE6_STREAM_IMPULSE, true); in snd_line6_impulse_volume_put() 57 line6pcm->impulse_volume = 0; in snd_line6_impulse_volume_put() 61 line6_pcm_release(line6pcm, LINE6_STREAM_IMPULSE); in snd_line6_impulse_volume_put() 80 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_period_get() local 82 ucontrol->value.integer.value[0] = line6pcm->impulse_period; in snd_line6_impulse_period_get() [all …]
|
D | capture.c | 25 static int submit_audio_in_urb(struct snd_line6_pcm *line6pcm) in submit_audio_in_urb() argument 32 index = find_first_zero_bit(&line6pcm->in.active_urbs, in submit_audio_in_urb() 33 line6pcm->line6->iso_buffers); in submit_audio_in_urb() 35 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_in_urb() 36 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_in_urb() 40 urb_in = line6pcm->in.urbs[index]; in submit_audio_in_urb() 47 fin->length = line6pcm->max_packet_size_in; in submit_audio_in_urb() 48 urb_size += line6pcm->max_packet_size_in; in submit_audio_in_urb() 52 line6pcm->in.buffer + in submit_audio_in_urb() 53 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size_in; in submit_audio_in_urb() [all …]
|
D | playback.c | 69 static void create_impulse_test_signal(struct snd_line6_pcm *line6pcm, in create_impulse_test_signal() argument 76 short *pi = (short *)line6pcm->prev_fbuf; in create_impulse_test_signal() 87 unsigned char *pi = line6pcm->prev_fbuf; in create_impulse_test_signal() 101 if (--line6pcm->impulse_count <= 0) { in create_impulse_test_signal() 104 line6pcm->impulse_volume; in create_impulse_test_signal() 105 line6pcm->impulse_count = line6pcm->impulse_period; in create_impulse_test_signal() 144 static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm) in submit_audio_out_urb() argument 150 line6pcm->properties->bytes_per_channel * in submit_audio_out_urb() 151 line6pcm->properties->playback_hw.channels_max; in submit_audio_out_urb() 153 line6pcm->properties->rates.rats[0].num_min; in submit_audio_out_urb() [all …]
|
D | toneport.c | 161 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_get() local 163 ucontrol->value.integer.value[0] = line6pcm->volume_monitor; in snd_toneport_monitor_get() 171 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_put() local 174 if (ucontrol->value.integer.value[0] == line6pcm->volume_monitor) in snd_toneport_monitor_put() 177 line6pcm->volume_monitor = ucontrol->value.integer.value[0]; in snd_toneport_monitor_put() 179 if (line6pcm->volume_monitor > 0) { in snd_toneport_monitor_put() 180 err = line6_pcm_acquire(line6pcm, LINE6_STREAM_MONITOR, true); in snd_toneport_monitor_put() 182 line6pcm->volume_monitor = 0; in snd_toneport_monitor_put() 183 line6_pcm_release(line6pcm, LINE6_STREAM_MONITOR); in snd_toneport_monitor_put() 187 line6_pcm_release(line6pcm, LINE6_STREAM_MONITOR); in snd_toneport_monitor_put() [all …]
|
D | capture.h | 22 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 int line6_submit_audio_in_all_urbs(struct snd_line6_pcm *line6pcm);
|
D | pcm.h | 41 #define get_substream(line6pcm, stream) \ argument 42 (line6pcm->pcm->streams[stream].substream) 194 extern void line6_pcm_disconnect(struct snd_line6_pcm *line6pcm); 195 extern int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int type, 197 extern void line6_pcm_release(struct snd_line6_pcm *line6pcm, int type);
|
D | playback.h | 32 extern int line6_create_audio_out_urbs(struct snd_line6_pcm *line6pcm); 33 extern int line6_submit_audio_out_all_urbs(struct snd_line6_pcm *line6pcm);
|
D | pod.c | 359 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_get() local 360 struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; in snd_pod_control_monitor_get() 370 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_put() local 371 struct usb_line6_pod *pod = (struct usb_line6_pod *)line6pcm->line6; in snd_pod_control_monitor_put() 436 snd_ctl_new1(&pod_control_monitor, line6->line6pcm)); in pod_init()
|
D | driver.c | 825 if (line6->line6pcm) in line6_disconnect() 826 line6_pcm_disconnect(line6->line6pcm); in line6_disconnect() 848 struct snd_line6_pcm *line6pcm = line6->line6pcm; in line6_suspend() local 855 if (line6pcm != NULL) { in line6_suspend() 856 snd_pcm_suspend_all(line6pcm->pcm); in line6_suspend() 857 line6pcm->flags = 0; in line6_suspend()
|
D | driver.h | 155 struct snd_line6_pcm *line6pcm; member
|