diff options
| author | Olof Johansson <olof@lixom.net> | 2013-01-27 22:07:11 -0800 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-01-27 22:07:20 -0800 | 
| commit | 6b914c998787d65022e80d6262dfd0edef58cadb (patch) | |
| tree | ec9d9605ae08e6e40664c4302a181979ab4fe1d3 /sound/usb/pcm.c | |
| parent | 1f87a404d02a96519284e1928445ca5cfe9667db (diff) | |
| parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) | |
| download | olio-linux-3.10-6b914c998787d65022e80d6262dfd0edef58cadb.tar.xz olio-linux-3.10-6b914c998787d65022e80d6262dfd0edef58cadb.zip  | |
Merge tag 'v3.8-rc5' into next/cleanup
Linux 3.8-rc5
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'sound/usb/pcm.c')
| -rw-r--r-- | sound/usb/pcm.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index c6593101c04..d82e378d37c 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -511,6 +511,16 @@ static int configure_sync_endpoint(struct snd_usb_substream *subs)  	struct snd_usb_substream *sync_subs =  		&subs->stream->substream[subs->direction ^ 1]; +	if (subs->sync_endpoint->type != SND_USB_ENDPOINT_TYPE_DATA || +	    !subs->stream) +		return snd_usb_endpoint_set_params(subs->sync_endpoint, +						   subs->pcm_format, +						   subs->channels, +						   subs->period_bytes, +						   subs->cur_rate, +						   subs->cur_audiofmt, +						   NULL); +  	/* Try to find the best matching audioformat. */  	list_for_each_entry(fp, &sync_subs->fmt_list, list) {  		int score = match_endpoint_audioformats(fp, subs->cur_audiofmt,  |