Skip to content

Commit

Permalink
ALSA: snd-usb: properly initialize the sync endpoint
Browse files Browse the repository at this point in the history
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: Jeffrey Barish <[email protected]>
Signed-off-by: Daniel Mack <[email protected]>
Cc: [email protected] [3.5+]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
zonque authored and tiwai committed Nov 22, 2012
1 parent 34c3d19 commit 947d299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ static int configure_endpoint(struct snd_usb_substream *subs)
return ret;

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->channels,
subs->period_bytes,
Expand Down

0 comments on commit 947d299

Please sign in to comment.