linux_dsm_epyc7002/sound/usb
Takashi Iwai 384dc085c3 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 <tiwai@suse.de>
2012-09-19 08:08:16 +02:00
..
6fire
caiaq
misc
usx2y
card.c ALSA: usb-audio: Avoid unnecessary EP setups in prepare 2012-09-19 08:08:16 +02:00
card.h ALSA: usb-audio: Avoid unnecessary EP setups in prepare 2012-09-19 08:08:16 +02:00
clock.c
clock.h
debug.h
endpoint.c ALSA: usb-audio: Don't require hw_params in endpoint. 2012-09-19 08:07:52 +02:00
endpoint.h ALSA: usb-audio: Don't require hw_params in endpoint. 2012-09-19 08:07:52 +02:00
format.c
format.h
helper.c ALSA: snd-usb: Add quirks for Playback Designs devices 2012-09-04 11:31:14 +02:00
helper.h
Kconfig
Makefile
midi.c
midi.h
mixer_maps.c
mixer_quirks.c
mixer_quirks.h
mixer.c
mixer.h
pcm.c ALSA: usb-audio: Avoid unnecessary EP setups in prepare 2012-09-19 08:08:16 +02:00
pcm.h
power.h
proc.c
proc.h
quirks-table.h ALSA: USB: Support for (original) Xbox Communicator 2012-09-03 10:14:25 +02:00
quirks.c ALSA: snd-usb: Add quirks for Playback Designs devices 2012-09-04 11:31:14 +02:00
quirks.h ALSA: snd-usb: Add quirks for Playback Designs devices 2012-09-04 11:31:14 +02:00
stream.c
stream.h
usbaudio.h