]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb: fix cross-interface streaming devices
authorDaniel Mack <zonque@gmail.com>
Thu, 30 Aug 2012 16:52:31 +0000 (18:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Aug 2012 19:04:53 +0000 (21:04 +0200)
commit99075df1a058bad912efdd64911b9f22e0ace537
treea91f59190c940f6f005755ce39c15d61a22d8e83
parent3feb5be3dbed6634a19e79d06601842e9334e4e7
ALSA: snd-usb: fix cross-interface streaming devices

Commit b5fbcea34 ("ALSA: snd-usb: move calls to usb_set_interface")
saved us some unnecessary calls to snd_usb_set_interface() but ignored
the fact that there is at least one device out there which operates on
two endpoint in different interfaces simultaniously.

Take care for this by catching the case where data and sync endpoints
are located on different interfaces and calling snd_usb_set_interface()
between the start of the two endpoints.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Robert M. Albrecht <linux@romal.de>
Cc: stable@kernel.org [v3.5+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c