alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allow suspend/resume with USB audio.
@ 2012-09-18 16:49 Dylan Reid
  2012-09-18 16:49 ` [PATCH v2 1/4] ALSA: usb-audio: set period_bytes in substream Dylan Reid
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Dylan Reid @ 2012-09-18 16:49 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, Dylan Reid, zonque

Problem being addressed:
shell one$ aplay -Dhw:<usbcard> file.wav
shell two$ echo mem > /sys/power/state
After resume, aplay attempts resume, then restart, then after a timeout
gets a write error and no audio will be played until it is restarted.

During suspend/resume, if the USB port remains powered the audio device
will still be present upon resume.  The interface and endpoint have to
be reconfigured however.  These patches move the configuration from
hw_params to prepare causing re-configuration during resume.

Is this the right way to fix this?  Or is there an easier way I am
missing?

Thanks for looking.

v2: fix unused variable warnings.

Dylan Reid (3):
  ALSA: usb-audio: set period_bytes in substream.
  ALSA: usb-audio: Don't require hw_params in endpoint.
  ALSA: usb-audio: Move configuration to prepare.

 sound/usb/card.h     |   2 +
 sound/usb/endpoint.c |  29 +++++++-----
 sound/usb/endpoint.h |   5 ++-
 sound/usb/pcm.c      | 121 +++++++++++++++++++++++++++++++--------------------
 4 files changed, 97 insertions(+), 60 deletions(-)

-- 
1.7.12.146.g16d26b1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-18 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 16:49 [PATCH v2 0/3] Allow suspend/resume with USB audio Dylan Reid
2012-09-18 16:49 ` [PATCH v2 1/4] ALSA: usb-audio: set period_bytes in substream Dylan Reid
2012-09-18 16:49 ` [PATCH v2 2/4] ALSA: usb-audio: Don't require hw_params in endpoint Dylan Reid
2012-09-18 16:49 ` [PATCH v2 3/4] ALSA: usb-audio: Move configuration to prepare Dylan Reid
2012-09-18 19:24 ` [PATCH v2 0/3] Allow suspend/resume with USB audio Takashi Iwai
2012-09-18 20:24   ` Dylan Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).