projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b527b6
)
ALSA: usb-audio: set period_bytes in substream.
author
Dylan Reid
<dgreid@chromium.org>
Tue, 18 Sep 2012 16:49:46 +0000
(09:49 -0700)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 19 Sep 2012 06:07:34 +0000
(08:07 +0200)
Set the peiod_bytes member of snd_usb_substream. It was no longer being
set, but will be needed to resume properly in a future commit.
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c
patch
|
blob
|
history
diff --git
a/sound/usb/pcm.c
b/sound/usb/pcm.c
index
f782ce1
..
786f7a0
100644
(file)
--- a/
sound/usb/pcm.c
+++ b/
sound/usb/pcm.c
@@
-486,6
+486,8
@@
static int snd_usb_hw_params(struct snd_pcm_substream *substream,
}
if (changed) {
+ subs->period_bytes = params_period_bytes(hw_params);
+
mutex_lock(&subs->stream->chip->shutdown_mutex);
/* format changed */
stop_endpoints(subs, 0, 0, 0);