diff options
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index ea25265427a..1b0ed22cff7 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
@@ -912,46 +912,6 @@ void snd_usb_init_substream(struct snd_usb_stream *as, | |||
912 | subs->fmt_type = fp->fmt_type; | 912 | subs->fmt_type = fp->fmt_type; |
913 | } | 913 | } |
914 | 914 | ||
915 | int snd_usb_substream_playback_trigger(struct snd_pcm_substream *substream, int cmd) | ||
916 | { | ||
917 | struct snd_usb_substream *subs = substream->runtime->private_data; | ||
918 | |||
919 | switch (cmd) { | ||
920 | case SNDRV_PCM_TRIGGER_START: | ||
921 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: | ||
922 | subs->ops.prepare = prepare_playback_urb; | ||
923 | return 0; | ||
924 | case SNDRV_PCM_TRIGGER_STOP: | ||
925 | return deactivate_urbs_old(subs, 0, 0); | ||
926 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | ||
927 | subs->ops.prepare = prepare_nodata_playback_urb; | ||
928 | return 0; | ||
929 | } | ||
930 | |||
931 | return -EINVAL; | ||
932 | } | ||
933 | |||
934 | int snd_usb_substream_capture_trigger(struct snd_pcm_substream *substream, int cmd) | ||
935 | { | ||
936 | struct snd_usb_substream *subs = substream->runtime->private_data; | ||
937 | |||
938 | switch (cmd) { | ||
939 | case SNDRV_PCM_TRIGGER_START: | ||
940 | subs->ops.retire = retire_capture_urb; | ||
941 | return start_urbs(subs, substream->runtime); | ||
942 | case SNDRV_PCM_TRIGGER_STOP: | ||
943 | return deactivate_urbs_old(subs, 0, 0); | ||
944 | case SNDRV_PCM_TRIGGER_PAUSE_PUSH: | ||
945 | subs->ops.retire = retire_paused_capture_urb; | ||
946 | return 0; | ||
947 | case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: | ||
948 | subs->ops.retire = retire_capture_urb; | ||
949 | return 0; | ||
950 | } | ||
951 | |||
952 | return -EINVAL; | ||
953 | } | ||
954 | |||
955 | int snd_usb_substream_prepare(struct snd_usb_substream *subs, | 915 | int snd_usb_substream_prepare(struct snd_usb_substream *subs, |
956 | struct snd_pcm_runtime *runtime) | 916 | struct snd_pcm_runtime *runtime) |
957 | { | 917 | { |