From: Takashi Iwai Date: Tue, 18 Sep 2012 12:49:31 +0000 (+0200) Subject: ALSA: usb-audio: Avoid unnecessary EP setups in prepare X-Git-Tag: v3.7-rc1~81^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=384dc085c32285e6548511bf80c5d5a5b246ed24;p=pandora-kernel.git ALSA: usb-audio: Avoid unnecessary EP setups in prepare The recent fix for USB suspend breakage moved the code to set up EP from hw_params to prepare, but it means also the EP setup might be called multiple times unnecessarily because the prepare callback can be called multiple times without starting the stream (e.g. OSS emulation). This patch adds a new flag to struct snd_usb_substream indicating whether the setup of EP is required, and do it only when necessary, i.e. right after hw_params or suspend. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed