ALSA: usb-audio: Move configuration to prepare.
authorDylan Reid <dgreid@chromium.org>
Tue, 18 Sep 2012 16:49:48 +0000 (09:49 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Sep 2012 06:08:11 +0000 (08:08 +0200)
commit61a709504b079110cd5b12ea9a4590ffea687a5c
treef49a7338767f2117c4167904a878f27ec9955162
parent35ec7aa29833de350f51922736aefe22ebf76c4d
ALSA: usb-audio: Move configuration to prepare.

Move interface and endpoint configuration from hw_params to prepare
callback.  During system suspend/resume when the USB device power isn't
cycled the interface and endpoint configuration need to be set before
audio playback can continue.  Resume involves another call to prepare
but not to hw_params, moving it here allows a playing stream to continue
after resume.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/pcm.c