diff options
author | Dylan Reid <dgreid@chromium.org> | 2012-09-18 16:49:46 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-19 06:07:34 (GMT) |
commit | 715a170563843a1f55ae4c8484bc4732d69d2288 (patch) | |
tree | ece3146acdc3e029882fc2d0e5c333bbd6042eff /sound | |
parent | 4b527b6516ab1f0af8aaedd02dbf71ee2c1180f4 (diff) | |
download | linux-fsl-qoriq-715a170563843a1f55ae4c8484bc4732d69d2288.tar.xz |
ALSA: usb-audio: set period_bytes in substream.
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index f782ce1..786f7a0 100644 --- 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); |