Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Jaroslav Kysela <perex@suse.cz>
Cc: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@lists.sourceforge.net
Subject: Re: [PATCH] usbaudio fixes
Date: Tue, 25 Nov 2003 12:56:04 +0100	[thread overview]
Message-ID: <s5hekvw1x2j.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0311251249590.9896@pnote.perex-int.cz>

At Tue, 25 Nov 2003 12:51:11 +0100 (CET),
Jaroslav wrote:
> 
> On Mon, 24 Nov 2003, Takashi Iwai wrote:
> 
> > At Mon, 24 Nov 2003 13:51:50 +0100,
> > I wrote:
> > > 
> > > At Mon, 24 Nov 2003 13:36:42 +0100,
> > > I wrote:
> > > > 
> > > > meanwhile, i'm trying to implement:
> > > > 
> > > > (4) allow prepare callback to sleep with a special flag.
> > > > 
> > > > this will be useful for other drivers, too, such as vx and korg1212
> > > > drivers which require the handshaking.
> > > > but what i'm doing is still a hack, and will be a fundamental rewrite
> > > > later.
> > > 
> > > the attached is a quick-hacked version.
> > > it's untested for linked streams.  we need a test case here.
> > 
> > ok, here is the final version.  this one seems working fine.
> > 
> > Jaroslav, could you check whether it's ok?
> > the changes in pcm_native.c shouldn't affect other cards.
> 
> It's ok, but it still looks like an ugly hack, but I don't see any other 
> way to solve this problem so you can apply this code to CVS.

yeah, agreed, it's a quick'n'dirty hack :)

the better way would be to move all prepare callback in every driver
as non-atomic, and call it inside a mutex.  linking/unlinking streams
will need to issue both a mutex and a spinlock for prepare and trigger
callbacks.
but, for this, we have to audit all drivers.  let's beautify later.

ok, i'll commit the changes now.


thanks,

Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

  reply	other threads:[~2003-11-25 11:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24  7:46 [PATCH] usbaudio fixes Clemens Ladisch
2003-11-24 11:27 ` Takashi Iwai
2003-11-24 12:10   ` Clemens Ladisch
2003-11-24 12:36     ` Takashi Iwai
2003-11-24 12:51       ` Takashi Iwai
2003-11-24 17:59         ` Takashi Iwai
2003-11-25 11:51           ` Jaroslav Kysela
2003-11-25 11:56             ` Takashi Iwai [this message]
2003-11-24 11:37 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2003-06-19  7:00 Clemens Ladisch
2003-06-20 18:14 ` Takashi Iwai

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=s5hekvw1x2j.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=perex@suse.cz \
    /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