From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Reid Subject: [PATCH 1/3] ALSA: usb-audio: set period_bytes in substream. Date: Mon, 17 Sep 2012 13:11:37 -0700 Message-ID: <1347912699-9969-2-git-send-email-dgreid@chromium.org> References: <1347912699-9969-1-git-send-email-dgreid@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f201.google.com (mail-wi0-f201.google.com [209.85.212.201]) by alsa0.perex.cz (Postfix) with ESMTP id 1AC072616CD for ; Mon, 17 Sep 2012 22:11:58 +0200 (CEST) Received: by wibhm2 with SMTP id hm2so136298wib.2 for ; Mon, 17 Sep 2012 13:11:57 -0700 (PDT) In-Reply-To: <1347912699-9969-1-git-send-email-dgreid@chromium.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, Dylan Reid , zonque@gmail.com List-Id: alsa-devel@alsa-project.org 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. Change-Id: I4cf4681f16f8a71d26c586520afed9e8c27433b2 Signed-off-by: Dylan Reid --- sound/usb/pcm.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 1.7.12.146.g16d26b1