All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@lists.sourceforge.net, Fredrik Tolf <fredrik@dolda2000.com>
Subject: Re: [PATCH] fix card->power_lock congestion
Date: Tue, 21 Oct 2003 12:05:58 +0200	[thread overview]
Message-ID: <s5hy8vedhx5.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.HPX.4.33n.0310201109050.16209-100000@studcom.urz.uni-halle.de>

At Mon, 20 Oct 2003 11:12:08 +0200 (METDST),
Clemens Ladisch wrote:
> 
> snd_pcm_playback_drain() holds card->power_lock until the substream
> has been drained completely. This prevents any other stream on that
> card from preparing during this time (which is very annoying if one is
> playing several small files which fit entirely into one buffer on a
> multi-stream card like emu10k1 or ymfpci).
> 
> The patch below unlocks power_lock around the schedule() call. As a
> consequence, it is possible to suspend a draining stream, but this has
> already been possible before for streams in non-blocking mode.
> 
> Additionally, I think that snd_pcm_do_suspend() should call the
> trigger callback when the stream is in the draining state, as the
> playback needs to be stopped just as in the running state; and
> similarly for snd_pcm_do_resume(). But I'm not really sure that I know
> what I'm doing here. :)

it should be ok, i think, since the playback and the drain states are
handled same for the lowlevel drivers.

i applied the patch to cvs.  please let me know if something wrong
happens...


thanks,

Takashi


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54

      reply	other threads:[~2003-10-21 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20  9:12 [PATCH] fix card->power_lock congestion Clemens Ladisch
2003-10-21 10:05 ` Takashi Iwai [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=s5hy8vedhx5.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=fredrik@dolda2000.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 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.