Commit 947d2996 authored by Daniel Mack's avatar Daniel Mack Committed by Takashi Iwai

ALSA: snd-usb: properly initialize the sync endpoint

Jeffrey Barish reported an obvious bug in the pcm part of the usb-audio
driver which causes the code to not initialize the sync endpoint from
configure_endpoint().
Reported-by: default avatarJeffrey Barish <jeff_barish@earthlink.net>
Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Cc: stable@kernel.org [3.5+]
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 34c3d192
...@@ -459,7 +459,7 @@ static int configure_endpoint(struct snd_usb_substream *subs) ...@@ -459,7 +459,7 @@ static int configure_endpoint(struct snd_usb_substream *subs)
return ret; return ret;
if (subs->sync_endpoint) if (subs->sync_endpoint)
ret = snd_usb_endpoint_set_params(subs->data_endpoint, ret = snd_usb_endpoint_set_params(subs->sync_endpoint,
subs->pcm_format, subs->pcm_format,
subs->channels, subs->channels,
subs->period_bytes, subs->period_bytes,
......
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