All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Raymond Yau <superquad.vortex2@gmail.com>,
	Dylan Reid <dgreid@chromium.org>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org
Subject: Re: [RFC] ALSA: Reduce delay for a blocking pcm_drain.
Date: Mon, 30 Sep 2013 16:13:38 +0200	[thread overview]
Message-ID: <52498712.5080002@ladisch.de> (raw)
In-Reply-To: <CAN8ccibYW3XaXMSGqGpb5-8aip0OTLyG5pyURjX8KL=RcmaYqQ@mail.gmail.com>

Raymond Yau wrote:
>> To test this I opened a pcm and set no period wakeups, played a few samples and
>> then called drain, which hung indefinitely.  Using a USB headset with a
>> max period size of 128k but only 15ms of the buffer filled, having the
>> drain time shorter without losing samples makes a blocking call
>> feasible.
>
> Do you mean that you tested on a patched version of USB audio driver since
> only three drivers support SNDRV_PCM_INFO_NO_PERIOD_WAKEUP

The flag is ignored if not supported.

In this test, the important part was the large period size.


Regards,
Clemens

      reply	other threads:[~2013-09-30 14:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-28  3:59 [RFC] ALSA: Reduce delay for a blocking pcm_drain Dylan Reid
2013-09-30  8:26 ` Takashi Iwai
2013-09-30  8:45 ` Clemens Ladisch
2013-09-30 16:20   ` Dylan Reid
     [not found] ` <CAN8cciamcg3wqiDV75oZ6dms-aNtN2o-QMWg0n59otibpmfV7A@mail.gmail.com>
     [not found]   ` <CAN8ccia8VzuubtiOZETTN5DAm_LjmQdaxqDHQQ6iv8S_NvtSBg@mail.gmail.com>
2013-09-30 13:26     ` Raymond Yau
2013-09-30 14:13       ` Clemens Ladisch [this message]

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=52498712.5080002@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dgreid@chromium.org \
    --cc=superquad.vortex2@gmail.com \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.