alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Dylan Reid <dgreid@chromium.org>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, Dylan Reid <dgreid@chromium.org>, zonque@gmail.com
Subject: [PATCH v2 1/4] ALSA: usb-audio: set period_bytes in substream.
Date: Tue, 18 Sep 2012 09:49:46 -0700	[thread overview]
Message-ID: <1347986988-11382-2-git-send-email-dgreid@chromium.org> (raw)
In-Reply-To: <1347986988-11382-1-git-send-email-dgreid@chromium.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 <dgreid@chromium.org>
---
 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

  reply	other threads:[~2012-09-18 16:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-18 16:49 [PATCH v2 0/3] Allow suspend/resume with USB audio Dylan Reid
2012-09-18 16:49 ` Dylan Reid [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347986988-11382-2-git-send-email-dgreid@chromium.org \
    --to=dgreid@chromium.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    --cc=zonque@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).