]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add keep_iface flag
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 08:04:27 +0000 (10:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 14:02:33 +0000 (16:02 +0200)
commit0d4cc3400b13a231f6e566f73b63789f36f5f4c8
treead4bfb774497805fc775abf7c64ec7169c2c2919
parentcb15477310a983ccceeda9702936b79ad4e1834e
ALSA: usb-audio: Add keep_iface flag

Introduce a new flag to struct snd_usb_audio for allowing the device
to skip usb_set_interface() calls at changing or closing the stream.
As of this patch, the flag is nowhere set, so it's just a place
holder.  The dynamic switching will be added in the following patch.

A background information for this change:

Dell WD15 dock with Realtek chip gives a very long pause at each time
the driver changes the altset, which eventually happens at every PCM
stream open/close and parameter change.  As the long pause happens in
each usb_set_interface() call, there is nothing we can do as long as
it's called.  The workaround is to reduce calling it as much as
possible, and this flag indicates that behavior.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c
sound/usb/usbaudio.h