Searched refs:line6pcm (Results 1 – 10 of 10) sorted by relevance
/sound/usb/line6/ |
D | pcm.c | 33 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_get() local 35 ucontrol->value.integer.value[0] = line6pcm->impulse_volume; in snd_line6_impulse_volume_get() 42 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_put() local 46 if (line6pcm->impulse_volume == value) in snd_line6_impulse_volume_put() 49 line6pcm->impulse_volume = value; in snd_line6_impulse_volume_put() 51 err = line6_pcm_acquire(line6pcm, LINE6_STREAM_IMPULSE, true); in snd_line6_impulse_volume_put() 53 line6pcm->impulse_volume = 0; in snd_line6_impulse_volume_put() 57 line6_pcm_release(line6pcm, LINE6_STREAM_IMPULSE); in snd_line6_impulse_volume_put() 76 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_period_get() local 78 ucontrol->value.integer.value[0] = line6pcm->impulse_period; in snd_line6_impulse_period_get() [all …]
|
D | capture.c | 21 static int submit_audio_in_urb(struct snd_line6_pcm *line6pcm) in submit_audio_in_urb() argument 28 index = find_first_zero_bit(&line6pcm->in.active_urbs, in submit_audio_in_urb() 29 line6pcm->line6->iso_buffers); in submit_audio_in_urb() 31 if (index < 0 || index >= line6pcm->line6->iso_buffers) { in submit_audio_in_urb() 32 dev_err(line6pcm->line6->ifcdev, "no free URB found\n"); in submit_audio_in_urb() 36 urb_in = line6pcm->in.urbs[index]; in submit_audio_in_urb() 43 fin->length = line6pcm->max_packet_size_in; in submit_audio_in_urb() 44 urb_size += line6pcm->max_packet_size_in; in submit_audio_in_urb() 48 line6pcm->in.buffer + in submit_audio_in_urb() 49 index * LINE6_ISO_PACKETS * line6pcm->max_packet_size_in; in submit_audio_in_urb() [all …]
|
D | playback.c | 65 static void create_impulse_test_signal(struct snd_line6_pcm *line6pcm, in create_impulse_test_signal() argument 72 short *pi = (short *)line6pcm->prev_fbuf; in create_impulse_test_signal() 83 unsigned char *pi = line6pcm->prev_fbuf; in create_impulse_test_signal() 97 if (--line6pcm->impulse_count <= 0) { in create_impulse_test_signal() 100 line6pcm->impulse_volume; in create_impulse_test_signal() 101 line6pcm->impulse_count = line6pcm->impulse_period; in create_impulse_test_signal() 140 static int submit_audio_out_urb(struct snd_line6_pcm *line6pcm) in submit_audio_out_urb() argument 146 line6pcm->properties->bytes_per_channel * in submit_audio_out_urb() 147 line6pcm->properties->playback_hw.channels_max; in submit_audio_out_urb() 149 line6pcm->properties->rates.rats[0].num_min; in submit_audio_out_urb() [all …]
|
D | toneport.c | 156 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_get() local 158 ucontrol->value.integer.value[0] = line6pcm->volume_monitor; in snd_toneport_monitor_get() 166 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_put() local 169 if (ucontrol->value.integer.value[0] == line6pcm->volume_monitor) in snd_toneport_monitor_put() 172 line6pcm->volume_monitor = ucontrol->value.integer.value[0]; in snd_toneport_monitor_put() 174 if (line6pcm->volume_monitor > 0) { in snd_toneport_monitor_put() 175 err = line6_pcm_acquire(line6pcm, LINE6_STREAM_MONITOR, true); in snd_toneport_monitor_put() 177 line6pcm->volume_monitor = 0; in snd_toneport_monitor_put() 178 line6_pcm_release(line6pcm, LINE6_STREAM_MONITOR); in snd_toneport_monitor_put() 182 line6_pcm_release(line6pcm, LINE6_STREAM_MONITOR); in snd_toneport_monitor_put() [all …]
|
D | capture.h | 18 extern void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, 20 extern void line6_capture_check_period(struct snd_line6_pcm *line6pcm, 22 extern int line6_create_audio_in_urbs(struct snd_line6_pcm *line6pcm); 23 extern int line6_submit_audio_in_all_urbs(struct snd_line6_pcm *line6pcm);
|
D | pcm.h | 37 #define get_substream(line6pcm, stream) \ argument 38 (line6pcm->pcm->streams[stream].substream) 190 extern void line6_pcm_disconnect(struct snd_line6_pcm *line6pcm); 191 extern int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int type, 193 extern void line6_pcm_release(struct snd_line6_pcm *line6pcm, int type);
|
D | playback.h | 28 extern int line6_create_audio_out_urbs(struct snd_line6_pcm *line6pcm); 29 extern int line6_submit_audio_out_all_urbs(struct snd_line6_pcm *line6pcm);
|
D | pod.c | 329 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_get() local 330 struct usb_line6_pod *pod = line6_to_pod(line6pcm->line6); in snd_pod_control_monitor_get() 340 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_put() local 341 struct usb_line6_pod *pod = line6_to_pod(line6pcm->line6); in snd_pod_control_monitor_put() 387 snd_ctl_new1(&pod_control_monitor, line6->line6pcm)); in pod_init()
|
D | driver.c | 834 if (line6->line6pcm) in line6_disconnect() 835 line6_pcm_disconnect(line6->line6pcm); in line6_disconnect() 857 struct snd_line6_pcm *line6pcm = line6->line6pcm; in line6_suspend() local 864 if (line6pcm != NULL) in line6_suspend() 865 line6pcm->flags = 0; in line6_suspend()
|
D | driver.h | 144 struct snd_line6_pcm *line6pcm; member
|