]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb: move calls to usb_set_interface
authorDaniel Mack <zonque@gmail.com>
Thu, 12 Jul 2012 11:08:40 +0000 (13:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Jul 2012 07:31:42 +0000 (09:31 +0200)
commitb5fbcea34c1d8fea272fd50abdcbbad48e7a6933
treea0562c103da6384a31362d4e1a80b9000f5d53fe
parent868225afa76881c2a9019519c3f5252cdb78a306
ALSA: snd-usb: move calls to usb_set_interface

The rework of the snd-usb endpoint logic moved the calls to
snd_usb_set_interface() into the snd_usb_endpoint implemenation. This
changed the order in which these calls are issued to the device, and
thereby caused regressions for some webcams.

Fix this by moving the calls back to pcm.c for now to make it work again
and use snd_usb_endpoint_activate() to really tear down all remaining
URBs in the flight, consequently fixing another regression caused by USB
packets on the wire after altsetting 0 has been selected.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-and-tested-by: Philipp Dreimann <philipp@dreimann.net>
Reported-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c
sound/usb/pcm.c