Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Abramo Bagnara <abramo.bagnara@tin.it>
Cc: Florian Schmidt <mista.tapas@gmx.net>, alsa-devel@lists.sourceforge.net
Subject: Re: DMIX and capture stream
Date: Wed, 07 Jan 2004 17:12:15 +0100	[thread overview]
Message-ID: <s5h4qv720ww.wl@alsa2.suse.de> (raw)
In-Reply-To: <3FFC2A29.4080401@tin.it>

At Wed, 07 Jan 2004 16:47:53 +0100,
Abramo Bagnara wrote:
> 
> Takashi Iwai wrote:
> > 
> > 
> > if i understand the code correctly, for defining a pcmp or pcmc as a
> > slave pcm, such as,
> > 
> > 	pcm.foo {
> > 		type plug
> > 		slave {
> > 			pcmp bar_playback
> > 			pcmc bar_capture
> > 		}
> > 	}
> > 
> > snd_pcm_slave_conf() needs to know which one to be used, so that the
> > config subtree (of either pcmp, pcmc or pcm) is passed to
> > snd_pcm_open_slave().
> > 
> > otherwise, you have to define slave pcms always separetly, such as,
> > 
> > 	pcm.foo {
> > 		type plug
> > 		slave {
> > 			pcm bar
> > 		}
> > 	}
> > 	pcmp.bar bar_playback
> > 	pcmc.bar bar_capture
> > 
> > i think it's a big restriction.
> 
> As a matter of personal preference I very much prefer this latter form 

i do, too.

> (as it leave capture and playback definition clearly separated as 
> directions are in ALSA API).

hmm, the first example is also enough clear, i feel :)

> Under an "objective" point of view: would you really derive from the 
> comparison of the two equivalent alternative syntaxes the feeling of "a 
> big restriction"?

well, i admit "big" is a too big word.
but it means that the inline definition isn't equivalent any longer
with the external definition, since you cannot express the
playback/capture-only pcm in the inline slave pcm.  that's what i'm
concerned.


> Technically they're quite the same.

also my asym plugin, too :)  it doesn't introduce any overhead except
for parsing.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

  reply	other threads:[~2004-01-07 16:12 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02 20:29 DMIX and capture stream David Lloyd
2004-01-04  5:07 ` Paul Davis
2004-01-04 12:12   ` Joern Nettingsmeier
2004-01-04 13:52   ` Florian Schmidt
2004-01-05  0:02     ` David Lloyd
2004-01-05  0:15       ` Florian Schmidt
2004-01-05  6:00       ` Patrick Shirkey
2004-01-05 10:18         ` HDSP as normal user Patrick Shirkey
2004-01-05 14:02           ` Paul Davis
2004-01-05 14:22           ` Takashi Iwai
2004-01-05 14:48             ` Patrick Shirkey
2004-01-05 16:13         ` DMIX and capture stream David Lloyd
2004-01-05 16:21           ` Jaroslav Kysela
2004-01-05 16:29   ` David Lloyd
2004-01-05 16:28     ` Jaroslav Kysela
2004-01-05 16:43       ` Takashi Iwai
2004-01-05 17:27       ` David Lloyd
2004-01-05 17:28       ` Florian Schmidt
2004-01-05 16:42     ` Takashi Iwai
2004-01-05 17:20       ` David Lloyd
2004-01-05 17:41         ` Paul Davis
2004-01-05 17:45           ` David Lloyd
2004-01-05 18:59             ` Paul Davis
2004-01-05 18:12           ` Takashi Iwai
2004-01-06 17:05             ` David Lloyd
2004-01-06 21:38               ` Florian Schmidt
2004-01-07 11:01                 ` Takashi Iwai
2004-01-07 12:05                   ` Florian Schmidt
2004-01-07 13:06                     ` Florian Schmidt
2004-01-07 13:49                       ` Takashi Iwai
2004-01-07 12:45                   ` Abramo Bagnara
2004-01-07 13:45                     ` Takashi Iwai
2004-01-07 14:39                       ` Abramo Bagnara
2004-01-07 15:02                         ` Takashi Iwai
2004-01-07 15:15                           ` Abramo Bagnara
2004-01-07 15:30                             ` Takashi Iwai
2004-01-07 15:47                               ` Abramo Bagnara
2004-01-07 16:12                                 ` Takashi Iwai [this message]
2004-01-07 16:58                                   ` Abramo Bagnara
2004-01-07 17:22                                     ` Takashi Iwai
2004-01-08  8:33                           ` Jaroslav Kysela

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=s5h4qv720ww.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=abramo.bagnara@tin.it \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=mista.tapas@gmx.net \
    /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