diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-27 15:41:27 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 07:22:45 +0100 |
commit | 2954f914f2816738b800be7909b771f30bf6a856 (patch) | |
tree | f8781dd08a016fcbe7053e0362864d76d9d448e8 /sound/usb/line6/capture.c | |
parent | 63e20df1e5b2ef8d871ecbdb6c038d554ed1ca74 (diff) |
ALSA: line6: Make common PCM pointer callback
Both playback and capture callbacks are identical, so let's merge
them.
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 | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/usb/line6/capture.c b/sound/usb/line6/capture.c index 7b8186b6c0e4..4183c5f5edc2 100644 --- a/sound/usb/line6/capture.c +++ b/sound/usb/line6/capture.c @@ -231,15 +231,6 @@ static int snd_line6_capture_close(struct snd_pcm_substream *substream) return 0; } -/* capture pointer callback */ -static snd_pcm_uframes_t -snd_line6_capture_pointer(struct snd_pcm_substream *substream) -{ - struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); - - return line6pcm->in.pos_done; -} - /* capture operators */ struct snd_pcm_ops snd_line6_capture_ops = { .open = snd_line6_capture_open, @@ -249,7 +240,7 @@ struct snd_pcm_ops snd_line6_capture_ops = { .hw_free = snd_line6_hw_free, .prepare = snd_line6_prepare, .trigger = snd_line6_trigger, - .pointer = snd_line6_capture_pointer, + .pointer = snd_line6_pointer, }; int line6_create_audio_in_urbs(struct snd_line6_pcm *line6pcm) |