diff options
author | Dylan Reid <dgreid@chromium.org> | 2012-09-18 12:49:47 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-19 02:07:52 -0400 |
commit | 35ec7aa29833de350f51922736aefe22ebf76c4d (patch) | |
tree | 20509b13b846678dbb8c16277bb0c57c936e735b /sound/usb/endpoint.h | |
parent | 715a170563843a1f55ae4c8484bc4732d69d2288 (diff) |
ALSA: usb-audio: Don't require hw_params in endpoint.
Change the interface to configure an endpoint so that it doesn't require
a hw_params struct. This will allow it to be called from prepare
instead of hw_params, configuring it after system resume.
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/endpoint.h')
-rw-r--r-- | sound/usb/endpoint.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/usb/endpoint.h b/sound/usb/endpoint.h index cbbbdf226d66..6376ccf10fd4 100644 --- a/sound/usb/endpoint.h +++ b/sound/usb/endpoint.h | |||
@@ -9,7 +9,10 @@ struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip, | |||
9 | int ep_num, int direction, int type); | 9 | int ep_num, int direction, int type); |
10 | 10 | ||
11 | int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, | 11 | int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep, |
12 | struct snd_pcm_hw_params *hw_params, | 12 | snd_pcm_format_t pcm_format, |
13 | unsigned int channels, | ||
14 | unsigned int period_bytes, | ||
15 | unsigned int rate, | ||
13 | struct audioformat *fmt, | 16 | struct audioformat *fmt, |
14 | struct snd_usb_endpoint *sync_ep); | 17 | struct snd_usb_endpoint *sync_ep); |
15 | 18 | ||