diff options
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 c6593101c049..d82e378d37cb 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) | |||
511 | struct snd_usb_substream *sync_subs = | 511 | struct snd_usb_substream *sync_subs = |
512 | &subs->stream->substream[subs->direction ^ 1]; | 512 | &subs->stream->substream[subs->direction ^ 1]; |
513 | 513 | ||
514 | if (subs->sync_endpoint->type != SND_USB_ENDPOINT_TYPE_DATA || | ||
515 | !subs->stream) | ||
516 | return snd_usb_endpoint_set_params(subs->sync_endpoint, | ||
517 | subs->pcm_format, | ||
518 | subs->channels, | ||
519 | subs->period_bytes, | ||
520 | subs->cur_rate, | ||
521 | subs->cur_audiofmt, | ||
522 | NULL); | ||
523 | |||
514 | /* Try to find the best matching audioformat. */ | 524 | /* Try to find the best matching audioformat. */ |
515 | list_for_each_entry(fp, &sync_subs->fmt_list, list) { | 525 | list_for_each_entry(fp, &sync_subs->fmt_list, list) { |
516 | int score = match_endpoint_audioformats(fp, subs->cur_audiofmt, | 526 | int score = match_endpoint_audioformats(fp, subs->cur_audiofmt, |