Commit c731bc96 authored by Daniel Mack's avatar Daniel Mack Committed by Takashi Iwai

ALSA: snd-usb: move code from urb.c to endpoint.c

No code altered at this point, simply preparing for upcoming
refactorizations.
Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Acked-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e8e8babf
...@@ -12,8 +12,7 @@ snd-usb-audio-objs := card.o \ ...@@ -12,8 +12,7 @@ snd-usb-audio-objs := card.o \
pcm.o \ pcm.o \
proc.o \ proc.o \
quirks.o \ quirks.o \
stream.o \ stream.o
urb.o
snd-usbmidi-lib-objs := midi.o snd-usbmidi-lib-objs := midi.o
......
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
#include "helper.h" #include "helper.h"
#include "debug.h" #include "debug.h"
#include "pcm.h" #include "pcm.h"
#include "urb.h"
#include "format.h" #include "format.h"
#include "power.h" #include "power.h"
#include "stream.h" #include "stream.h"
......
This diff is collapsed.
#ifndef __USBAUDIO_ENDPOINT_H #ifndef __USBAUDIO_ENDPOINT_H
#define __USBAUDIO_ENDPOINT_H #define __USBAUDIO_ENDPOINT_H
void snd_usb_init_substream(struct snd_usb_stream *as,
int stream,
struct audioformat *fp);
int snd_usb_init_substream_urbs(struct snd_usb_substream *subs,
unsigned int period_bytes,
unsigned int rate,
unsigned int frame_bits);
void snd_usb_release_substream_urbs(struct snd_usb_substream *subs, int force);
int snd_usb_substream_prepare(struct snd_usb_substream *subs,
struct snd_pcm_runtime *runtime);
int snd_usb_substream_playback_trigger(struct snd_pcm_substream *substream, int cmd);
int snd_usb_substream_capture_trigger(struct snd_pcm_substream *substream, int cmd);
#endif /* __USBAUDIO_ENDPOINT_H */ #endif /* __USBAUDIO_ENDPOINT_H */
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "card.h" #include "card.h"
#include "quirks.h" #include "quirks.h"
#include "debug.h" #include "debug.h"
#include "urb.h" #include "endpoint.h"
#include "helper.h" #include "helper.h"
#include "pcm.h" #include "pcm.h"
#include "clock.h" #include "clock.h"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "proc.h" #include "proc.h"
#include "quirks.h" #include "quirks.h"
#include "endpoint.h" #include "endpoint.h"
#include "urb.h"
#include "pcm.h" #include "pcm.h"
#include "helper.h" #include "helper.h"
#include "format.h" #include "format.h"
......
This diff is collapsed.
#ifndef __USBAUDIO_URB_H
#define __USBAUDIO_URB_H
void snd_usb_init_substream(struct snd_usb_stream *as,
int stream,
struct audioformat *fp);
int snd_usb_init_substream_urbs(struct snd_usb_substream *subs,
unsigned int period_bytes,
unsigned int rate,
unsigned int frame_bits);
void snd_usb_release_substream_urbs(struct snd_usb_substream *subs, int force);
int snd_usb_substream_prepare(struct snd_usb_substream *subs,
struct snd_pcm_runtime *runtime);
int snd_usb_substream_playback_trigger(struct snd_pcm_substream *substream, int cmd);
int snd_usb_substream_capture_trigger(struct snd_pcm_substream *substream, int cmd);
#endif /* __USBAUDIO_URB_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment