|
@@ -119,16 +119,6 @@ int line6_pcm_start(struct snd_line6_pcm *line6pcm, int channels)
|
|
|
if (line6pcm->active_urb_in | line6pcm->unlink_urb_in)
|
|
|
return -EBUSY;
|
|
|
|
|
|
- line6pcm->buffer_in =
|
|
|
- kmalloc(LINE6_ISO_BUFFERS * LINE6_ISO_PACKETS *
|
|
|
- line6pcm->max_packet_size, GFP_KERNEL);
|
|
|
-
|
|
|
- if (!line6pcm->buffer_in) {
|
|
|
- dev_err(line6pcm->line6->ifcdev,
|
|
|
- "cannot malloc capture buffer\n");
|
|
|
- return -ENOMEM;
|
|
|
- }
|
|
|
-
|
|
|
line6pcm->count_in = 0;
|
|
|
line6pcm->prev_fsize = 0;
|
|
|
err = line6_submit_audio_in_all_urbs(line6pcm);
|
|
@@ -147,16 +137,6 @@ int line6_pcm_start(struct snd_line6_pcm *line6pcm, int channels)
|
|
|
if (line6pcm->active_urb_out | line6pcm->unlink_urb_out)
|
|
|
return -EBUSY;
|
|
|
|
|
|
- line6pcm->buffer_out =
|
|
|
- kmalloc(LINE6_ISO_BUFFERS * LINE6_ISO_PACKETS *
|
|
|
- line6pcm->max_packet_size, GFP_KERNEL);
|
|
|
-
|
|
|
- if (!line6pcm->buffer_out) {
|
|
|
- dev_err(line6pcm->line6->ifcdev,
|
|
|
- "cannot malloc playback buffer\n");
|
|
|
- return -ENOMEM;
|
|
|
- }
|
|
|
-
|
|
|
line6pcm->count_out = 0;
|
|
|
err = line6_submit_audio_out_all_urbs(line6pcm);
|
|
|
|
|
@@ -178,15 +158,11 @@ int line6_pcm_stop(struct snd_line6_pcm *line6pcm, int channels)
|
|
|
if (((flags_old & MASK_CAPTURE) != 0) &&
|
|
|
((flags_new & MASK_CAPTURE) == 0)) {
|
|
|
line6_unlink_audio_in_urbs(line6pcm);
|
|
|
- kfree(line6pcm->buffer_in);
|
|
|
- line6pcm->buffer_in = NULL;
|
|
|
}
|
|
|
|
|
|
if (((flags_old & MASK_PLAYBACK) != 0) &&
|
|
|
((flags_new & MASK_PLAYBACK) == 0)) {
|
|
|
line6_unlink_audio_out_urbs(line6pcm);
|
|
|
- kfree(line6pcm->buffer_out);
|
|
|
- line6pcm->buffer_out = NULL;
|
|
|
}
|
|
|
#if LINE6_BACKUP_MONITOR_SIGNAL
|
|
|
kfree(line6pcm->prev_fbuf);
|