diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-23 16:25:03 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 07:21:39 +0100 |
commit | e90576c5955c83cd7e8c191b47f70d1946015041 (patch) | |
tree | ad2fe83b3cf4f2da9ab89bb44c81d66fb37a5a5b /sound/usb/line6/capture.c | |
parent | ccaac9ed79c6051733f781a1cd639d488696f512 (diff) | |
download | linux-e90576c5955c83cd7e8c191b47f70d1946015041.tar.gz |
ALSA: line6: Consolidate PCM stream buffer allocation and free
The PCM stream buffer allocation and free are identical for both
playback and capture streams. Provide single helper functions.
These are used only in pcm.c, thus they can be even static.
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/capture.c')
-rw-r--r-- | sound/usb/line6/capture.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/usb/line6/capture.c b/sound/usb/line6/capture.c index 1d477d7a42fb..47cfcc2ab387 100644 --- a/sound/usb/line6/capture.c +++ b/sound/usb/line6/capture.c @@ -141,12 +141,6 @@ void line6_capture_check_period(struct snd_line6_pcm *line6pcm, int length) } } -void line6_free_capture_buffer(struct snd_line6_pcm *line6pcm) -{ - kfree(line6pcm->in.buffer); - line6pcm->in.buffer = NULL; -} - /* * Callback for completed capture URB. */ |