From: Dylan Reid Date: Tue, 18 Sep 2012 16:49:46 +0000 (-0700) Subject: ALSA: usb-audio: set period_bytes in substream. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=715a170563843a1f55ae4c8484bc4732d69d2288;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index f782ce19bf5a..786f7a05e9a6 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);